Base abstract class representing a serialized Component type for ReturnGraph.
IMPORTANT: when inheriting from RgComponentType<T>, make sure to add a Serializable
attribute to the child class.
Property | Description |
---|---|
Type | The type of component represented by this object. |
public class ExampleComponent : MonoBehaviour
{
private void Start()
{
Debug.Log("Hello World");
}
}
[Serializable]
public class ExampleComponentType : RgComponentType<ExampleComponent>
{
// Type property will return <typeof(ExampleComponent)>
}