Class SFX_Instance
- Namespace
- DefaultNamespace
- Assembly
- Assembly-CSharp.dll
[CreateAssetMenu(fileName = "SoundEffectInstance", menuName = "Landfall/SoundEffectInstance")]
public class SFX_Instance : ScriptableObject
- Inheritance
-
SFX_Instance
- Inherited Members
- Extension Methods
Constructors
SFX_Instance()
public SFX_Instance()
Fields
clips
public AudioClip[] clips
Field Value
lastTimePlayed
public float lastTimePlayed
Field Value
settings
public SFX_Settings settings
Field Value
Methods
GetClip()
public AudioClip GetClip()
Returns
GetPitch()
public float GetPitch()
Returns
GetVolume()
public float GetVolume()
Returns
OnPlayed()
public void OnPlayed()
Play(Vector3, bool, float, Transform)
public void Play(Vector3 pos = default, bool local = false, float volumeMultiplier = 1, Transform followTransform = null)
Parameters
ReadyToPlay()
public bool ReadyToPlay()