Class ShotLibrary
An asset that stores shot definitions. They are a convenient way to preconfigure sets of shots to use with the ShotPlayer
Inherited Members
UnityEngine.Object.FindObjectsByType<T>(UnityEngine.FindObjectsSortMode)
UnityEngine.Object.FindObjectsOfType<T>(System.Boolean)
UnityEngine.Object.FindObjectsByType<T>(UnityEngine.FindObjectsInactive, UnityEngine.FindObjectsSortMode)
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)
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. |