Component:Skybox: Difference between revisions

From Resonite Wiki
Automated: create new component page
 
add info
Line 3: Line 3:
|Name=Skybox
|Name=Skybox
}}
}}
{{stub}}
Can be used to specify the current material for the skybox and set the current skybox for the current world.


== Usage ==
== Fields ==
{{Table ComponentFields
{{Table ComponentFields
|Material|{{RootFieldType|AssetRef`1|[[Type:Material|Material]]}}|TypeAdv0=true|
|Material|{{RootFieldType|AssetRef`1|[[Type:Material|Material]]}}|TypeAdv0=true| The material to use for the skybox.
}}
 
== Sync Delegates ==
{{Table ComponentTriggers
|SetActive()|[[Type:Delegate|Delegate]]<[[Type:IButton|IButton]] button, [[Type:ButtonEventData|ButtonEventData]] eventData>| Sets the skybox of the world this component is in to this skybox.
}}
}}


== Behavior ==
== Usage ==
Attach to a slot, put a [[Component:Projection360Material]] or a [[Component:ProceduralSkyMaterial]] in <code>Material</code> and hit the "Set Active Skybox" button to enable the skybox.


== Examples ==
== Examples ==
In the root of the default world gridspace and any other Template.


== See Also ==
== See Also ==
* [[World]]


[[Category:Components:Rendering{{#translation:}}|Skybox]]
[[Category:Components:Rendering{{#translation:}}|Skybox]]
[[Category:Components{{#translation:}}|Skybox]]
[[Category:Components{{#translation:}}|Skybox]]
[[Category:ComponentStubs]]

Revision as of 18:27, 3 February 2025

Component image 
Skybox component as seen in the Scene Inspector

Can be used to specify the current material for the skybox and set the current skybox for the current world.

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.
Material Material The material to use for the skybox.

Sync Delegates

Lua error in mw.text.lua at line 25: bad argument #1 to 'match' (string expected, got nil).
Triggers
Method Name Method type and Arguments. Is the method hidden? Description

Usage

Attach to a slot, put a Component:Projection360Material or a Component:ProceduralSkyMaterial in Material and hit the "Set Active Skybox" button to enable the skybox.

Examples

In the root of the default world gridspace and any other Template.

See Also