Class AxisMaterial
Useful tool for changing colors or applying color tweens to specific objects in your game, whether they're UI elements or MeshRenderers. With this component, you can easily set up different colors for objects and even create smooth transitions between colors.
Inheritance
object
AxisMaterial
Assembly: cs.temp.dll.dll
Syntax
public sealed class AxisMaterial : AxisMonoBehaviour
Fields
BaseMaterial
Material to use as base for the renderer
Declaration
public Material BaseMaterial
Field Value
Type |
Description |
Material |
|
Colors
Declaration
Field Value
colorTime
Time to animate between colors in the list. If time is greater than 0 tween between each color in the list below for this time.
If equals 0 animation is freezed, and ColorIndex can be used to change between colors in the list.
Declaration
Field Value
OffsetSpeed
Texture offset speed to animate scrolling
Declaration
public Vector2 OffsetSpeed
Field Value
sortingOrder
Declaration
Field Value
Textures
Declaration
public Texture2D[] Textures
Field Value
Type |
Description |
Texture2D[] |
|
TextureScale
Time to animate between colors in the list. If time is greater than 0 tween between each color in the list below for this time.
If equals 0 animation is freezed, and ColorIndex can be used to change between colors in the list.
Declaration
public Vector2 TextureScale
Field Value
textureTime
Declaration
Field Value
Properties
ColorIndex
Property to change current ColorIndex
Declaration
public int ColorIndex { get; set; }
Property Value
ColorTime
Property to change ColorTime
Declaration
public float ColorTime { get; set; }
Property Value
OffsetSpeedX
Property to change OffsetSpeed X value
Declaration
public float OffsetSpeedX { get; set; }
Property Value
OffsetSpeedY
Property to change OffsetSpeed Y value
Declaration
public float OffsetSpeedY { get; set; }
Property Value
Methods
NextColor()
Declaration
OnValidate()
Declaration
PrevColor()
Declaration