Class HighlightableObject
All object that can be highlighted (enemies, interactable object etc.) derive from this class, which takes care of setting the material parameters for it when it gets highlighted. If the object use another material, it will just ignore all the changes.
Inheritance
System.Object
UnityEngine.Object
UnityEngine.Component
UnityEngine.Behaviour
UnityEngine.MonoBehaviour
HighlightableObject
Namespace: CreatorKitCode
Assembly: Assembly-CSharp.dll
Syntax
public class HighlightableObject : MonoBehaviour
Fields
m_Renderers
Declaration
protected Renderer[] m_Renderers
Field Value
Type | Description |
---|---|
UnityEngine.Renderer[] |
Methods
Dehighlight()
Call this when the object is done being highlighted, this will switch all the material parameters to make it back to normal
Declaration
public void Dehighlight()
Highlight()
Call this when the object is highlighted, this will switch all the material parameters to make it glow
Declaration
public void Highlight()
Start()
Declaration
protected virtual void Start()