PropertyChildren

Represents the children of an InspectorProperty.

namespace Sirenix.OdinInspector.Editor
{
[DefaultMemberAttribute("Item")]
public abstract class PropertyChildren
}

Requirements

Namespace: Sirenix.OdinInspector.Editor
Assembly: Sirenix.OdinInspector
Version: 1.0.6.1

Fields

Return Type Definition Description
InspectorProperty Property The InspectorProperty that this instance handles children for.

Constructors

Definition Description
PropertyChildren(InspectorProperty) Initializes a new instance of the PropertyChildren class.

Properties

Return Type Definition Description
int ActualCount The actual number of children; this is different from Count, in that Count will be 0 if GetAllowChildren() is false.
int Count The number of children on the property.
bool IsCollection Whether this PropertyChildren instance represents the elements of a collection.
InspectorProperty Item Gets a child by index. This is an alias for Get(int).
InspectorProperty Item Gets a child by name. This is an alias for Get(string).

Methods

Return Type Definition Description
InspectorProperty CreateChild(int) Creates a child property for the given index.
InspectorProperty Get(int) Gets a child by index.
InspectorProperty Get(string) Gets a child by name.
bool GetAllowChildren() Determines whether to allow children on the property or not.
string GetPath(int) Gets the path of the child at a given index.
string GetPathImplementation(int) The implementaton that calculates a path for a given index.
void InsertSpaceAt(int) Insert space for a child at the given index.
IEnumerable<InspectorProperty> Recurse() Returns an IEnumerable that recursively yields all children of the property, depth first.
void RemoveChildAt(int) Remove the child at the given index.
void Update() Updates this instance of PropertyChildren.
void UpdateCount() Updates the child count of the property.