class SerializedProperty

robot_2Generated
code_blocksInput

Description

The SerializedProperty class in the Sandbox namespace is an abstract class that provides a framework for handling serialized properties within the s&box environment. It offers methods and properties to manage and interact with serialized data, including setting and getting values, checking attributes, and handling multiple values.

Members

Instance Methods

Member Name Summary
SetValue Sets the value of the property.
GetValue Gets the value of the property, with a default value if not set.
GetDefault Get the default value of a specific property type.
HasAttribute Checks if the property has a specific attribute.
TryGetAttribute Attempts to get a specific attribute from the property.
GetAttributes Get all attributes from the property.
TryGetAsObject Attempts to get the property as a serialized object.
GetKey If this entry is a dictionary, retrieves the key for it.
ShouldShow Returns true if this property should be shown in the inspector.
SetNullState Sets the null state of the property.
Invoke If the property is a method, invokes it.

Static Methods

Member Name Summary
Create Creates a new serialized property. (Obsolete: Use TypeLibrary.CreateProperty)

Properties

Member Name Summary
Parent Gets the parent serialized object.
IsProperty Indicates if this is a property.
IsField Indicates if this is a field.
IsMethod Indicates if this is a method.
Name Gets the name of the property.
DisplayName Gets the display name of the property.
Description Gets the description of the property.
GroupName Gets the group name of the property.
Order Gets the order of the property.
IsEditable Indicates if the property is editable.
IsPublic Indicates if the property is public.
PropertyType Gets the type of the property.
IsValid Indicates if the property is valid.
SourceFile The source filename, if available.
SourceLine The line in the source file, if available.
HasChanges Returns true if the current set value differs from the actual value.
As Accesses the property as an accessor.
IsMultipleValues True if this holds multiple values. That might all be the same.
IsMultipleDifferentValues True if this holds multiple values, and they're all different.
MultipleProperties Get all properties if this holds multiple values.
IsNullable Return true if this is a nullable value type.
NullableType If this is a nullable type, this will return the nullable target type.
IsNull True if the value is null.