Class CreateInstanceOnInspectionAttribute
Tag a field or a property to try to create a new instance if it is null.
Namespace: Unity.Properties.UI
Syntax
public class CreateInstanceOnInspectionAttribute : InspectorAttribute
Constructors
CreateInstanceOnInspectionAttribute()
Constructs a new instance of CreateInstanceOnInspectionAttribute.
Declaration
public CreateInstanceOnInspectionAttribute()
CreateInstanceOnInspectionAttribute(Type)
Constructs a new instance of CreateInstanceOnInspectionAttribute with the specified Type.
Declaration
public CreateInstanceOnInspectionAttribute(Type type)
Parameters
Type | Name | Description |
---|---|---|
Type | type | The targeted Type when creating a new instance. |
Properties
Type
Returns the type of the instance that should be instantiated.
Declaration
public Type Type { get; }
Property Value
Type | Description |
---|---|
Type |