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
Namespace: Unity.Industrial.Forma.Staging.Animations
Syntax
public class SetParentWhenTimelinePlays : MonoBehaviour
Fields
directors
Directors
Declaration
public PlayableDirector[] directors
Field Value
Type | Description |
---|---|
PlayableDirector[] |
parentAt
Parent at
Declaration
public Transform parentAt
Field Value
Type | Description |
---|---|
Transform |
targetDeferredQueryTransforms
Target deferred query transforms
Declaration
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
public void SetSelection()