API reference
API reference
Select your platform
No SDKs available
No versions available

ObjectTypeAttribute Class

Extends PropertyAttribute
An attribute for restricting object gui fields to one or more specified target types. This allows for serialized interfaces and abstract class references that work on MonoBehaviours or SerializedAssets.

Properties

The types this property will be restricted to
If true, all types must be included. If false, any of the specified types can be included

Member Functions

Constructor that takes in the target type that any objects must be cast to
Constructor that takes in the target type that any objects must be cast to
Did you find this page helpful?
Thumbs up icon
Thumbs down icon