API ReferenceSandbox.MovieMaker.Compiled
CompiledClipExtensionsclass
Helper methods for working with `Sandbox.MovieMaker.Compiled.MovieClip`, `Sandbox.MovieMaker.Compiled.ICompiledTrack`, or `Sandbox.MovieMaker.Compiled.ICompiledBlock`.
object→CompiledClipExtensions
Methods11
Showing 11 methods
public static Sandbox.MovieMaker.Compiled.ICompiledTrack Child(Sandbox.MovieMaker.Compiled.ICompiledTrack track, string name, System.Type type)
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.
| Parameter | Type | Description |
|---|---|---|
| track | ICompiledTrack | — |
| name | string | — |
| type | Type | — |
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)
| Parameter | Type | Description |
|---|---|---|
| track | CompiledReferenceTrack<GameObject> | — |
| name | string | — |
| id = null | Nullable<Guid> | — |
| metadata = null | TrackMetadata | — |
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)
| Parameter | Type | Description |
|---|---|---|
| track | CompiledPropertyTrack<List<TItem>> | — |
| index | int | — |
| blocks = null | IEnumerable<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)
| Parameter | Type | Description |
|---|---|---|
| track | ICompiledTrack | — |
| name | string | — |
| blocks = null | IEnumerable<ICompiledPropertyBlock<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)
| Parameter | Type | Description |
|---|---|---|
| samples | IReadOnlyList<T> | — |
| time | MovieTime | — |
| sampleRate | int | — |
| interpolator | IInterpolator<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)
| Parameter | Type | Description |
|---|---|---|
| track | CompiledPropertyTrack<T> | — |
| timeRange | MovieTimeRange | — |
| value | T | — |
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)
| Parameter | Type | Description |
|---|---|---|
| track | CompiledPropertyTrack<T> | — |
| timeRange | MovieTimeRange | — |
| sampleRate | int | — |
| values | IEnumerable<T> | — |
Returns:
CompiledPropertyTrack<T>—No results match this filter.