Class SignalSourceAsset
This is an asset that defines a 6D signal that can be retrieved in a random-access fashion. This is used by the Cinemachine Impulse module.
Inheritance
System.Object
SignalSourceAsset
Namespace: Cinemachine
Syntax
[DocumentationSorting(DocumentationSortingAttribute.Level.API)]
public abstract class SignalSourceAsset : ScriptableObject, ISignalSource6DProperties
SignalDuration
Returns the length on seconds of the signal.
Returns 0 for signals of indeterminate length.
Declaration
public abstract float SignalDuration { get; }Property Value
| Type | Description | 
|---|---|
| System.Single | 
Implements
Methods
GetSignal(Single, out Vector3, out Quaternion)
Get the signal value at a given time relative to signal start
Declaration
public abstract void GetSignal(float timeSinceSignalStart, out Vector3 pos, out Quaternion rot)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Single | timeSinceSignalStart | Time since signal start. Always >= 0 | 
| Vector3 | pos | output for position component of the signal | 
| Quaternion | rot | output for rotation component of the signal. Use Quaternion.identity if none. |