WeatherMakerLightManagerScript Class |
Namespace: DigitalRuby.WeatherMaker
The WeatherMakerLightManagerScript type exposes the following members.
Name | Description | |
---|---|---|
WeatherMakerLightManagerScript | Initializes a new instance of the WeatherMakerLightManagerScript class |
Name | Description | |
---|---|---|
animation | Obsolete. The Animation attached to this GameObject. (Null if there is none attached). | |
audio | Obsolete. The AudioSource attached to this GameObject. (Null if there is none attached). | |
camera | Obsolete. The Camera attached to this GameObject. (Null if there is none attached). | |
collider | Obsolete. The Collider attached to this GameObject. (Null if there is none attached). | |
collider2D | Obsolete. The Collider2D component attached to the object. | |
constantForce | Obsolete. The ConstantForce attached to this GameObject. (Null if there is none attached). | |
CurrentCamera |
Current camera
| |
DitherTextureInstance |
Dithering texture (8x8)
| |
enabled | Enabled Behaviours are Updated, disabled Behaviours are not. | |
gameObject | The game object this component is attached to. A component is always attached to a game object. | |
GlobalShadow |
The amount of global shadow from Weather Maker fog, clouds, etc.
| |
guiElement | Obsolete. (Inherited from Component.) | |
guiText | Obsolete. The GUIText attached to this GameObject. (Null if there is none attached). | |
guiTexture | Obsolete. The GUITexture attached to this GameObject (Read Only). (null if there is none attached). | |
hideFlags | Should the object be hidden, saved with the scene or modifiable by the user? | |
hingeJoint | Obsolete. The HingeJoint attached to this GameObject. (Null if there is none attached). | |
Instance |
Shared instance of light manager script
| |
isActiveAndEnabled | Has the Behaviour had enabled called. | |
light | Obsolete. The Light attached to this GameObject. (Null if there is none attached). | |
Lights |
Current set of lights sorted by importance
| |
Moons |
Moons
| |
name | The name of the object. | |
networkView | Obsolete. The NetworkView attached to this GameObject (Read Only). (null if there is none attached). | |
NoiseTexture3DInstance |
Global shared copy of NoiseTexture3D
| |
particleEmitter | Obsolete. The ParticleEmitter attached to this GameObject. (Null if there is none attached). | |
particleSystem | Obsolete. The ParticleSystem attached to this GameObject. (Null if there is none attached). | |
renderer | Obsolete. The Renderer attached to this GameObject. (Null if there is none attached). | |
rigidbody | Obsolete. The Rigidbody attached to this GameObject. (Null if there is none attached). | |
rigidbody2D | Obsolete. The Rigidbody2D that is attached to the Component's GameObject. | |
runInEditMode | Allow a specific instance of a MonoBehaviour to run in edit mode (only available in the editor). | |
ScreenSpaceShadowMode |
Return whether screen space shadows are enabled
| |
SunOrthographic |
First orthographic sun in light list
| |
SunPerspective |
First perspective sun in light list
| |
Suns |
Suns
| |
tag | The tag of this game object. | |
transform | The Transform attached to this GameObject. | |
useGUILayout | Disabling this lets you skip the GUI layout phase. |
Name | Description | |
---|---|---|
AddLight |
Add a light, unless AutoFindLights is true
| |
BroadcastMessage(String) | Calls the method named methodName on every MonoBehaviour in this game object or any of its children. | |
BroadcastMessage(String, Object) | Calls the method named methodName on every MonoBehaviour in this game object or any of its children. | |
BroadcastMessage(String, SendMessageOptions) | Calls the method named methodName on every MonoBehaviour in this game object or any of its children. | |
BroadcastMessage(String, Object, SendMessageOptions) | Calls the method named methodName on every MonoBehaviour in this game object or any of its children. | |
CalculateFrustumPlanes |
This method calculates frustum planes and corners and sets current camera. Normally this is called automatically,
but for something like a reflection camera render in a pre-cull event, call this manually
| |
CancelInvoke | Cancels all Invoke calls on this MonoBehaviour. | |
CancelInvoke(String) | Cancels all Invoke calls with name methodName on this behaviour. | |
CompareTag | Is this game object tagged with tag ? | |
Equals | (Inherited from Object.) | |
EvaluateGradient |
Get a color for a gradient given a lookup value on the gradient
| |
Finalize | (Inherited from Object.) | |
GetComponent(Type) | Returns the component of Type type if the game object has one attached, null if it doesn't. | |
GetComponent(String) | Returns the component with name type if the game object has one attached, null if it doesn't. | |
GetComponent``1 | (Inherited from Component.) | |
GetComponentInChildren(Type) | Returns the component of Type type in the GameObject or any of its children using depth first search. | |
GetComponentInChildren(Type, Boolean) | (Inherited from Component.) | |
GetComponentInChildren``1 | (Inherited from Component.) | |
GetComponentInChildren``1(Boolean) | (Inherited from Component.) | |
GetComponentInParent(Type) | Returns the component of Type type in the GameObject or any of its parents. | |
GetComponentInParent``1 | (Inherited from Component.) | |
GetComponents(Type) | Returns all components of Type type in the GameObject. | |
GetComponents(Type, ListComponent) | (Inherited from Component.) | |
GetComponents``1 | (Inherited from Component.) | |
GetComponents``1(ListUMP) | (Inherited from Component.) | |
GetComponentsInChildren(Type) | Returns all components of Type type in the GameObject or any of its children. | |
GetComponentsInChildren(Type, Boolean) | Returns all components of Type type in the GameObject or any of its children. | |
GetComponentsInChildren``1 | (Inherited from Component.) | |
GetComponentsInChildren``1(Boolean) | (Inherited from Component.) | |
GetComponentsInChildren``1(ListUMP) | (Inherited from Component.) | |
GetComponentsInChildren``1(Boolean, ListUMP) | (Inherited from Component.) | |
GetComponentsInParent(Type) | (Inherited from Component.) | |
GetComponentsInParent(Type, Boolean) | Returns all components of Type type in the GameObject or any of its parents. | |
GetComponentsInParent``1 | (Inherited from Component.) | |
GetComponentsInParent``1(Boolean) | (Inherited from Component.) | |
GetComponentsInParent``1(Boolean, ListUMP) | (Inherited from Component.) | |
GetHashCode | (Inherited from Object.) | |
GetInstanceID | Returns the instance id of the object. | |
GetType | (Inherited from Object.) | |
Invoke | Invokes the method methodName in time seconds. | |
InvokeRepeating | Invokes the method methodName in time seconds, then repeatedly every repeatRate seconds. | |
IsInvoking | Is any invoke pending on this MonoBehaviour? | |
IsInvoking(String) | Is any invoke on methodName pending? | |
MemberwiseClone | (Inherited from Object.) | |
RemoveLight |
Remove a light, unless AutoFindLights is true
| |
SendMessage(String) | Calls the method named methodName on every MonoBehaviour in this game object. | |
SendMessage(String, Object) | Calls the method named methodName on every MonoBehaviour in this game object. | |
SendMessage(String, SendMessageOptions) | Calls the method named methodName on every MonoBehaviour in this game object. | |
SendMessage(String, Object, SendMessageOptions) | Calls the method named methodName on every MonoBehaviour in this game object. | |
SendMessageUpwards(String) | Calls the method named methodName on every MonoBehaviour in this game object and on every ancestor of the behaviour. | |
SendMessageUpwards(String, Object) | Calls the method named methodName on every MonoBehaviour in this game object and on every ancestor of the behaviour. | |
SendMessageUpwards(String, SendMessageOptions) | Calls the method named methodName on every MonoBehaviour in this game object and on every ancestor of the behaviour. | |
SendMessageUpwards(String, Object, SendMessageOptions) | Calls the method named methodName on every MonoBehaviour in this game object and on every ancestor of the behaviour. | |
StartCoroutine(IEnumerator) | Starts a coroutine. | |
StartCoroutine(String) | Starts a coroutine named methodName. | |
StartCoroutine(String, Object) | Starts a coroutine named methodName. | |
StartCoroutine_Auto | Obsolete. (Inherited from MonoBehaviour.) | |
StopAllCoroutines | Stops all coroutines running on this behaviour. | |
StopCoroutine(String) | Stops the first coroutine named methodName, or the coroutine stored in routine running on this behaviour. | |
StopCoroutine(IEnumerator) | Stops the first coroutine named methodName, or the coroutine stored in routine running on this behaviour. | |
StopCoroutine(Coroutine) | Stops the first coroutine named methodName, or the coroutine stored in routine running on this behaviour. | |
SunForCamera |
Get the primary sun given a camera
| |
ToString | Returns the name of the GameObject. | |
UpdateShaderVariables |
Update shader variables for an object.
|
Name | Description | |
---|---|---|
AreaLightAreaMultiplier | Multiplier for area light. Spreads and fades light out over x and y size. | |
AreaLightFalloff | Falloff for area light, as light moves away from center it falls off more as this increases. | |
AreaLightQuadraticAttenuation | Area light quadratic attenuation. Set to 0 to turn off all area lights. | |
AutoAddLights | A list of lights to automatically add to the light manager. Only used if AutoFindLights is false. | |
AutoFindLights | Whether to find all lights in the scene automatically if no Lights were added programatically. If none, you must manually add / remove lights using the AutoAddLights property. To ensure correct behavior, do not change in script, set it once in the inspector and leave it. If this is set to EveryFrame, AddLight and RemoveLight do nothing. | |
BlueNoiseTexture | Blue noise texture, useful for dithering and eliminating banding | |
CurrentBounds |
The current bounds if checking a collider and not a camera
| |
CurrentCameraFrustumCorners |
The corners of the current camera view frustum
| |
CurrentCameraFrustumPlanes |
The planes of the current camera view frustum
| |
DirectionalLightIntensityMultipliers |
Directional light intensity multipliers - all are applied to the final directional light intensities
| |
DirectionalLightShadowIntensityMultipliers |
Directional light shadow intensity multipliers - all are applied to the final directional light shadow intensities
| |
FogDirectionalLightScatterIntensity | How intense is the scatter of directional light in the fog. | |
FogLightSunIntensityReducer | How much the sun reduces fog lights. As sun intensity approaches 1, fog light intensity is reduced by this value. | |
FogSpotLightRadiusFalloff | How quickly fog point lights falloff from the center radius. High values fall-off more. | |
IgnoreLights | A list of lights to always ignore if AutoFindLights is being used. | |
MaximumLightCount |
Maximum number of lights to send to the Weather Maker shaders - reduce if you are having performance problems
This should match the constant 'MAX_LIGHT_COUNT' in WeatherMakerLightShaderInclude.cginc
| |
MaximumNullZones |
Max number of null zones - the n closest will be sent to shaders.
| |
MaxMoonCount |
Max number of moons supported. This should match the constant in WeatherMakerLightShaderInclude.cginc.
| |
NoiseTexture3D | Noise texture for fog and other 3D effects. | |
NullZones |
Null zones - this is handled automatically as null zone scripts are added
| |
PointLightQuadraticAttenuation | Point light quadratic attenuation. | |
ScreenSpaceShadowShader | Set this to a custom screen space shadow shader, by default this is the weather maker integrated screen space shadow shader. | |
ScreenSpaceShadowsRenderTextureName | The texture name for shaders to access the screen space shadow map, null/empty to not use screen space shadows | |
ShaderUpdateInterval | How often to update shader state in seconds for each object (camera, collider, etc.), 0 for every frame. | |
SpotLightQuadraticAttenuation | Spot light quadratic attenuation. |
Name | Description | |
---|---|---|
CachedName |
Get cached name
(Defined by WeatherMakerObjectExtensions.) | |
SetCachedName |
Put name in the cache
(Defined by WeatherMakerObjectExtensions.) |