Click or drag to resize

LightColorSetter Class

Use this whenever trying to set a Light's color, it will allow you to set using transitions and fancy things.
Inheritance Hierarchy
SystemObject
  Object
    Component
      Behaviour
        MonoBehaviour
          DustProductions.CoreCacheable
            DustProductions.CoreCacheableValueSetter
              DustProductions.CoreValueSetterColor
                DustProductions.CoreColorValueSetter
                  DustProductions.CoreLightColorSetter

Namespace:  DustProductions.Core
Assembly:  DustProductions.Core (in DustProductions.Core.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public class LightColorSetter : ColorValueSetter

The LightColorSetter type exposes the following members.

Constructors
  NameDescription
Public methodLightColorSetter
Initializes a new instance of the LightColorSetter class
Top
Methods
  NameDescription
Public methodStatic memberGetAffectedType
Gets the Type of the object we are going to set with this setter.
Public methodGetReferencedComponent
Fetch the Component this setter is referencing.
(Overrides CacheableValueSetterGetReferencedComponent.)
Protected methodReset
The Reset method Unity calls. Looks for an Light and hooks it up if it exists.
(Overrides ValueSetterTReset.)
Protected methodTryGetReferencedValue
Gets the Color of the Light, if one exists.
(Overrides ValueSetterTTryGetReferencedValue(NullableT).)
Protected methodTrySetReferencedValue
Sets the Color of a Light, if one exists.
(Overrides ValueSetterTTrySetReferencedValue(T).)
Top
Extension Methods
  NameDescription
Public Extension MethodAnnounceComponentAdded
Notifies any IComponentHandlers on the GameObject a Component is added to, that the Component has been added.
(Defined by ExtensionMethods.)
Public Extension MethodStartCoroutineT
Use by calling this.StartCoroutine and assigning it to a Coroutine. Then you can call your assigned coroutine.Cancel(), or .HasFinished, or a variety of other neat things.
(Defined by ExtensionMethods.)
Public Extension MethodTryGetComponentT(T, Boolean)Overloaded.
Attempts to get a component on a gameobject.
(Defined by ExtensionMethods.)
Public Extension MethodTryGetComponentT1, T2(T1, Boolean)Overloaded.
Attempts to get a component on a gameobject.
(Defined by ExtensionMethods.)
Public Extension MethodTryGetComponentsT(T, Boolean)Overloaded.
Attempts to get components on a gameobject.
(Defined by ExtensionMethods.)
Public Extension MethodTryGetComponentsT1, T2(T1, Boolean)Overloaded.
Attempts to get components on a gameobject.
(Defined by ExtensionMethods.)
Top
See Also