Click or drag to resize

WeatherMakerScript Class

Weather Maker master script
Inheritance Hierarchy
SystemObject
  Object
    Component
      Behaviour
        MonoBehaviour
          DigitalRuby.WeatherMakerWeatherMakerScript

Namespace:  DigitalRuby.WeatherMaker
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
public class WeatherMakerScript : MonoBehaviour, 
	IWeatherMakerProvider

The WeatherMakerScript type exposes the following members.

Constructors
  NameDescription
Public methodWeatherMakerScript
Initializes a new instance of the WeatherMakerScript class
Top
Properties
  NameDescription
Public propertyanimation Obsolete.

The Animation attached to this GameObject. (Null if there is none attached).

(Inherited from Component.)
Public propertyaudio Obsolete.

The AudioSource attached to this GameObject. (Null if there is none attached).

(Inherited from Component.)
Public propertyAuroraManager
Aurora manager
Public propertycamera Obsolete.

The Camera attached to this GameObject. (Null if there is none attached).

(Inherited from Component.)
Public propertyCloudManager
Cloud manager
Public propertycollider Obsolete.

The Collider attached to this GameObject. (Null if there is none attached).

(Inherited from Component.)
Public propertycollider2D Obsolete.

The Collider2D component attached to the object.

(Inherited from Component.)
Public propertyCommandBufferManager
Command buffer manager
Public propertyconstantForce Obsolete.

The ConstantForce attached to this GameObject. (Null if there is none attached).

(Inherited from Component.)
Public propertyenabled

Enabled Behaviours are Updated, disabled Behaviours are not.

(Inherited from Behaviour.)
Public propertyFogManager
Fog manager
Public propertygameObject

The game object this component is attached to. A component is always attached to a game object.

(Inherited from Component.)
Public propertyguiElement Obsolete. (Inherited from Component.)
Public propertyguiText Obsolete.

The GUIText attached to this GameObject. (Null if there is none attached).

(Inherited from Component.)
Public propertyguiTexture Obsolete.

The GUITexture attached to this GameObject (Read Only). (null if there is none attached).

(Inherited from Component.)
Public propertyHasHadWeatherTransition
Whether we have had a weather transition, if not first transition is instant
Public propertyhideFlags

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

(Inherited from Object.)
Public propertyhingeJoint Obsolete.

The HingeJoint attached to this GameObject. (Null if there is none attached).

(Inherited from Component.)
Public propertyStatic memberInstance
Shared instance of weather maker manager script
Public propertyisActiveAndEnabled

Has the Behaviour had enabled called.

(Inherited from Behaviour.)
Public propertyStatic memberIsHeadlessMode
Determine if running in headless (server only, no rendering) mode
Public propertyLastLocalProfile
Last local profile that was set for the local player - do not try to set this value, it will have no effect, use a weather zone instead.
Public propertylight Obsolete.

The Light attached to this GameObject. (Null if there is none attached).

(Inherited from Component.)
Public propertyMainCamera
Main camera
Public propertyname

The name of the object.

(Inherited from Object.)
Public propertyNetworkConnection
Network connection info
Public propertynetworkView Obsolete.

The NetworkView attached to this GameObject (Read Only). (null if there is none attached).

(Inherited from Component.)
Public propertyparticleEmitter Obsolete.

The ParticleEmitter attached to this GameObject. (Null if there is none attached).

(Inherited from Component.)
Public propertyparticleSystem Obsolete.

The ParticleSystem attached to this GameObject. (Null if there is none attached).

(Inherited from Component.)
Public propertyPerformanceProfile
Get the performance profile or default profile if null
Public propertyPlayerSoundManager
Player sound manager
Public propertyPrecipitationManager
Precipitation manager
Public propertyPreviousLastLocalProfile
Previous last local profile that was set for the local player - do not try to set this value, it will have no effect, use a weather zone instead.
Public propertyrenderer Obsolete.

The Renderer attached to this GameObject. (Null if there is none attached).

(Inherited from Component.)
Public propertyrigidbody Obsolete.

The Rigidbody attached to this GameObject. (Null if there is none attached).

(Inherited from Component.)
Public propertyrigidbody2D Obsolete.

The Rigidbody2D that is attached to the Component's GameObject.

(Inherited from Component.)
Public propertyrunInEditMode

Allow a specific instance of a MonoBehaviour to run in edit mode (only available in the editor).

(Inherited from MonoBehaviour.)
Public propertySkyManager
Sky manager
Public propertytag

The tag of this game object.

(Inherited from Component.)
Public propertyThunderAndLightningManager
Thunder and lightning manager
Public propertytransform

The Transform attached to this GameObject.

(Inherited from Component.)
Public propertyuseGUILayout

Disabling this lets you skip the GUI layout phase.

(Inherited from MonoBehaviour.)
Public propertyWindManager
Wind manager
Top
Methods
  NameDescription
Public methodBroadcastMessage(String)

Calls the method named methodName on every MonoBehaviour in this game object or any of its children.

(Inherited from Component.)
Public methodBroadcastMessage(String, Object)

Calls the method named methodName on every MonoBehaviour in this game object or any of its children.

(Inherited from Component.)
Public methodBroadcastMessage(String, SendMessageOptions)

Calls the method named methodName on every MonoBehaviour in this game object or any of its children.

(Inherited from Component.)
Public methodBroadcastMessage(String, Object, SendMessageOptions)

Calls the method named methodName on every MonoBehaviour in this game object or any of its children.

(Inherited from Component.)
Public methodCancelInvoke

Cancels all Invoke calls on this MonoBehaviour.

(Inherited from MonoBehaviour.)
Public methodCancelInvoke(String)

Cancels all Invoke calls with name methodName on this behaviour.

(Inherited from MonoBehaviour.)
Public methodCompareTag

Is this game object tagged with tag ?

(Inherited from Component.)
Public methodStatic memberEnsureInstanceT
Ensures that an object is the correct singleton for itself
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodStatic memberFindOrCreateInstanceT
Find or create a singleton object. In OnDestroy, you must call ReleaseInstance to avoid memory leaks.
Public methodStatic memberGetCameraType
Get the type of a camera
Public methodGetComponent(Type)

Returns the component of Type type if the game object has one attached, null if it doesn't.

(Inherited from Component.)
Public methodGetComponent(String)

Returns the component with name type if the game object has one attached, null if it doesn't.

(Inherited from Component.)
Public methodGetComponent``1 (Inherited from Component.)
Public methodGetComponentInChildren(Type)

Returns the component of Type type in the GameObject or any of its children using depth first search.

(Inherited from Component.)
Public methodGetComponentInChildren(Type, Boolean) (Inherited from Component.)
Public methodGetComponentInChildren``1 (Inherited from Component.)
Public methodGetComponentInChildren``1(Boolean) (Inherited from Component.)
Public methodGetComponentInParent(Type)

Returns the component of Type type in the GameObject or any of its parents.

(Inherited from Component.)
Public methodGetComponentInParent``1 (Inherited from Component.)
Public methodGetComponents(Type)

Returns all components of Type type in the GameObject.

(Inherited from Component.)
Public methodGetComponents(Type, ListComponent) (Inherited from Component.)
Public methodGetComponents``1 (Inherited from Component.)
Public methodGetComponents``1(ListUMP) (Inherited from Component.)
Public methodGetComponentsInChildren(Type)

Returns all components of Type type in the GameObject or any of its children.

(Inherited from Component.)
Public methodGetComponentsInChildren(Type, Boolean)

Returns all components of Type type in the GameObject or any of its children.

(Inherited from Component.)
Public methodGetComponentsInChildren``1 (Inherited from Component.)
Public methodGetComponentsInChildren``1(Boolean) (Inherited from Component.)
Public methodGetComponentsInChildren``1(ListUMP) (Inherited from Component.)
Public methodGetComponentsInChildren``1(Boolean, ListUMP) (Inherited from Component.)
Public methodGetComponentsInParent(Type) (Inherited from Component.)
Public methodGetComponentsInParent(Type, Boolean)

Returns all components of Type type in the GameObject or any of its parents.

(Inherited from Component.)
Public methodGetComponentsInParent``1 (Inherited from Component.)
Public methodGetComponentsInParent``1(Boolean) (Inherited from Component.)
Public methodGetComponentsInParent``1(Boolean, ListUMP) (Inherited from Component.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetInstanceID

Returns the instance id of the object.

(Inherited from Object.)
Public methodGetType (Inherited from Object.)
Public methodInvoke

Invokes the method methodName in time seconds.

(Inherited from MonoBehaviour.)
Public methodInvokeRepeating

Invokes the method methodName in time seconds, then repeatedly every repeatRate seconds.

(Inherited from MonoBehaviour.)
Public methodIsInvoking

Is any invoke pending on this MonoBehaviour?

(Inherited from MonoBehaviour.)
Public methodIsInvoking(String)

Is any invoke on methodName pending?

(Inherited from MonoBehaviour.)
Public methodStatic memberIsLocalPlayer
Get whether an object is the local player
Public methodStatic memberIsPlayer
Determine if an object is a player (including network players)
Public methodLoadResourceT
Retrieve a Weather Maker resources. The resource should be added to the References property ideally, or as a fallback can be in a Resources folder.
Protected methodMemberwiseClone (Inherited from Object.)
Public methodStatic memberQueueOnMainThread
Queue an action to run on the main thread - this action should run as fast as possible to avoid locking the main thread.
Public methodRaiseWeatherProfileChanged
Call whenever the weather profile needs to change, handles client/server, etc. If no networking or network server, this will perform the transition. WeatherProfileChanged will then be called.
Public methodStatic memberReleaseInstanceT
Release an instance created with FindOrCreateInstance
Public methodStatic memberResolveCameraMode
Resolve camera mode if mode is Auto. Will resolve against camera or Camera.main if camera is null
Public methodSendMessage(String)

Calls the method named methodName on every MonoBehaviour in this game object.

(Inherited from Component.)
Public methodSendMessage(String, Object)

Calls the method named methodName on every MonoBehaviour in this game object.

(Inherited from Component.)
Public methodSendMessage(String, SendMessageOptions)

Calls the method named methodName on every MonoBehaviour in this game object.

(Inherited from Component.)
Public methodSendMessage(String, Object, SendMessageOptions)

Calls the method named methodName on every MonoBehaviour in this game object.

(Inherited from Component.)
Public methodSendMessageUpwards(String)

Calls the method named methodName on every MonoBehaviour in this game object and on every ancestor of the behaviour.

(Inherited from Component.)
Public methodSendMessageUpwards(String, Object)

Calls the method named methodName on every MonoBehaviour in this game object and on every ancestor of the behaviour.

(Inherited from Component.)
Public methodSendMessageUpwards(String, SendMessageOptions)

Calls the method named methodName on every MonoBehaviour in this game object and on every ancestor of the behaviour.

(Inherited from Component.)
Public methodSendMessageUpwards(String, Object, SendMessageOptions)

Calls the method named methodName on every MonoBehaviour in this game object and on every ancestor of the behaviour.

(Inherited from Component.)
Public methodStatic memberShouldIgnoreCamera
Determine if a camera should be rendered in weather maker
Public methodStartCoroutine(IEnumerator)

Starts a coroutine.

(Inherited from MonoBehaviour.)
Public methodStartCoroutine(String)

Starts a coroutine named methodName.

(Inherited from MonoBehaviour.)
Public methodStartCoroutine(String, Object)

Starts a coroutine named methodName.

(Inherited from MonoBehaviour.)
Public methodStartCoroutine_Auto Obsolete. (Inherited from MonoBehaviour.)
Public methodStopAllCoroutines

Stops all coroutines running on this behaviour.

(Inherited from MonoBehaviour.)
Public methodStopCoroutine(String)

Stops the first coroutine named methodName, or the coroutine stored in routine running on this behaviour.

(Inherited from MonoBehaviour.)
Public methodStopCoroutine(IEnumerator)

Stops the first coroutine named methodName, or the coroutine stored in routine running on this behaviour.

(Inherited from MonoBehaviour.)
Public methodStopCoroutine(Coroutine)

Stops the first coroutine named methodName, or the coroutine stored in routine running on this behaviour.

(Inherited from MonoBehaviour.)
Public methodToString

Returns the name of the GameObject.

(Inherited from Object.)
Top
Events
  NameDescription
Public eventWeatherProfileChangedEvent
Event that fires when the weather profile changes (old, new, transition duration, connection ids (null for all connections))
Top
Fields
  NameDescription
Public fieldAllowCameras
Cameras that render make should render with. Only cameras in this list are rendered. Defaults to main camera. The first object in the list is the primary camera, and is used to determine orthographic vs perspective setup, etc.
Public fieldAllowCamerasNames
A set of names for allowed cameras, useful for plugins that clone or add custom cameras that you want to allow. Names must match exactly.
Public fieldAllowCamerasNamesPartial
A set of names for allowed cameras, useful for plugins that clone or add custom cameras that you want to allow. Names can partially match.
Public fieldAllowSceneCamera
Allow the scene camera to render Weather Maker. This can result in UI corruption due to Unity bugs, so turn off if you see UI corruption.
Public fieldAutoFindMainCamera
Whether to auto-find all cameras tagged as MainCamera and add them to the AllowCameras list. Set to false if you don't need this or see any performance issue.
Public fieldCameraType
Camera mode. This affects lighting, visual effects and more. Ensure this is set to the correct value for your game or app.
Public fieldDawnBegin
Executes when the day/night cycle becomes dawn. Parameter is WeatherMakerDayNightCycleProfileScript.
Public fieldDayBegin
Executes when the day/night cycle becomes day. Parameter is WeatherMakerDayNightCycleProfileScript.
Public fieldDayChanged
Executes when the day/night cycle day changes. Parameter is DateTWeatherMakerDayNightCycleProfileScriptime.
Public fieldDuskBegin
Executes when the day/night cycle becomes dusk. Parameter is WeatherMakerDayNightCycleProfileScript.
Public fieldHourChanged
Executes when the day/night cycle hour changes. Parameter is WeatherMakerDayNightCycleProfileScript.
Public fieldIntensityModifierDictionary
Allows adding additional weather intensity modifiers by key. Note that setting any values in here will override the external intensity on any built in weather maker particle system scripts.
Public fieldIsPermanent
Whether the prefab should exist forever. Set to false to have the prefab destroyed with the scene it is in.
Public fieldMinuteChanged
Executes when the day/night cycle minute changes. Parameter is WeatherMakerDayNightCycleProfileScript.
Public fieldMonthChanged
Executes when the day/night cycle month changes. Parameter is WeatherMakerDayNightCycleProfileScript.
Public fieldNightBegin
Executes when the day/night cycle becomes night. Parameter is WeatherMakerDayNightCycleProfileScript.
Public fieldResourceContainer
Put all Weather Maker references in here including scriptable object profiles, sound files, textures, etc. Only these will be bundled and included in the final build.
Public fieldSecondChanged
Executes when the day/night cycle second changes. Parameter is WeatherMakerDayNightCycleProfileScript.
Public fieldSunriseBegin
Executes when the day/night cycle sunrise begins. Parameter is WeatherMakerDayNightCycleProfileScript.
Public fieldSunriseEnd
Executes when the day/night cycle sunrise ends. Parameter is WeatherMakerDayNightCycleProfileScript.
Public fieldSunsetBegin
Executes when the day/night cycle sunset begins. Parameter is WeatherMakerDayNightCycleProfileScript.
Public fieldSunsetEnd
Executes when the day/night cycle sunset ends. Parameter is WeatherMakerDayNightCycleProfileScript.
Public fieldWeatherProfileChanged
Executes when the weather profile changes for the local player. Parameter is WeatherMakerProfileScript.
Public fieldWeatherZoneChanged
Executes when the weather zones changes for the local player. Parameter is WeatherMakerWeatherZoneScript.
Public fieldYearChanged
Executes when the day/night cycle year changes. Parameter is WeatherMakerDayNightCycleProfileScript.
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