|
static void | HookIntoSceneLoaded () |
|
static void | RegisterSubject (Transform subject) |
| Registers a GameObject by name for faster lookup.
|
|
static void | UnregisterSubject (Transform subject) |
| Unregisters a registered GameObject.
|
|
static void | CleanNullSubjects () |
| Clears null entries from registeredSubjects.
|
|
static Transform | GetSubject (string specifier, Transform speaker, Transform listener, Transform defaultSubject=null) |
| Sequencer commands usually specify a subject to which the command applies (e.g., where to aim the camera).
|
|
static bool | SpecifierSpecifiesTag (string specifier) |
| Returns true if specifier specifies a tag ('tag=foo').
|
|
static string | GetSpecifiedTag (string specifier) |
| Assumes specifier specifies a tag ('tag=foo').
|
|
static GameObject | FindSpecifier (string specifier, bool onlyActiveInScene=false) |
| Finds a game object with the specified name, returning any match in scene before trying to return any non-scene matches in the project.
|
|
static Transform | GetPortraitImage (Transform subject) |
| - Returns
- The transform of the Portrait Image GameObject, or null if not found.
|
|
static string | GetDefaultCameraAngle (Transform subject) |
| Gets the default camera angle for a subject.
|
|
static string | GetParameter (string[] parameters, int i, string defaultValue=null) |
| Gets parameters[i] .
|
|
static T | GetParameterAs< T > (string[] parameters, int i, T defaultValue) |
| Gets parameters[i] as the specified type.
|
|
static float | GetParameterAsFloat (string[] parameters, int i, float defaultValue=0) |
| Gets the i-th parameter as a float.
|
|
static int | GetParameterAsInt (string[] parameters, int i, int defaultValue=0) |
| Gets the i-th parameter as an int.
|
|
static bool | GetParameterAsBool (string[] parameters, int i, bool defaultValue=false) |
| Gets the i-th parameter as a bool.
|
|
static AudioSource | GetAudioSource (Transform subject) |
| Gets the audio source on a subject, using the Dialogue Manager as the subject if the specified subject is null .
|
|
static bool | IsAudioMuted () |
| Checks if a Lua variable "Mute" is true .
|
|
A static utility class for Sequencer.
static T PixelCrushers.DialogueSystem.SequencerTools.GetParameterAs< T > |
( |
string[] |
parameters, |
|
|
int |
i, |
|
|
T |
defaultValue |
|
) |
| |
|
inlinestatic |
Gets parameters[i]
as the specified type.
Culture invariant (i.e., floats use '.' for decimal point).
- Returns
parameters[i]
as type T, or the specified default value if i
is out of range or parameters[i]
can't be converted to type T.
- Parameters
-
parameters | An array of parameters. |
i | The index into parameters[] |
defaultValue | The default value to return if i is out of range or the parameter can't be converted to type T. |
- Template Parameters
-
T | The type to convert the parameter to. |
// Get parameters[1] as a float, defaulting to 5f: float duration = GetParameterAs<float>(parameters, 1, 5f);