|
Iuvo Unity 0.5.1
This is library containing a variety of helper classes and extension methods for the Unity gane engine. GitHub | Iuvo Unity Updates | Creator |
Extension methods for UnityEngine.Light to simplify common property adjustments. More...
Static Public Member Functions | |
| static void | SetIntensity (this Light light, float intensity) |
| Sets the intensity of the light. | |
| static void | SetRange (this Light light, float range) |
| Sets the range of the light. | |
| static void | SetColor (this Light light, Color color) |
| Sets the color of the light. | |
| static void | SetBounceIntensity (this Light light, float intensity) |
| Sets the bounce intensity of the light. | |
| static void | Toggle (this Light light) |
| Toggles the enabled state of the light. | |
| static void | SetShadowStrength (this Light light, float strength) |
| Sets the shadow strength of the light. | |
| static void | SetShadowResolution (this Light light, LightShadowResolution resolution) |
| Sets the shadow resolution of the light. | |
| static void | SetShadowBias (this Light light, float bias) |
| Sets the shadow bias of the light. | |
| static void | SetShadowNormalBias (this Light light, float normalBias) |
| Sets the shadow normal bias of the light. | |
| static void | SetColorTemperature (this Light light, float temperature) |
| Sets the color temperature of the light. | |
| static void | SetCullingMask (this Light light, LayerMask cullingMask) |
| Sets the culling mask of the light. | |
| static void | SetFlare (this Light light, Flare flare) |
| Sets the flare of the light. | |
| static void | SetSpotAngle (this Light light, float angle) |
| Sets the spot angle of the light. | |
| static void | SetCookie (this Light light, Texture cookie) |
| Sets the cookie texture of the light. | |
| static void | SetRenderMode (this Light light, LightRenderMode renderMode) |
| Sets the render mode of the light. | |
| static void | SetAreaSize (this Light light, Vector2 size) |
| Sets the area size of the light (for area lights). | |
Extension methods for UnityEngine.Light to simplify common property adjustments.
|
static |
Sets the area size of the light (for area lights).
| light | The light to modify. |
| size | The desired area size as a Vector2. |
|
static |
Sets the bounce intensity of the light.
| light | The light to modify. |
| intensity | The desired bounce intensity. |
|
static |
Sets the color of the light.
| light | The light to modify. |
| color | The desired color. |
|
static |
Sets the color temperature of the light.
| light | The light to modify. |
| temperature | The desired color temperature. |
|
static |
Sets the cookie texture of the light.
| light | The light to modify. |
| cookie | The desired cookie texture. |
|
static |
Sets the culling mask of the light.
| light | The light to modify. |
| cullingMask | The desired culling mask. |
|
static |
Sets the flare of the light.
| light | The light to modify. |
| flare | The desired flare object. |
|
static |
Sets the intensity of the light.
| light | The light to modify. |
| intensity | The desired intensity value. |
|
static |
Sets the range of the light.
| light | The light to modify. |
| range | The desired range value. |
|
static |
Sets the render mode of the light.
| light | The light to modify. |
| renderMode | The desired render mode. |
|
static |
Sets the shadow bias of the light.
| light | The light to modify. |
| bias | The desired shadow bias. |
|
static |
Sets the shadow normal bias of the light.
| light | The light to modify. |
| normalBias | The desired shadow normal bias. |
|
static |
Sets the shadow resolution of the light.
| light | The light to modify. |
| resolution | The desired shadow resolution. |
|
static |
Sets the shadow strength of the light.
| light | The light to modify. |
| strength | The desired shadow strength. |
|
static |
Sets the spot angle of the light.
| light | The light to modify. |
| angle | The desired spot angle. |
|
static |
Toggles the enabled state of the light.
| light | The light to toggle. |