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 SourceActivateErrorIndicator()
Play Error outline animation in coroutine.
Declaration
public void ActivateErrorIndicator()
ActivateOutlines()
Activates the Outline of the object.
Declaration
public void ActivateOutlines()
ActivateSuccessIndicator()
Play Success outline animation in coroutine.
Declaration
public void ActivateSuccessIndicator()
ActivateSuccessIndicator(String)
Play Success outline animation in coroutine.
Declaration
public void ActivateSuccessIndicator(string CombinedWith)
Parameters
Type | Name | Description |
---|---|---|
System.String | CombinedWith |
ChangeToCombineMaterial()
Replaces all materials on the this Object with a material for combining.
Declaration
public void ChangeToCombineMaterial()
DeactivateOutlines()
Deactivates the Outline of the object.
Declaration
public void DeactivateOutlines()
resetOriginalMaterial()
Resets the current materials back to original materials of the object.
Declaration
public void resetOriginalMaterial()
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. |