Table of Contents

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

AudioClip[]

lastTimePlayed

public float lastTimePlayed

Field Value

float

settings

public SFX_Settings settings

Field Value

SFX_Settings

Methods

GetClip()

public AudioClip GetClip()

Returns

AudioClip

GetPitch()

public float GetPitch()

Returns

float

GetVolume()

public float GetVolume()

Returns

float

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

pos Vector3
local bool
volumeMultiplier float
followTransform Transform

ReadyToPlay()

public bool ReadyToPlay()

Returns

bool