Template:Table ComponentTriggers: Difference between revisions

Template page
update this to be dynamic
add column
Line 7: Line 7:


{{Table ComponentTriggers
{{Table ComponentTriggers
|Spawn()|[[Type:Action`1|Action]]| Spawns a slot randomly selected from <code>Templates</code>, located at the origin of this component's parent slot.
|Spawn()|[[Type:Action`1|Action]]|false| Spawns a slot randomly selected from <code>Templates</code>, located at the origin of this component's parent slot.
|SpawnAtPoint()|[[Type:Action`1|Action`1]]&lt;point: [[Types:Float3|Float3]]&gt;| Spawns a slot randomly selected from <code>Templates</code>, located at the position specified in the <code>Float3</code> argument  
|SpawnAtPoint()|[[Type:Action`1|Action`1]]&lt;point: [[Types:Float3|Float3]]&gt;|false| Spawns a slot randomly selected from <code>Templates</code>, located at the position specified in the <code>Float3</code> argument  
}}
}}


<onlyinclude><includeonly>{| class="wikitable mw-collapsible"
<onlyinclude><includeonly>{| class="wikitable mw-collapsible"
|+ Triggers
|+ Triggers
|-
|
! Method Name
! Method Name
! Method type and Arguments.
! Method type and Arguments.
! Is the method hidden?
! Description
! Description
|
|-
{{#invoke:ComponentTriggers|main}}
{{#invoke:ComponentTriggers|main}}
|-
|-
|}</includeonly></onlyinclude>
|}</includeonly></onlyinclude>

Revision as of 06:03, 17 March 2025

Method type and Arguments

Explains what kind of method it is (Action, Func`1, etc) and the variable types and names of the arguments (ex: "point: Float3, weight: Float"

Examples

From RandomObjectSpawner

Triggers
Method Name Method type and Arguments. Is the method hidden? Description
Spawn() Action X Spawns a slot randomly selected from Templates, located at the origin of this component's parent slot.
SpawnAtPoint() Action`1<point: Float3> X Spawns a slot randomly selected from Templates, located at the position specified in the Float3 argument