Component:GenericUserspaceDialogSpawner: Difference between revisions

From Resonite Wiki
Automated: create new component page
 
add info
Line 3: Line 3:
|Name=Generic Userspace Dialog Spawner`1
|Name=Generic Userspace Dialog Spawner`1
}}
}}
{{stub}}
The '''GenericUserspaceDialogSpawner''' only works in dash space. The Generic type it takes has to be a component type. This component activates when on the slot as a button. When activated, this component attaches a new instance of '''T''' to the world, triggers <code>Initializer</code> with the new Component as an argument, and then positions it in front of the user in dash space.


== Usage ==
== Fields ==
{{Table ComponentFields
{{Table ComponentFields
|Initializer|{{RootFieldType|SyncDelegate`1|[[Type:Action`1|Action`1]]&lt;T&gt;}}|TypeAdv0=true|
|Initializer|{{RootFieldType|SyncDelegate`1|[[Type:Action`1|Action`1]]&lt;T&gt;}}|TypeAdv0=true| An action that takes a Component type.
}}
}}
== Behavior ==
== Examples ==


== See Also ==
== See Also ==
Line 19: Line 15:
[[Category:Components{{#translation:}}|Generic Userspace Dialog Spawner`1]]
[[Category:Components{{#translation:}}|Generic Userspace Dialog Spawner`1]]
[[Category:Generic Components{{#translation:}}|Generic Userspace Dialog Spawner`1]]
[[Category:Generic Components{{#translation:}}|Generic Userspace Dialog Spawner`1]]
[[Category:ComponentStubs]]

Revision as of 17:40, 19 January 2025

Component image 
File:GenericUserspaceDialogSpawner`1Component.png
Generic Userspace Dialog Spawner`1 component as seen in the Scene Inspector

The GenericUserspaceDialogSpawner only works in dash space. The Generic type it takes has to be a component type. This component activates when on the slot as a button. When activated, this component attaches a new instance of T to the world, triggers Initializer with the new Component as an argument, and then positions it in front of the user in dash space.

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.
Initializer delegate of identity Action`1<T> An action that takes a Component type.

See Also