CustomizableSerializedPropertyclass
A proxy around a SerializedProperty that allows overriding any property for UI customization. Unset values fall through to the underlying property.
Constructors1
Showing 1 constructors
public CustomizableSerializedProperty(Sandbox.SerializedProperty property)
| Parameter | Type | Description |
|---|---|---|
| property | SerializedProperty | — |
No results match this filter.
Methods18
Showing 18 methods
public void AddAttribute(System.Attribute attribute)
Append an extra attribute visible to the editor and control widgets.
| Parameter | Type | Description |
|---|---|---|
| attribute | Attribute | — |
void—public virtual System.Collections.Generic.IEnumerable`1<System.Attribute> GetAttributes()
Returns the underlying attributes merged with any added via `Sandbox.SerializedProperty.CustomizableSerializedProperty.AddAttribute(System.Attribute)`.
public void SetDescription(string value)
Override the tooltip / description text.
| Parameter | Type | Description |
|---|---|---|
| value | string | — |
void—public void SetDisplayName(string value)
Override the label shown in the inspector.
| Parameter | Type | Description |
|---|---|---|
| value | string | — |
void—public void SetGroupName(string value)
Override which inspector group this property appears in.
| Parameter | Type | Description |
|---|---|---|
| value | string | — |
void—public void SetHasChanges(bool value)
Override the dirty/changed flag.
| Parameter | Type | Description |
|---|---|---|
| value | bool | — |
void—public void SetIsEditable(bool value)
Force the property to be editable or read-only.
| Parameter | Type | Description |
|---|---|---|
| value | bool | — |
void—public void SetIsField(bool value)
Override whether this appears as a field.
| Parameter | Type | Description |
|---|---|---|
| value | bool | — |
void—public void SetIsMethod(bool value)
Override whether this appears as a method.
| Parameter | Type | Description |
|---|---|---|
| value | bool | — |
void—public void SetIsProperty(bool value)
Override whether this appears as a property.
| Parameter | Type | Description |
|---|---|---|
| value | bool | — |
void—public void SetIsPublic(bool value)
Override the public visibility flag.
| Parameter | Type | Description |
|---|---|---|
| value | bool | — |
void—public void SetIsValid(bool value)
Override the validity flag.
| Parameter | Type | Description |
|---|---|---|
| value | bool | — |
void—public void SetName(string value)
Override the property's internal name.
| Parameter | Type | Description |
|---|---|---|
| value | string | — |
void—public void SetOrder(int value)
Override the sort order within the inspector.
| Parameter | Type | Description |
|---|---|---|
| value | int | — |
void—public void SetParent(Sandbox.SerializedObject value)
Override the parent SerializedObject.
| Parameter | Type | Description |
|---|---|---|
| value | SerializedObject | — |
void—public void SetPropertyType(System.Type value)
Override the reported property type.
| Parameter | Type | Description |
|---|---|---|
| value | Type | — |
void—public void SetSourceFile(string value)
Override the reported source file path.
| Parameter | Type | Description |
|---|---|---|
| value | string | — |
void—public void SetSourceLine(int value)
Override the reported source line number.
| Parameter | Type | Description |
|---|---|---|
| value | int | — |
void—No results match this filter.
Properties17
Showing 17 properties
public virtual string Sandbox.SerializedProperty.CustomizableSerializedProperty.Description { get; set; }
string—public virtual string Sandbox.SerializedProperty.CustomizableSerializedProperty.DisplayName { get; set; }
string—public virtual string Sandbox.SerializedProperty.CustomizableSerializedProperty.GroupName { get; set; }
string—public virtual bool Sandbox.SerializedProperty.CustomizableSerializedProperty.HasChanges { get; set; }
bool—public virtual bool Sandbox.SerializedProperty.CustomizableSerializedProperty.IsEditable { get; set; }
bool—public virtual bool Sandbox.SerializedProperty.CustomizableSerializedProperty.IsField { get; set; }
bool—public virtual bool Sandbox.SerializedProperty.CustomizableSerializedProperty.IsMethod { get; set; }
bool—public virtual bool Sandbox.SerializedProperty.CustomizableSerializedProperty.IsProperty { get; set; }
bool—public virtual bool Sandbox.SerializedProperty.CustomizableSerializedProperty.IsPublic { get; set; }
bool—public virtual bool Sandbox.SerializedProperty.CustomizableSerializedProperty.IsValid { get; set; }
bool—public virtual string Sandbox.SerializedProperty.CustomizableSerializedProperty.Name { get; set; }
string—public virtual int Sandbox.SerializedProperty.CustomizableSerializedProperty.Order { get; set; }
int—public virtual Sandbox.SerializedObject Sandbox.SerializedProperty.CustomizableSerializedProperty.Parent { get; set; }
public virtual System.Type Sandbox.SerializedProperty.CustomizableSerializedProperty.PropertyType { get; set; }
protected virtual Sandbox.SerializedProperty Sandbox.SerializedProperty.CustomizableSerializedProperty.ProxyTarget { get; set; }
public virtual string Sandbox.SerializedProperty.CustomizableSerializedProperty.SourceFile { get; set; }
string—public virtual int Sandbox.SerializedProperty.CustomizableSerializedProperty.SourceLine { get; set; }
int—No results match this filter.