AddInspector
(
category
, gameObjectName
, componentClassName
, members
)
|
Adds a dedicated inspector for a specific component on a game object.
This will find the game object from scene, then find the component instance and create InstanceHandle, register in InstanceCache, and register inspector based on the Type and InstanceHandle. It will retrieve the members of this type based on filter. If Members filter is not supplied, it will automatically register all the public members within this class.
Signature
static RuntimeAPIOperationResult AddInspector(string category, string gameObjectName, string componentClassName, string members="") Parameters category: stringÂ
The category name for organizing the inspector
gameObjectName: stringÂ
The name of the GameObject to find in the scene
componentClassName: stringÂ
The class name of the component to inspect
members: stringÂ
Optional comma-separated list of member names to inspect. If empty, all public members will be included.
Returns RuntimeAPIOperationResultÂ
A RuntimeAPIOperationResult containing detailed operation result with message information for AI agents
|
AddInspectorItemWithGizmo
(
category
, gizmoType
, color
, gameObjectName
, componentClassName
, member
)
|
Adds a dedicated inspector for a specific component on a game object.
This will find the game object from scene, then find the component instance and create InstanceHandle, register in InstanceCache, and register inspector based on the Type and InstanceHandle. It will retrieve the members of this type based on filter. If Members filter is not supplied, it will automatically register all the public members within this class.
Signature
static RuntimeAPIOperationResult AddInspectorItemWithGizmo(string category, string gizmoType, string color, string gameObjectName, string componentClassName, string member) Parameters category: stringÂ
The category name for organizing the inspector
gizmoType: stringÂ
The type of the gizmo - e.g. Axis, Box
color: stringÂ
The color of the gizmo - e.g. white, red, #ff0000ff
gameObjectName: stringÂ
The name of the GameObject to find in the scene
componentClassName: stringÂ
The class name of the component to inspect
member: stringÂ
The member name to be inspected and visualized by the gizmo, only one member and needs to be valid on the object
Returns RuntimeAPIOperationResultÂ
A RuntimeAPIOperationResult containing detailed operation result with message information for AI agents
|