Click or drag to resize

CanvasGroupAlphaSetter Class

Does the work of setting alpha values on CanvasGroups. For convenience, can also set the blocksRaycasts value when the transparency changes.
Inheritance Hierarchy
SystemObject
  Object
    Component
      Behaviour
        MonoBehaviour
          DustProductions.CoreCacheable
            DustProductions.CoreCacheableValueSetter
              DustProductions.CoreValueSetterSingle
                DustProductions.CoreFloatValueSetter
                  DustProductions.CoreCanvasGroupAlphaSetter

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

The CanvasGroupAlphaSetter type exposes the following members.

Constructors
  NameDescription
Public methodCanvasGroupAlphaSetter
Initializes a new instance of the CanvasGroupAlphaSetter 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 a CanvasGroup and hooks it up if it exists.
(Overrides ValueSetterTReset.)
Protected methodTryGetReferencedValue
Gets the alpha of the CanvasGroup, if one exists.
(Overrides ValueSetterTTryGetReferencedValue(NullableT).)
Protected methodTrySetReferencedValue
Sets the alpha of the CanvasGroup, 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