Class CinemachineTriggerAction
A multi-purpose script which causes an action to occur when a trigger collider is entered and exited.
Inheritance
System.Object
CinemachineTriggerAction
Namespace: Cinemachine
Syntax
[DocumentationSorting(DocumentationSortingAttribute.Level.UserRef)]
public class CinemachineTriggerAction : MonoBehaviourFields
m_LayerMask
Only triggers generated by objects on these layers will be considered.
Declaration
public LayerMask m_LayerMaskField Value
| Type | Description | 
|---|---|
| LayerMask | 
m_OnObjectEnter
What action to take when an eligible object enters the collider or trigger zone
Declaration
public CinemachineTriggerAction.ActionSettings m_OnObjectEnterField Value
| Type | Description | 
|---|---|
| CinemachineTriggerAction.ActionSettings | 
m_OnObjectExit
What action to take when an eligible object exits the collider or trigger zone
Declaration
public CinemachineTriggerAction.ActionSettings m_OnObjectExitField Value
| Type | Description | 
|---|---|
| CinemachineTriggerAction.ActionSettings | 
m_Repeating
Repeat the action for all subsequent trigger entries
Declaration
public bool m_RepeatingField Value
| Type | Description | 
|---|---|
| System.Boolean | 
m_SkipFirst
Skip this many trigger entries before taking action
Declaration
public int m_SkipFirstField Value
| Type | Description | 
|---|---|
| System.Int32 | 
m_WithoutTag
Triggers generated by objects with this tag will be ignored
Declaration
public string m_WithoutTagField Value
| Type | Description | 
|---|---|
| System.String | 
m_WithTag
If set, only triggers generated by objects with this tag will be considered
Declaration
public string m_WithTagField Value
| Type | Description | 
|---|---|
| System.String |