Click or drag to resize

WeatherMakerSoundScript Class

Sound script, profile for a set of audio clips
Inheritance Hierarchy
SystemObject
  Object
    ScriptableObject
      DigitalRuby.WeatherMakerWeatherMakerBaseScriptableObjectScript
        DigitalRuby.WeatherMakerWeatherMakerSoundScript

Namespace:  DigitalRuby.WeatherMaker
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
public class WeatherMakerSoundScript : WeatherMakerBaseScriptableObjectScript

The WeatherMakerSoundScript type exposes the following members.

Constructors
  NameDescription
Public methodWeatherMakerSoundScript
Initializes a new instance of the WeatherMakerSoundScript class
Top
Properties
  NameDescription
Public propertyAudioSourceLoop
Wrapper for AudioSource to help with looping
Public propertyCanPlay
Whether the sound can play - this is usually true unless something like an audio zone is used and the player is not in the zone.
Public propertyhideFlags

Should the object be hidden, saved with the scene or modifiable by the user?

(Inherited from Object.)
Public propertyname

The name of the object.

(Inherited from Object.)
Public propertyParent
Parent game object to put sounds in
Top
Methods
  NameDescription
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetInstanceID

Returns the instance id of the object.

(Inherited from Object.)
Public methodGetType (Inherited from Object.)
Public methodInitialize
Initialize
(Overrides WeatherMakerBaseScriptableObjectScriptInitialize.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodOnDestroy
OnDestroy
(Overrides WeatherMakerBaseScriptableObjectScriptOnDestroy.)
Public methodOnDisable
OnDisable
(Overrides WeatherMakerBaseScriptableObjectScriptOnDisable.)
Public methodOnEnable
OnEnable
(Overrides WeatherMakerBaseScriptableObjectScriptOnEnable.)
Public methodSetDirty Obsolete. (Inherited from ScriptableObject.)
Public methodStop
Stop sounds
Public methodToString

Returns the name of the GameObject.

(Inherited from Object.)
Public methodUpdate
Update sounds
(Overrides WeatherMakerBaseScriptableObjectScriptUpdate.)
Top
Fields
  NameDescription
Public fieldAudioClips
The audio clip to play (one is chosen at random)
Public fieldDisabled
Whether this object is disabled
(Inherited from WeatherMakerBaseScriptableObjectScript.)
Public fieldDurationRange
How long in seconds to play the sound, for non-looped AudioSource this is ignored, and the entire sound is played.
Public fieldFadeDuration
How long in seconds to fade in and out for looping audio sources.
Public fieldHoursOfDay
The hours in a day the sound can play, or null/empty to just use TimesOfDay.
Public fieldIntervalRange
How long in seconds to wait in between playing the sound. Set to 0 min and max to have no wait and a continous sound.
Public fieldLooping
Whether to loop the audio clip, all clips must be looping or not looping.
Public fieldName
A name to help you keep track of the ambient sound
Public fieldTimesOfDay
The times of day the sound can play. In order to play HoursOfDay must be empty or must also match.
Public fieldVolumeRange
Range of volume for the ambient sound, a new value is chosen each time the sound is played.
Top
Extension Methods
  NameDescription
Public Extension MethodCachedName
Get cached name
(Defined by WeatherMakerObjectExtensions.)
Public Extension MethodSetCachedName
Put name in the cache
(Defined by WeatherMakerObjectExtensions.)
Top
See Also