MLMirror
7/14/25About 1 min
MLMirror
Info
MLMirror inherits from [Component](/docs/create/lua/API/Component/index.html)
API for MLMirror component.
Members
Properties
| Name | Description |
|---|---|
MLMirror.MirrorActive | Is the mirror active. You can enable or disable the mirror using this property. |
Inherited Members
Inherited Properties
| Name | Description |
|---|---|
MLMirror.gameObject | The game object this component is attached to. A component is always attached to a game object. |
MLMirror.tag | The tag of this game object. |
MLMirror.transform | The Transform attached to this GameObject. |
MLMirror.hideFlags | Should the object be hidden, saved with the Scene or modifiable by the user? |
MLMirror.name | The name of the object. |
Inherited Methods
| Name | Description |
|---|---|
MLMirror.BroadcastMessage(methodName, parameter=nil) | Calls the method named methodName on every Lua Script in this game object or any of its children. |
MLMirror.CompareTag(tag) | Is this game object tagged with tag ? |
MLMirror.GetAllLuaScripts() | Returns an array of all Lua scripts that attached to the game object. |
MLMirror.GetComponent(type) | Returns the component of Type type if the game object has one attached, nil if it doesn't. |
MLMirror.GetComponentInChildren(t) | Returns the component of Type type in the GameObject or any of its children using depth first search. |
MLMirror.GetComponentInParent(t) | Returns the component of Type type in the GameObject or any of its parents. |
MLMirror.GetComponents(type) | Returns all components of Type type in the GameObject. |
MLMirror.GetComponentsInChildren(t) | Returns all components of Type type in the GameObject or any of its children. |
MLMirror.GetComponentsInParent(t) | Returns all components of Type type in the GameObject or any of its parents. |
MLMirror.SendMessage(methodName, value=nil) | Calls the method named methodName on every Lua Script in this game object. |
MLMirror.SendMessageUpwards(methodName, value=nil) | Calls the method named methodName on every LuaScript in this game object and on every ancestor of the behaviour. |
MLMirror.TryGetComponent(type) | Gets the component of the specified type, if it exists. |
MLMirror.GetInstanceID() | Returns the instance id of the object. |

