Show / Hide Table of Contents

Class WhiteFlash

A white flash effect that is spawned when an entity is teleported via the Teleporter functions

Inheritance
object
Object
Component
Behaviour
MonoBehaviour
WhiteFlash
Implements
IOnPool
Namespace: WeaverCore.Assets.Components
Assembly: WeaverCore.dll
Syntax
public class WhiteFlash : MonoBehaviour, IOnPool

Fields

| Edit this page View Source

FadeInTime

Declaration
public float FadeInTime
Field Value
Type Description
float
| Edit this page View Source

FadeOutTime

Declaration
public float FadeOutTime
Field Value
Type Description
float
| Edit this page View Source

FlashColor

Declaration
public Color FlashColor
Field Value
Type Description
Color
| Edit this page View Source

FlashIntensity

Declaration
public float FlashIntensity
Field Value
Type Description
float
| Edit this page View Source

StayTime

Declaration
public float StayTime
Field Value
Type Description
float

Properties

| Edit this page View Source

DefaultPrefab

Declaration
public static WhiteFlash DefaultPrefab { get; }
Property Value
Type Description
WhiteFlash
| Edit this page View Source

MainRenderer

Declaration
public SpriteRenderer MainRenderer { get; }
Property Value
Type Description
SpriteRenderer
| Edit this page View Source

SpriteColor

Declaration
public Color SpriteColor { get; set; }
Property Value
Type Description
Color

Methods

| Edit this page View Source

OnPool()

Called when the object is sent back to a pool

Declaration
public virtual void OnPool()
| Edit this page View Source

Spawn(Vector3, WhiteFlash)

Spawns a white flash

Declaration
public static WhiteFlash Spawn(Vector3 position, WhiteFlash prefab = null)
Parameters
Type Name Description
Vector3 position

The position to spawn it at

WhiteFlash prefab

The prefab to spawn. If null, will use the default prefab

Returns
Type Description
WhiteFlash

Implements

IOnPool

Extension Methods

ReflectionUtilities.ReflectCallMethod(object, string, object[], BindingFlags)
ReflectionUtilities.ReflectGetField(object, string, BindingFlags)
ReflectionUtilities.ReflectGetMethod(object, string, BindingFlags)
ReflectionUtilities.ReflectGetProperty(object, string, BindingFlags)
ReflectionUtilities.ReflectSetField(object, string, object, BindingFlags)
ReflectionUtilities.ReflectSetProperty(object, string, object, BindingFlags)
CoroutineUtilities.RunCoroutineWhile<T>(T, IEnumerator, Func<bool>)
  • Edit this page
  • View Source
☀
☾
In this article
Back to top
Generated by DocFX
☀
☾