Skip to main content

Struct ComponentTypeSelector

Namespace: Aspid.FastTools.Types
Assembly: Aspid.FastTools.dll

Represents a marker field adding an Inspector dropdown that swaps the object's script to any subtype of the field's declaring class.

[Serializable]
public struct ComponentTypeSelector

Extension Methods​

ProfilerMarkerExtensionsForGenerator.Marker<ComponentTypeSelector>(ComponentTypeSelector, int)

Examples​

public abstract class BaseEnemy : MonoBehaviour
{
[SerializeField] private ComponentTypeSelector _typeSelector;
}
On this page