Class CinemachineTriggerAction
A multi-purpose script which causes an action to occur when a trigger collider is entered and exited.
Inherited Members
Namespace: Cinemachine
Syntax
[DocumentationSorting(DocumentationSortingAttribute.Level.UserRef)]
[HelpURL("https://docs.unity3d.com/Packages/com.unity.cinemachine@2.9/api/Cinemachine.CinemachineTriggerAction.html")]
public class CinemachineTriggerAction : MonoBehaviour
Fields
m_LayerMask
Only triggers generated by objects on these layers will be considered.
Declaration
[Header("Trigger Object Filter")]
[Tooltip("Only triggers generated by objects on these layers will be considered")]
public LayerMask m_LayerMask
Field 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_OnObjectEnter
Field 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_OnObjectExit
Field Value
Type | Description |
---|---|
CinemachineTriggerAction.ActionSettings |
m_Repeating
Repeat the action for all subsequent trigger entries
Declaration
[Tooltip("Repeat the action for all subsequent trigger entries")]
public bool m_Repeating
Field Value
Type | Description |
---|---|
Boolean |
m_SkipFirst
Skip this many trigger entries before taking action
Declaration
[Tooltip("Skip this many trigger entries before taking action")]
public int m_SkipFirst
Field Value
Type | Description |
---|---|
Int32 |
m_WithoutTag
Triggers generated by objects with this tag will be ignored
Declaration
[Tooltip("Triggers generated by objects with this tag will be ignored")]
public string m_WithoutTag
Field Value
Type | Description |
---|---|
String |
m_WithTag
If set, only triggers generated by objects with this tag will be considered
Declaration
[Tooltip("If set, only triggers generated by objects with this tag will be considered")]
public string m_WithTag
Field Value
Type | Description |
---|---|
String |