docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class AlembicStreamPlayer

    This component allows data streaming from Alembic files. It updates children nodes (Meshes, Transforms, Cameras, etc.) to reflect the Alembic data at the given time.

    Inheritance
    object
    Object
    Component
    Behaviour
    MonoBehaviour
    AlembicStreamPlayer
    Implements
    ISerializationCallbackReceiver
    Inherited Members
    MonoBehaviour.IsInvoking()
    MonoBehaviour.CancelInvoke()
    MonoBehaviour.Invoke(string, float)
    MonoBehaviour.InvokeRepeating(string, float, float)
    MonoBehaviour.CancelInvoke(string)
    MonoBehaviour.IsInvoking(string)
    MonoBehaviour.StartCoroutine(string)
    MonoBehaviour.StartCoroutine(string, object)
    MonoBehaviour.StartCoroutine(IEnumerator)
    MonoBehaviour.StartCoroutine_Auto(IEnumerator)
    MonoBehaviour.StopCoroutine(IEnumerator)
    MonoBehaviour.StopCoroutine(Coroutine)
    MonoBehaviour.StopCoroutine(string)
    MonoBehaviour.StopAllCoroutines()
    MonoBehaviour.print(object)
    MonoBehaviour.useGUILayout
    MonoBehaviour.runInEditMode
    Behaviour.enabled
    Behaviour.isActiveAndEnabled
    Component.GetComponent(Type)
    Component.GetComponent<T>()
    Component.TryGetComponent(Type, out Component)
    Component.TryGetComponent<T>(out T)
    Component.GetComponent(string)
    Component.GetComponentInChildren(Type, bool)
    Component.GetComponentInChildren(Type)
    Component.GetComponentInChildren<T>(bool)
    Component.GetComponentInChildren<T>()
    Component.GetComponentsInChildren(Type, bool)
    Component.GetComponentsInChildren(Type)
    Component.GetComponentsInChildren<T>(bool)
    Component.GetComponentsInChildren<T>(bool, List<T>)
    Component.GetComponentsInChildren<T>()
    Component.GetComponentsInChildren<T>(List<T>)
    Component.GetComponentInParent(Type)
    Component.GetComponentInParent<T>()
    Component.GetComponentsInParent(Type, bool)
    Component.GetComponentsInParent(Type)
    Component.GetComponentsInParent<T>(bool)
    Component.GetComponentsInParent<T>(bool, List<T>)
    Component.GetComponentsInParent<T>()
    Component.GetComponents(Type)
    Component.GetComponents(Type, List<Component>)
    Component.GetComponents<T>(List<T>)
    Component.GetComponents<T>()
    Component.CompareTag(string)
    Component.SendMessageUpwards(string, object, SendMessageOptions)
    Component.SendMessageUpwards(string, object)
    Component.SendMessageUpwards(string)
    Component.SendMessageUpwards(string, SendMessageOptions)
    Component.SendMessage(string, object)
    Component.SendMessage(string)
    Component.SendMessage(string, object, SendMessageOptions)
    Component.SendMessage(string, SendMessageOptions)
    Component.BroadcastMessage(string, object, SendMessageOptions)
    Component.BroadcastMessage(string, object)
    Component.BroadcastMessage(string)
    Component.BroadcastMessage(string, SendMessageOptions)
    Component.transform
    Component.gameObject
    Component.tag
    Object.GetInstanceID()
    Object.GetHashCode()
    Object.Equals(object)
    Object.Instantiate(Object, Vector3, Quaternion)
    Object.Instantiate(Object, Vector3, Quaternion, Transform)
    Object.Instantiate(Object)
    Object.Instantiate(Object, Transform)
    Object.Instantiate(Object, Transform, bool)
    Object.Instantiate<T>(T)
    Object.Instantiate<T>(T, Vector3, Quaternion)
    Object.Instantiate<T>(T, Vector3, Quaternion, Transform)
    Object.Instantiate<T>(T, Transform)
    Object.Instantiate<T>(T, Transform, bool)
    Object.Destroy(Object, float)
    Object.Destroy(Object)
    Object.DestroyImmediate(Object, bool)
    Object.DestroyImmediate(Object)
    Object.FindObjectsOfType(Type)
    Object.DontDestroyOnLoad(Object)
    Object.DestroyObject(Object, float)
    Object.DestroyObject(Object)
    Object.FindSceneObjectsOfType(Type)
    Object.FindObjectsOfTypeIncludingAssets(Type)
    Object.FindObjectsOfType<T>()
    Object.FindObjectOfType<T>()
    Object.FindObjectsOfTypeAll(Type)
    Object.FindObjectOfType(Type)
    Object.ToString()
    Object.name
    Object.hideFlags
    object.Equals(object, object)
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    Namespace: UnityEngine.Formats.Alembic.Importer
    Assembly: Unity.Formats.Alembic.Runtime.dll
    Syntax
    [ExecuteInEditMode]
    [DisallowMultipleComponent]
    public class AlembicStreamPlayer : MonoBehaviour, ISerializationCallbackReceiver

    Properties

    CurrentTime

    Get or set the current time relative to the Alembic file time range (scale in seconds). This is clamped between 0 and the alembic time duration.

    Declaration
    public float CurrentTime { get; set; }
    Property Value
    Type Description
    float

    Duration

    Get the duration of the Alembic file (in seconds).

    Declaration
    public float Duration { get; }
    Property Value
    Type Description
    float

    EndTime

    Get or set the end timestamp of the streaming time window (scale in seconds). This is clamped to the time range of the Alembic source file.

    Declaration
    public float EndTime { get; set; }
    Property Value
    Type Description
    float

    MediaDuration

    The duration of the Alembic file (in seconds).

    Declaration
    public float MediaDuration { get; }
    Property Value
    Type Description
    float

    MediaEndTime

    The end timestamp of the Alembic file (scale in seconds).

    Declaration
    public float MediaEndTime { get; }
    Property Value
    Type Description
    float

    MediaStartTime

    The start timestamp of the Alembic file (scale in seconds).

    Declaration
    public float MediaStartTime { get; }
    Property Value
    Type Description
    float

    PathToAbc

    The path to the Alembic asset. When in a standalone build, the returned path is prepended by the streamingAssets path.

    Declaration
    public string PathToAbc { get; }
    Property Value
    Type Description
    string

    Settings

    The stream import options. NOTE: these options are shared between all instances of this asset.

    Declaration
    public AlembicStreamSettings Settings { get; set; }
    Property Value
    Type Description
    AlembicStreamSettings

    StartTime

    Get or set the start timestamp of the streaming time window (scale in seconds). This is clamped to the time range of the Alembic source file.

    Declaration
    public float StartTime { get; set; }
    Property Value
    Type Description
    float

    VertexMotionScale

    Get or set the scalar multiplier to the Alembic vertex speed (magnification factor for velocity). Default value is 1.

    Declaration
    public float VertexMotionScale { get; set; }
    Property Value
    Type Description
    float

    Methods

    LoadFromFile(string)

    Loads a different Alembic file.

    Declaration
    public bool LoadFromFile(string newPath)
    Parameters
    Type Name Description
    string newPath

    Path to the new file.

    Returns
    Type Description
    bool

    True if the load succeeded, false otherwise.

    ReloadStream(bool)

    Closes and reopens the Alembic stream. Use this method to apply the new stream settings.

    Declaration
    public bool ReloadStream(bool createMissingNodes = false)
    Parameters
    Type Name Description
    bool createMissingNodes

    If true, it also recreates the missing GameObjects for the Alembic nodes.

    Returns
    Type Description
    bool

    True if the stream was successfully reopened, false otherwise.

    RemoveObsoleteGameObjects()

    This function removes all child game objects that don't have a corresponding alembic node. Note that is the object is a part of a prefab, this call will fail. Please note that GameObjects that are a part of a Prefab cannot be deleted.

    Declaration
    public void RemoveObsoleteGameObjects()

    UpdateImmediately(float)

    Update the child GameObject's data to the CurrentTime (The regular update happens during the LateUpdate phase).

    Declaration
    public void UpdateImmediately(float time)
    Parameters
    Type Name Description
    float time

    The timestamp to stream from the asset file.

    Implements

    ISerializationCallbackReceiver
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)