Search Results for

    Show / Hide Table of Contents

    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
    AxisMonoBehaviour
    AxisMaterial
    Inherited Members
    AxisMonoBehaviour.ContainsLabel(string)
    AxisMonoBehaviour.CountChildrenWithLabel(string, bool)
    AxisMonoBehaviour.ContainsLabelInChildren(string, bool)
    AxisMonoBehaviour.GetSpaceBetweenColliders(AxisMonoBehaviour)
    AxisMonoBehaviour.GetSpaceBetweenCollidersHorizontally(AxisMonoBehaviour)
    AxisMonoBehaviour.PauseGame()
    AxisMonoBehaviour.SetActiveByName(string)
    AxisMonoBehaviour.ResumeGame()
    AxisMonoBehaviour.GameTimeScaleSet(float)
    AxisMonoBehaviour.transform
    AxisMonoBehaviour.gameObject
    AxisMonoBehaviour.collider
    AxisMonoBehaviour.Origin
    AxisMonoBehaviour.OnTransformChildrenChanged()
    Namespace: Axis.VFX
    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

    List of colors

    Declaration
    public Color[] Colors
    Field Value
    Type Description
    Color[]

    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
    public float colorTime
    Field Value
    Type Description
    float

    OffsetSpeed

    Texture offset speed to animate scrolling

    Declaration
    public Vector2 OffsetSpeed
    Field Value
    Type Description
    Vector2

    sortingOrder

    Declaration
    public int sortingOrder
    Field Value
    Type Description
    int

    Textures

    List of colors

    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
    Type Description
    Vector2

    textureTime

    Declaration
    public float textureTime
    Field Value
    Type Description
    float

    Properties

    ColorIndex

    Property to change current ColorIndex

    Declaration
    public int ColorIndex { get; set; }
    Property Value
    Type Description
    int

    ColorTime

    Property to change ColorTime

    Declaration
    public float ColorTime { get; set; }
    Property Value
    Type Description
    float

    OffsetSpeedX

    Property to change OffsetSpeed X value

    Declaration
    public float OffsetSpeedX { get; set; }
    Property Value
    Type Description
    float

    OffsetSpeedY

    Property to change OffsetSpeed Y value

    Declaration
    public float OffsetSpeedY { get; set; }
    Property Value
    Type Description
    float

    Methods

    NextColor()

    Declaration
    public void NextColor()

    OnValidate()

    Declaration
    public void OnValidate()

    PrevColor()

    Declaration
    public void PrevColor()
    In This Article
    Back to top Axis 1.0.0