Search Results for

    Show / Hide Table of Contents

    Class MaterialController

    Handles material related functionality for TrainAR objects.

    Inheritance
    System.Object
    MaterialController
    Namespace: Interaction
    Assembly: Assembly-CSharp.dll
    Syntax
    public class MaterialController : MonoBehaviour

    Methods

    | Improve this Doc View Source

    ActivateErrorIndicator()

    Play Error outline animation in coroutine.

    Declaration
    public void ActivateErrorIndicator()
    | Improve this Doc View Source

    ActivateOutlines()

    Activates the Outline of the object.

    Declaration
    public void ActivateOutlines()
    | Improve this Doc View Source

    ActivateSuccessIndicator()

    Play Success outline animation in coroutine.

    Declaration
    public void ActivateSuccessIndicator()
    | Improve this Doc View Source

    ActivateSuccessIndicator(String)

    Play Success outline animation in coroutine.

    Declaration
    public void ActivateSuccessIndicator(string CombinedWith)
    Parameters
    Type Name Description
    System.String CombinedWith
    | Improve this Doc View Source

    ChangeToCombineMaterial()

    Replaces all materials on the this Object with a material for combining.

    Declaration
    public void ChangeToCombineMaterial()
    | Improve this Doc View Source

    DeactivateOutlines()

    Deactivates the Outline of the object.

    Declaration
    public void DeactivateOutlines()
    | Improve this Doc View Source

    resetOriginalMaterial()

    Resets the current materials back to original materials of the object.

    Declaration
    public void resetOriginalMaterial()
    | Improve this Doc View Source

    setNewOriginalMaterial(GameObject, Material)

    Change the original material of the given object with to a new material.

    Declaration
    public void setNewOriginalMaterial(GameObject gameObject, Material newMaterial)
    Parameters
    Type Name Description
    GameObject gameObject

    The gameobject where the material is changed.

    Material newMaterial

    The new material.

    • Improve this Doc
    • View Source
    In This Article
    Back to top TrainAR Documentation