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

ObjectTypeAttribute Class

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.
Meta::WitAi::Attributes::ObjectTypeAttribute extends PropertyAttribute.

Overview

Properties

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

Public Member Functions

ObjectTypeAttribute
( Type targetType,
params Type [] additionalTargetTypes )
Constructor that takes in the target type that any objects must be cast to
ObjectTypeAttribute
( bool requireAll,
Type targetType,
params Type [] additionalTargetTypes )
Constructor that takes in the target type that any objects must be cast to

Details

Properties

Type [] Meta.WitAi.Attributes.ObjectTypeAttribute.TargetTypes
The types this property will be restricted to
bool Meta.WitAi.Attributes.ObjectTypeAttribute.RequiresAllTypes
If true, all types must be included. If false, any of the specified types can be included

Member Functions

Meta.WitAi.Attributes.ObjectTypeAttribute.ObjectTypeAttribute
( Type targetType,
params Type [] additionalTargetTypes )
Constructor that takes in the target type that any objects must be cast to
Meta.WitAi.Attributes.ObjectTypeAttribute.ObjectTypeAttribute
( bool requireAll,
Type targetType,
params Type [] additionalTargetTypes )
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