Game Development Reference
In-Depth Information
}
//----------------------------------------------
//Private members
private int _myIntProperty;
private float _myFloatProperty;
private Color _myColorProperty;
//----------------------------------------------
}
//----------------------------------------------
This class will be used internally by a different class as a public member, as shown
in the following code sample 8-9:
using UnityEngine;
using System.Collections;
public class LargerClass : MonoBehaviour
{
public ClassWithProperties MyPropClass;
}
By default, the public MyPropClass member (although tagged as System.
Serializable ) will not show its members in the Object Inspector. This is
because C# properties are not natively supported:
By default, the Object Inspector will not render the C# properties
 
Search WWH ::




Custom Search