Component:GradientSkyMaterial
The GradientSkyMaterial component is used in Component:Skybox to make a gradient type sky for use in worlds.
More actions
(Redirected from GradientSkyMaterial (Component))
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 |