Class SetParentWhenTimelinePlays
Uses pre-animated transforms to animate components such as Doors or wheels. Useful if we reimport the model, so that we don't need to recreate animations Sets target transform parents to parentAt when directors are playing
Inherited Members
UnityEngine.Object.FindObjectsOfType<T>(System.Boolean)
UnityEngine.Object.FindObjectOfType<T>(System.Boolean)
Namespace: UnityEngine.Industrial.Configuring.Staging
Syntax
public class SetParentWhenTimelinePlays : MonoBehaviour
Fields
directors
Directors
Declaration
public PlayableDirector[] directors
Field Value
Type | Description |
---|---|
PlayableDirector[] |
parentAt
Parent at
Declaration
[FormerlySerializedAs("doorAnimationRoot")]
public Transform parentAt
Field Value
Type | Description |
---|---|
Transform |
targetDeferredQueryTransforms
Target deferred query transforms
Declaration
[Tooltip("Add wheels or doors to use generic animations")]
public DeferredQuery<List<GameObject>> targetDeferredQueryTransforms
Field Value
Type | Description |
---|---|
DeferredQuery<List<GameObject>> |
Properties
targetQueryTransforms
Target query transforms
Declaration
public List<GameObject> targetQueryTransforms { get; }
Property Value
Type | Description |
---|---|
List<GameObject> |
Methods
SetSelection()
Set selection
Declaration
[ContextMenu("Select Doors")]
public void SetSelection()