docs.unity.cn
    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, Boolean)
    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, Boolean)
    Object.Destroy(Object, Single)
    Object.Destroy(Object)
    Object.DestroyImmediate(Object, Boolean)
    Object.DestroyImmediate(Object)
    Object.FindObjectsOfType(Type)
    Object.FindObjectsOfType(Type, Boolean)
    Object.FindObjectsByType(Type, FindObjectsSortMode)
    Object.FindObjectsByType(Type, FindObjectsInactive, FindObjectsSortMode)
    Object.DontDestroyOnLoad(Object)
    Object.DestroyObject(Object, Single)
    Object.DestroyObject(Object)
    Object.FindSceneObjectsOfType(Type)
    Object.FindObjectsOfTypeIncludingAssets(Type)
    Object.FindObjectsOfType<T>()
    UnityEngine.Object.FindObjectsByType<T>(UnityEngine.FindObjectsSortMode)
    UnityEngine.Object.FindObjectsOfType<T>(System.Boolean)
    UnityEngine.Object.FindObjectsByType<T>(UnityEngine.FindObjectsInactive, UnityEngine.FindObjectsSortMode)
    Object.FindObjectOfType<T>()
    UnityEngine.Object.FindObjectOfType<T>(System.Boolean)
    UnityEngine.Object.FindFirstObjectByType<T>()
    UnityEngine.Object.FindAnyObjectByType<T>()
    UnityEngine.Object.FindFirstObjectByType<T>(UnityEngine.FindObjectsInactive)
    UnityEngine.Object.FindAnyObjectByType<T>(UnityEngine.FindObjectsInactive)
    Object.FindObjectsOfTypeAll(Type)
    Object.FindObjectOfType(Type)
    Object.FindFirstObjectByType(Type)
    Object.FindAnyObjectByType(Type)
    Object.FindObjectOfType(Type, Boolean)
    Object.FindFirstObjectByType(Type, FindObjectsInactive)
    Object.FindAnyObjectByType(Type, FindObjectsInactive)
    Object.ToString()
    Object.name
    Object.hideFlags
    Namespace: Unity.LiveCapture
    Syntax
    [CreateAssetMenu(menuName = "Live Capture/Shot Library", order = -1)]
    [HelpURL("https://docs.unity.cn/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
    Int32

    Shots

    The array of Shot contained in this asset.

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

    Methods

    GetShot(Int32)

    Returns the shot at the specified index.

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

    The index of the shot.

    Returns
    Type Description
    Shot

    The shot at the requested index.

    SetShot(Int32, Shot)

    Updates the data of a shot at a specified index.

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

    The index of the shot.

    Shot shot

    The shot data.

    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Wednesday, May 17, 2023