Class ConversionContextExtensions
Extension methods for ConversionContext
Inheritance
ConversionContextExtensions
Syntax
public static class ConversionContextExtensions
Methods
CreateAnimatedTrackWeightEntity(ConversionContext, TrackAsset, BlobAssetReference<AnimationCurveBlob>)
Creates an entity that will animate a track weight.
Declaration
public static Entity CreateAnimatedTrackWeightEntity(this ConversionContext context, TrackAsset track, BlobAssetReference<AnimationCurveBlob> curve)
Parameters
Returns
Type |
Description |
Entity |
Entity.Null if the track or the curve is not valid
|
CreateClipEntity(ConversionContext)
Create an entity representing a timeline clip
Declaration
public static Entity CreateClipEntity(this ConversionContext context)
Parameters
Returns
Exceptions
CreateCompositeTimer(ConversionContext)
Create a composite timer entity using the context TimelineClip values. This requires the context to contain an existing Timer (which can be composite)
Declaration
public static ConversionContext CreateCompositeTimer(this ConversionContext context)
Parameters
Returns
Exceptions
CreateCompositeTimer(ConversionContext, ActiveRange, DiscreteTime, Double, String)
Create a composite timer using preset values
Declaration
public static ConversionContext CreateCompositeTimer(this ConversionContext context, ActiveRange range, DiscreteTime offset, double scale, string name)
Parameters
Type |
Name |
Description |
ConversionContext |
context |
The current ConversionContext
|
ActiveRange |
range |
The range, relative to the parent timer, that this timer is active.
|
DiscreteTime |
offset |
The time offset of this timer relative to the parent timer.
|
Double |
scale |
The scale offset of this timer relative to the parent timer.
|
String |
name |
The name of the entity.
|
Returns
Exceptions
Type |
Condition |
ArgumentException |
Thrown if the conversion context does not contain the required values for creating a composite timer
|
CreateEntity(ConversionContext, String)
Create an Entity, binding it to the target conversion object
Declaration
public static Entity CreateEntity(this ConversionContext context, string name = null)
Parameters
Returns
Exceptions
CreateNotification<T>(ConversionContext, IMarker, T)
Creates a trigger entity. A trigger entity creates an event
Declaration
public static void CreateNotification<T>(this ConversionContext context, IMarker trigger, T notificationData)
where T : struct, IComponentData
Parameters
Type Parameters
CreateTrackEntity(ConversionContext)
Creates an entity for the track. This is used to provide an active range for any prefabs that are spawned on the tracks.
Creates a tag, that is active while the corresponding timer is active
Declaration
public static Entity CreateTrackEntity(this ConversionContext context)
Parameters
Returns
Exceptions
CreateUnboundClipEntity(ConversionContext, TimelineClip)
Creates an entity representing a timeline clip, but ignores extrapolation options
Declaration
public static Entity CreateUnboundClipEntity(this ConversionContext context, TimelineClip clip)
Parameters
Returns
DeclareAssetDependency(ConversionContext, Object)
Declare an asset dependency for the conversion
This will cause the playable director to be reconverted if this asset changes
Declaration
public static void DeclareAssetDependency(this ConversionContext context, Object asset)
Parameters
Exceptions
GetRootTimer(ConversionContext)
Returns the root level timer of the conversion.
Declaration
public static Entity GetRootTimer(this ConversionContext context)
Parameters
Returns
GetTrackPriority(ConversionContext)
Get the current track priority
Declaration
public static int GetTrackPriority(this ConversionContext context)
Parameters
Returns