Class SurferHelper
Helper class of Surfer for editor and runtime code.
Assembly: cs.temp.dll.dll
Syntax
public static class SurferHelper
Fields
BoltSymbol
Declaration
public const string BoltSymbol = "SUBolt"
Field Value
CharTweenerSymbol
Declaration
public const string CharTweenerSymbol = "SUCharT"
Field Value
kDefaultPlayerID
Declaration
public const int kDefaultPlayerID = -1
Field Value
kNestedPlayerID
Declaration
public const int kNestedPlayerID = -1
Field Value
kNoFoldout
Declaration
public const string kNoFoldout = "NO_FOLDOUT"
Field Value
kOverallVolume
Declaration
public const string kOverallVolume = "_kSUVolume"
Field Value
kPlayerIDFallback
Declaration
public const int kPlayerIDFallback = 0
Field Value
kWhateverVersion
Declaration
public const int kWhateverVersion = 0
Field Value
lineHeight
Declaration
public const float lineHeight = 20F
Field Value
Declaration
public const string NewInputSymbol = "SUNew"
Field Value
Declaration
public const string OldInputSymbol = "SUOld"
Field Value
OutPos
Declaration
public static Vector3 OutPos
Field Value
Declaration
public const string RewiredInputSymbol = "SURew"
Field Value
Unset
Declaration
public const string Unset = "-----"
Field Value
VisualSSymbol
Declaration
public const string VisualSSymbol = "SUVis"
Field Value
Properties
BuildVPrefix
Declaration
public static string BuildVPrefix { get; }
Property Value
SO
Declaration
public static SurferSO SO { get; }
Property Value
Methods
Declaration
public static RectTransform GetParentRect(Transform transf)
Parameters
Type |
Name |
Description |
Transform |
transf |
|
Returns
Type |
Description |
RectTransform |
|
GetVersion()
Declaration
public static string GetVersion()
Returns
PlaySound(AudioClip, GameObject, Single)
Play a sound if an audioClip is set. It checks and adds (if not available) an AudioSource
Declaration
public static void PlaySound(AudioClip clip, GameObject go, float delay = 0F)
Parameters
Type |
Name |
Description |
AudioClip |
clip |
|
GameObject |
go |
GameObject where to check or add for an Audiosource to play the sound on
|
Single |
delay |
|