docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class ShotLibrary

    An asset that stores shot definitions. They are a convenient way to preconfigure sets of shots to use with the ShotPlayer

    Inheritance
    object
    Object
    ScriptableObject
    ShotLibrary
    Inherited Members
    ScriptableObject.SetDirty()
    ScriptableObject.CreateInstance(string)
    ScriptableObject.CreateInstance(Type)
    ScriptableObject.CreateInstance<T>()
    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.FindObjectsOfType(Type, bool)
    Object.FindObjectsByType(Type, FindObjectsSortMode)
    Object.FindObjectsByType(Type, FindObjectsInactive, FindObjectsSortMode)
    Object.DontDestroyOnLoad(Object)
    Object.DestroyObject(Object, float)
    Object.DestroyObject(Object)
    Object.FindSceneObjectsOfType(Type)
    Object.FindObjectsOfTypeIncludingAssets(Type)
    Object.FindObjectsOfType<T>()
    Object.FindObjectsByType<T>(FindObjectsSortMode)
    Object.FindObjectsOfType<T>(bool)
    Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
    Object.FindObjectOfType<T>()
    Object.FindObjectOfType<T>(bool)
    Object.FindFirstObjectByType<T>()
    Object.FindAnyObjectByType<T>()
    Object.FindFirstObjectByType<T>(FindObjectsInactive)
    Object.FindAnyObjectByType<T>(FindObjectsInactive)
    Object.FindObjectsOfTypeAll(Type)
    Object.FindObjectOfType(Type)
    Object.FindFirstObjectByType(Type)
    Object.FindAnyObjectByType(Type)
    Object.FindObjectOfType(Type, bool)
    Object.FindFirstObjectByType(Type, FindObjectsInactive)
    Object.FindAnyObjectByType(Type, FindObjectsInactive)
    Object.ToString()
    Object.name
    Object.hideFlags
    Namespace: Unity.LiveCapture
    Assembly: Unity.LiveCapture.dll
    Syntax
    [CreateAssetMenu(menuName = "Live Capture/Shot Library", order = -1)]
    [HelpURL("https://docs.unity3d.com/Packages/com.unity.live-capture@4.0/manual/ref-asset-shot-library.html")]
    public class ShotLibrary : ScriptableObject

    Properties

    Count

    The number of shots currently stored.

    Declaration
    public int Count { get; }
    Property Value
    Type Description
    int

    Shots

    The array of Shot contained in this asset.

    Declaration
    public Shot[] Shots { get; set; }
    Property Value
    Type Description
    Shot[]

    Methods

    GetShot(int)

    Returns the shot at the specified index.

    Declaration
    public Shot GetShot(int index)
    Parameters
    Type Name Description
    int index

    The index of the shot.

    Returns
    Type Description
    Shot

    The shot at the requested index.

    SetShot(int, Shot)

    Updates the data of a shot at a specified index.

    Declaration
    public void SetShot(int index, Shot shot)
    Parameters
    Type Name Description
    int index

    The index of the shot.

    Shot shot

    The shot data.

    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)