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
Object.FindObjectsByType<T>(FindObjectsSortMode)
Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
Object.FindFirstObjectByType<T>()
Object.FindAnyObjectByType<T>()
Object.FindFirstObjectByType<T>(FindObjectsInactive)
Object.FindAnyObjectByType<T>(FindObjectsInactive)
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. |