PracticeAreaShrinkFader
An abstract class in Root.Township, the global namespace.
Base class for a skill shrine practice area object that fades in from the testing orb's position. Objects that don't use the fade material turn on near the end.
- Listed in Global namespace: P
- Inherits or implements
FadeInOutBase - Derived types
FadeInOutNetworkEntity
Constructors
| Member | What it is |
|---|---|
protected PracticeAreaShrinkFader() | Unity makes components itself; use AddComponent or spawn a prefab instead of new. |
Fields
| Member | What it is |
|---|---|
protected SkillShrineTestingArea testingArea | The testing area this object belongs to. |
3 private and internal fields
Methods
| Member | What it is |
|---|---|
override void PostBake() | Removes destroyed objects from nonAnimatedObjects. |
virtual void RegisterTestingArea(SkillShrineTestingArea testingArea) | Links the testing area, sets the shrink point and starts the fade once the orb is in place. |
protected virtual void Awake() | Client: hides the objects that don't animate. |
protected override IEnumerator Fade() (iterator) | Coroutine that runs the shader progress from 1 to 0 and turns the other objects on below toggleEnableTarget. |
protected override void OnValidate() | If the list is empty, fills nonAnimatedObjects with children whose renderer doesn't use the base material. |
protected void ToggleRenderersEnabled(bool isEnabled) | Turns all nonAnimatedObjects on or off. |
Used in
Members of other types that take, return or hold a PracticeAreaShrinkFader: