Component:SceneInspector: Difference between revisions

From Resonite Wiki
Automated: update SyncDelegates
add info
 
(One intermediate revision by one other user not shown)
Line 3: Line 3:
|Name=Scene Inspector
|Name=Scene Inspector
}}
}}
{{stub}}
See [[Scene Inspector]]!


== Usage ==
== Fields ==
{{Table ComponentFields
{{Table ComponentFields
|Root|{{RootFieldType|RelayRef`1|[[Type:Slot|Slot]]}}|TypeAdv0=true|
|Root|{{RootFieldType|RelayRef`1|[[Type:Slot|Slot]]}}|TypeAdv0=true| The root of the view of this inspector's hiearchy.
|ComponentView|Slot|
|ComponentView|Slot| The currently selected slot to view components for.
|_rootText|'''[[Type:Sync`1|Sync`1]]<[[Type:String|String]]>'''|TypeAdv2=true|
|_rootText|'''[[Type:Sync`1|Sync`1]]<[[Type:String|String]]>'''|TypeAdv2=true| The text field for the display of the root hiearchy slot for this inspector's view.
|_componentText|'''[[Type:Sync`1|Sync`1]]<[[Type:String|String]]>'''|TypeAdv3=true|
|_componentText|'''[[Type:Sync`1|Sync`1]]<[[Type:String|String]]>'''|TypeAdv3=true| The text field for the display of the slot for this inspector's component view.
|_hierarchyContentRoot|Slot|
|_hierarchyContentRoot|Slot| The root of the view for slots on the currently viewed slot hiearchy.
|_componentsContentRoot|Slot|
|_componentsContentRoot|Slot| The root of the view for components on the currently selected slot.
|_currentComponent|Slot|
|_currentComponent|Slot| The current component this is looking at.
|_currentRoot|Slot|
|_currentRoot|Slot| The current root this is looking at.
}}
}}


== Sync Delegates ==
== Sync Delegates ==
{{Table ComponentTriggers
{{Table ComponentTriggers
|OnRootUpPressed[[Type:ButtonEventHandler|ButtonEventHandler]]|[[Type:ButtonEventHandler|ButtonEventHandler]]|true|
|OnRootUpPressed:[[Type:ButtonEventHandler|ButtonEventHandler]]|[[Type:ButtonEventHandler|ButtonEventHandler]]|true| Called when the go up in hiearchy button is touched.
|OnObjectRootPressed[[Type:ButtonEventHandler|ButtonEventHandler]]|[[Type:ButtonEventHandler|ButtonEventHandler]]|true|
|OnObjectRootPressed:[[Type:ButtonEventHandler|ButtonEventHandler]]|[[Type:ButtonEventHandler|ButtonEventHandler]]|true| Called when the view slot component list button is touched.
|OnSetRootPressed[[Type:ButtonEventHandler|ButtonEventHandler]]|[[Type:ButtonEventHandler|ButtonEventHandler]]|true|
|OnSetRootPressed:[[Type:ButtonEventHandler|ButtonEventHandler]]|[[Type:ButtonEventHandler|ButtonEventHandler]]|true| Called when the set root slot view button is touched.
|OnAddChildPressed[[Type:ButtonEventHandler|ButtonEventHandler]]|[[Type:ButtonEventHandler|ButtonEventHandler]]|true|
|OnAddChildPressed:[[Type:ButtonEventHandler|ButtonEventHandler]]|[[Type:ButtonEventHandler|ButtonEventHandler]]|true| Called when the add child button is touched.
|OnInsertParentPressed[[Type:ButtonEventHandler|ButtonEventHandler]]|[[Type:ButtonEventHandler|ButtonEventHandler]]|true|
|OnInsertParentPressed:[[Type:ButtonEventHandler|ButtonEventHandler]]|[[Type:ButtonEventHandler|ButtonEventHandler]]|true| Called when the insert parent button is touched.
|OnAttachComponentPressed[[Type:ButtonEventHandler|ButtonEventHandler]]|[[Type:ButtonEventHandler|ButtonEventHandler]]|true|
|OnAttachComponentPressed:[[Type:ButtonEventHandler|ButtonEventHandler]]|[[Type:ButtonEventHandler|ButtonEventHandler]]|true| Called when the attach component dialog button is touched.
|OnComponentSelected[[Type:Action`2|Action`2]]<[[Component:ComponentSelector|ComponentSelector]], [[Type:Type|Type]]>|[[Type:Action`2|Action`2]]<[[Component:ComponentSelector|ComponentSelector]], [[Type:Type|Type]]>|true|
|OnComponentSelected:[[Type:Action`2|Action`2]]<[[Component:ComponentSelector|ComponentSelector]], [[Type:Type|Type]]>|[[Type:Action`2|Action`2]]<[[Component:ComponentSelector|ComponentSelector]], [[Type:Type|Type]]>|true| Handles when a component selector is told to attach a component to the slot this is on.
|OnDestroyPressed[[Type:ButtonEventHandler|ButtonEventHandler]]|[[Type:ButtonEventHandler|ButtonEventHandler]]|true|
|OnDestroyPressed:[[Type:ButtonEventHandler|ButtonEventHandler]]|[[Type:ButtonEventHandler|ButtonEventHandler]]|true| Called when the destroy button is touched.
|OnDestroyPreservingAssetsPressed[[Type:ButtonEventHandler|ButtonEventHandler]]|[[Type:ButtonEventHandler|ButtonEventHandler]]|true|
|OnDestroyPreservingAssetsPressed:[[Type:ButtonEventHandler|ButtonEventHandler]]|[[Type:ButtonEventHandler|ButtonEventHandler]]|true| Called when the recycle button is touched.
|OnDuplicatePressed[[Type:ButtonEventHandler|ButtonEventHandler]]|[[Type:ButtonEventHandler|ButtonEventHandler]]|true|
|OnDuplicatePressed:[[Type:ButtonEventHandler|ButtonEventHandler]]|[[Type:ButtonEventHandler|ButtonEventHandler]]|true| Called when the  button is touched.
}}
}}


== Behavior ==
== Usage ==
See [[Scene Inspector]]!


== Examples ==
== Examples ==
See [[Scene Inspector]]!


== See Also ==
== See Also ==
* [[Scene Inspector]]


[[Category:Components:Uncategorized{{#translation:}}|Scene Inspector]]
[[Category:Components:Uncategorized{{#translation:}}|Scene Inspector]]
[[Category:Components{{#translation:}}|Scene Inspector]]
[[Category:Components{{#translation:}}|Scene Inspector]]
[[Category:ComponentStubs]]

Latest revision as of 22:40, 7 April 2025

Component image 
Scene Inspector component as seen in the Scene Inspector

See Scene Inspector!

Fields

Fields
Name Type Description
persistent Bool Determines whether or not this item will be saved to the server.
UpdateOrder Int Controls the order in which this component is updated.
Enabled Bool Controls whether or not this component is enabled. Some components stop their functionality when this field is disabled, but some don't.
Root direct RelayRef`1<Slot> The root of the view of this inspector's hiearchy.
ComponentView Slot The currently selected slot to view components for.
_rootText Sync`1<String> The text field for the display of the root hiearchy slot for this inspector's view.
_componentText Sync`1<String> The text field for the display of the slot for this inspector's component view.
_hierarchyContentRoot Slot The root of the view for slots on the currently viewed slot hiearchy.
_componentsContentRoot Slot The root of the view for components on the currently selected slot.
_currentComponent Slot The current component this is looking at.
_currentRoot Slot The current root this is looking at.

Sync Delegates

Triggers
Method Name Method type and Arguments. Is the method hidden? Description
OnRootUpPressed:ButtonEventHandler ButtonEventHandler Called when the go up in hiearchy button is touched.
OnObjectRootPressed:ButtonEventHandler ButtonEventHandler Called when the view slot component list button is touched.
OnSetRootPressed:ButtonEventHandler ButtonEventHandler Called when the set root slot view button is touched.
OnAddChildPressed:ButtonEventHandler ButtonEventHandler Called when the add child button is touched.
OnInsertParentPressed:ButtonEventHandler ButtonEventHandler Called when the insert parent button is touched.
OnAttachComponentPressed:ButtonEventHandler ButtonEventHandler Called when the attach component dialog button is touched.
OnComponentSelected:Action`2<ComponentSelector, Type> Action`2<ComponentSelector, Type> Handles when a component selector is told to attach a component to the slot this is on.
OnDestroyPressed:ButtonEventHandler ButtonEventHandler Called when the destroy button is touched.
OnDestroyPreservingAssetsPressed:ButtonEventHandler ButtonEventHandler Called when the recycle button is touched.
OnDuplicatePressed:ButtonEventHandler ButtonEventHandler Called when the button is touched.

Usage

See Scene Inspector!

Examples

See Scene Inspector!

See Also