API ReferenceSandbox.MovieMaker.Compiled

CompiledClipExtensionsclass

Helper methods for working with `Sandbox.MovieMaker.Compiled.MovieClip`, `Sandbox.MovieMaker.Compiled.ICompiledTrack`, or `Sandbox.MovieMaker.Compiled.ICompiledBlock`.

objectCompiledClipExtensions
Namespace
Sandbox.MovieMaker.Compiled
Assembly
Sandbox.Engine
Declaration
public static abstract sealed class Sandbox.MovieMaker.Compiled.CompiledClipExtensions

Methods11

Showing 11 methods

public static Sandbox.MovieMaker.Compiled.ICompiledTrack Child(Sandbox.MovieMaker.Compiled.ICompiledTrack track, string name, System.Type type)PUBLICSTATIC

Helper for creating a compiled child track with the given `name` and value `type`. Some special cases if the parent track is a `Sandbox.GameObject` reference track: `type` is `Sandbox.GameObject`Returns a game object reference track`type` extends `Sandbox.Component`Returns a component reference track By default, returns a property track.

ParameterTypeDescription
trackICompiledTrack
namestring
typeType
Returns:ICompiledTrack

public static Sandbox.MovieMaker.Compiled.CompiledReferenceTrack`1<Sandbox.GameObject> GameObject(Sandbox.MovieMaker.Compiled.CompiledReferenceTrack`1<Sandbox.GameObject> track, string name, System.Nullable`1<System.Guid> id = null, Sandbox.MovieMaker.TrackMetadata metadata = null)PUBLICSTATIC

ParameterTypeDescription
trackCompiledReferenceTrack<GameObject>
namestring
id = nullNullable<Guid>
metadata = nullTrackMetadata
Returns:CompiledReferenceTrack<GameObject>

public static Sandbox.MovieMaker.Compiled.CompiledPropertyTrack`1<TItem> Item(Sandbox.MovieMaker.Compiled.CompiledPropertyTrack`1<System.Collections.Generic.List`1<TItem>> track, int index, System.Collections.Generic.IEnumerable`1<Sandbox.MovieMaker.Compiled.ICompiledPropertyBlock`1<TItem>> blocks = null)PUBLICSTATIC

ParameterTypeDescription
trackCompiledPropertyTrack<List<TItem>>
indexint
blocks = nullIEnumerable<ICompiledPropertyBlock<TItem>>
Returns:CompiledPropertyTrack<TItem>

public static Sandbox.MovieMaker.Compiled.CompiledPropertyTrack`1<Sandbox.MovieMaker.Properties.BindingReference`1<T>> ReferenceProperty(Sandbox.MovieMaker.Compiled.ICompiledTrack track, string name, System.Collections.Generic.IEnumerable`1<Sandbox.MovieMaker.Compiled.ICompiledPropertyBlock`1<Sandbox.MovieMaker.Properties.BindingReference`1<T>>> blocks = null)PUBLICSTATIC

ParameterTypeDescription
trackICompiledTrack
namestring
blocks = nullIEnumerable<ICompiledPropertyBlock<BindingReference<T>>>
Returns:CompiledPropertyTrack<BindingReference<T>>

public static T Sample(System.Collections.Generic.IReadOnlyList`1<T> samples, Sandbox.MovieMaker.MovieTime time, int sampleRate, Sandbox.MovieMaker.IInterpolator`1<T> interpolator)PUBLICSTATIC

ParameterTypeDescription
samplesIReadOnlyList<T>
timeMovieTime
sampleRateint
interpolatorIInterpolator<T>
Returns:T

public static Sandbox.MovieMaker.Compiled.CompiledPropertyTrack`1<T> WithConstant(Sandbox.MovieMaker.Compiled.CompiledPropertyTrack`1<T> track, Sandbox.MovieMaker.MovieTimeRange timeRange, T value)PUBLICSTATIC

ParameterTypeDescription
trackCompiledPropertyTrack<T>
timeRangeMovieTimeRange
valueT
Returns:CompiledPropertyTrack<T>

public static Sandbox.MovieMaker.Compiled.CompiledPropertyTrack`1<T> WithSamples(Sandbox.MovieMaker.Compiled.CompiledPropertyTrack`1<T> track, Sandbox.MovieMaker.MovieTimeRange timeRange, int sampleRate, System.Collections.Generic.IEnumerable`1<T> values)PUBLICSTATIC

ParameterTypeDescription
trackCompiledPropertyTrack<T>
timeRangeMovieTimeRange
sampleRateint
valuesIEnumerable<T>
Returns:CompiledPropertyTrack<T>

On this page

Methodspublic static Sandbox.MovieMaker.Compiled.ICompiledTrack Child(Sandbox.MovieMaker.Compiled.ICompiledTrack track, System.String name, System.Type type)public static Sandbox.MovieMaker.Compiled.ICompiledReferenceTrack Component(Sandbox.MovieMaker.Compiled.CompiledReferenceTrack`1<Sandbox.GameObject> track, System.Type type, System.Nullable`1<System.Guid> id = null, Sandbox.MovieMaker.TrackMetadata metadata = null)public static Sandbox.MovieMaker.Compiled.CompiledReferenceTrack`1<T> Component(Sandbox.MovieMaker.Compiled.CompiledReferenceTrack`1<Sandbox.GameObject> track, System.Nullable`1<System.Guid> id = null, Sandbox.MovieMaker.TrackMetadata metadata = null)public static Sandbox.MovieMaker.Compiled.CompiledReferenceTrack`1<Sandbox.GameObject> GameObject(Sandbox.MovieMaker.Compiled.CompiledReferenceTrack`1<Sandbox.GameObject> track, System.String name, System.Nullable`1<System.Guid> id = null, Sandbox.MovieMaker.TrackMetadata metadata = null)public static Sandbox.MovieMaker.Compiled.CompiledPropertyTrack`1<TItem> Item(Sandbox.MovieMaker.Compiled.CompiledPropertyTrack`1<System.Collections.Generic.List`1<TItem>> track, System.Int32 index, System.Collections.Generic.IEnumerable`1<Sandbox.MovieMaker.Compiled.ICompiledPropertyBlock`1<TItem>> blocks = null)public static Sandbox.MovieMaker.Compiled.ICompiledPropertyTrack Property(Sandbox.MovieMaker.Compiled.ICompiledTrack track, System.String name, System.Type type, System.Collections.Generic.IEnumerable`1<Sandbox.MovieMaker.Compiled.ICompiledPropertyBlock> blocks = null)public static Sandbox.MovieMaker.Compiled.CompiledPropertyTrack`1<T> Property(Sandbox.MovieMaker.Compiled.ICompiledTrack track, System.String name, System.Collections.Generic.IEnumerable`1<Sandbox.MovieMaker.Compiled.ICompiledPropertyBlock`1<T>> blocks = null)public static Sandbox.MovieMaker.Compiled.CompiledPropertyTrack`1<Sandbox.MovieMaker.Properties.BindingReference`1<T>> ReferenceProperty(Sandbox.MovieMaker.Compiled.ICompiledTrack track, System.String name, System.Collections.Generic.IEnumerable`1<Sandbox.MovieMaker.Compiled.ICompiledPropertyBlock`1<Sandbox.MovieMaker.Properties.BindingReference`1<T>>> blocks = null)public static T Sample(System.Collections.Generic.IReadOnlyList`1<T> samples, Sandbox.MovieMaker.MovieTime time, System.Int32 sampleRate, Sandbox.MovieMaker.IInterpolator`1<T> interpolator)public static Sandbox.MovieMaker.Compiled.CompiledPropertyTrack`1<T> WithConstant(Sandbox.MovieMaker.Compiled.CompiledPropertyTrack`1<T> track, Sandbox.MovieMaker.MovieTimeRange timeRange, T value)public static Sandbox.MovieMaker.Compiled.CompiledPropertyTrack`1<T> WithSamples(Sandbox.MovieMaker.Compiled.CompiledPropertyTrack`1<T> track, Sandbox.MovieMaker.MovieTimeRange timeRange, System.Int32 sampleRate, System.Collections.Generic.IEnumerable`1<T> values)Metadata