4 namespace HKI.Core.Audio
10 [CreateAssetMenu(fileName =
"SoundClip", menuName =
"HKI/Audio/SoundClip", order = 1)]
14 [SerializeField] AudioClip Clip = null;
15 [SerializeField] [Range(0.0f, 1.0f)]
float Volume = 1.0f;
21 public AudioClip GetClip {
get {
return Clip; } }
22 public float GetVolume {
get {
return Volume; } }
24 public int ClipId {
get {
return clipId; } }
29 clipId = GetInstanceID();
This is a container ScriptableObject that holds all data required to play a AudioClip.
This is a data type that combines a float start and a float end value into one value. This can be used for storing min max informations for a random generator or volume settings.