Skip to content

API > MLMirror


MLMirror⚓︎

MLMirror inherits from Component

API for MLMirror component.

Members⚓︎

Properties⚓︎

Name Description
MLMirror.MirrorActiveProperty Is the mirror active. You can enable or disable the mirror using this property.

Inherited Members⚓︎

Inherited Properties⚓︎

Name Description
MLMirror.gameObjectPropertyReadonly Property The game object this component is attached to. A component is always attached to a game object.
MLMirror.tagPropertyReadonly Property The tag of this game object.
MLMirror.transformPropertyReadonly Property The Transform attached to this GameObject.
MLMirror.hideFlagsProperty Should the object be hidden, saved with the Scene or modifiable by the user?
MLMirror.nameProperty The name of the object.

Inherited Methods⚓︎

Name Description
MLMirror.BroadcastMessage(methodName, parameter=nil)Method Calls the method named methodName on every Lua Script in this game object or any of its children.
MLMirror.CompareTag(tag)Method Is this game object tagged with tag ?
MLMirror.GetAllLuaScripts()Method Returns an array of all Lua scripts that attached to the game object.
MLMirror.GetComponent(type)Method Returns the component of Type type if the game object has one attached, nil if it doesn't.
MLMirror.GetComponentInChildren(t)Method Returns the component of Type type in the GameObject or any of its children using depth first search.
MLMirror.GetComponentInParent(t)Method Returns the component of Type type in the GameObject or any of its parents.
MLMirror.GetComponents(type)Method Returns all components of Type type in the GameObject.
MLMirror.GetComponentsInChildren(t)Method Returns all components of Type type in the GameObject or any of its children.
MLMirror.GetComponentsInParent(t)Method Returns all components of Type type in the GameObject or any of its parents.
MLMirror.SendMessage(methodName, value=nil)Method Calls the method named methodName on every Lua Script in this game object.
MLMirror.SendMessageUpwards(methodName, value=nil)Method Calls the method named methodName on every LuaScript in this game object and on every ancestor of the behaviour.
MLMirror.TryGetComponent(type)Method Gets the component of the specified type, if it exists.
MLMirror.GetInstanceID()Method Returns the instance id of the object.