Description

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.

Properties

Property Description
Type The type of component represented by this object.

Example

public class ExampleComponent : MonoBehaviour
{
		private void Start()
		{
				Debug.Log("Hello World");
		}
}

[Serializable]
public class ExampleComponentType : RgComponentType<ExampleComponent>
{
		// Type property will return <typeof(ExampleComponent)>
}