add hopefully correct info. |
989onan bot (talk | contribs) Automated: update '_shader' description,'BaseColor' description,'_gradients' description, |
||
Line 12: | Line 12: | ||
{{Table ComponentFields | {{Table ComponentFields | ||
|HighPriorityIntegration|Bool|{{Asset HighPriorityIntegration Field}} | |HighPriorityIntegration|Bool|{{Asset HighPriorityIntegration Field}} | ||
|_shader|{{RootFieldType|AssetRef`1|[[Type:Shader|Shader]]}}|TypeAdv1=true| | |_shader|{{RootFieldType|AssetRef`1|[[Type:Shader|Shader]]}}|TypeAdv1=true|{{Template:Material__shader}} | ||
|BaseColor|ColorX| | |BaseColor|ColorX|{{Template:Material_BaseColor}} | ||
|_gradients|{{RootFieldType|SyncList`1|[[#Gradient|Gradient]]}}|TypeAdv3=true| | |_gradients|{{RootFieldType|SyncList`1|[[#Gradient|Gradient]]}}|TypeAdv3=true|{{Template:Material__gradients}} | ||
}} | }} | ||
Latest revision as of 20:43, 29 June 2025
Component image 
Gradient Sky Material component as seen in the Scene Inspector

The GradientSkyMaterial component is used in Component:Skybox to make a gradient type sky for use in worlds.
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. |
HighPriorityIntegration
|
Bool | If true, integrating this asset (e.g. processing procedural assets) gets higher priority than assets with this flag off. An example is user laser procedural meshes. |
_shader
|
Shader | Internal. |
BaseColor
|
ColorX | Starting color for the fog volume |
_gradients
|
list of Gradient | Applies a list of Gradients to the sky. |
Usage
Attach to a slot and insert into a Component:Skybox component and use the SetCurrentSky() Sync Method to use this component. Don't forget to add some _gradients
to the list.
Gradient
Gradient is a nested type used in the _gradients
list.
Name | Type | Description |
---|---|---|
Direction
|
Float3 | The direction this gradient should point in. |
FromColor
|
ColorX | The color to start at for this gradient. |
ToColor
|
ColorX | The color to end at for this gradient. |
Spread
|
Float | How much to extend the gradient from it's From and To limits beyond the transitioning section.
|
From
|
Float | Where this gradient should start from in a range from 0<->1 |
To
|
Float | Where this gradient should end at in a range from 0<->1 |
Exp
|
Float | The sharpness of the transition of the gradient |