Table of Contents

Class ComponentModel

Namespace
Plugins.Saneject.Editor.Inspectors.Models
Assembly
Saneject.Editor.dll

Encapsulates a target component and its inspectable properties for drawing in the custom Saneject inspector. This model reflects on the target object's type to collect all drawable fields and constructs PropertyModel instances for each field, handling serialized interfaces, nested types, and injection-aware properties.

public sealed class ComponentModel
Inheritance
object
ComponentModel

Constructors

ComponentModel(Object, SerializedObject)

Initializes a new instance of the ComponentModel class.

public ComponentModel(Object target, SerializedObject serializedObject)

Parameters

target Object

The target object being inspected. Used for type reflection.

serializedObject SerializedObject

The SerializedObject representing the target for property access.

Properties

Properties

Gets the read-only collection of inspectable properties of the target.

public IReadOnlyList<PropertyModel> Properties { get; }

Property Value

IReadOnlyList<PropertyModel>

SerializedObject

Gets the serialized representation of the target object.

public SerializedObject SerializedObject { get; }

Property Value

SerializedObject

Target

Gets the target object being inspected.

public Object Target { get; }

Property Value

Object