C# Class DW_CameraFade

Inheritance: MonoBehaviour
显示文件 Open project: caffeinatedguy/Limbs Class Usage Examples

Public Properties

Property Type Description
m_BackgroundStyle GUIStyle
m_CurrentScreenOverlayColor Color
m_DeltaColor Color
m_FadeDelay float
m_FadeGUIDepth int
m_FadeTexture UnityEngine.Texture2D
m_OnFadeFinish Action
m_TargetScreenOverlayColor Color

Private Properties

Property Type Description
Awake void
Die void
OnApplicationQuit void
OnGUI void
SetScreenOverlayColor void

Public Methods

Method Description
StartAlphaFade ( Color newScreenOverlayColor, bool isFadeIn, float fadeDuration ) : void

Starts the fade from color newScreenOverlayColor. If isFadeIn, start fully opaque, else start transparent.

StartAlphaFade ( Color newScreenOverlayColor, bool isFadeIn, float fadeDuration, float fadeDelay ) : void

Starts the fade from color newScreenOverlayColor. If isFadeIn, start fully opaque, else start transparent, after a delay.

StartAlphaFade ( Color newScreenOverlayColor, bool isFadeIn, float fadeDuration, float fadeDelay, Action OnFadeFinish ) : void

Starts the fade from color newScreenOverlayColor. If isFadeIn, start fully opaque, else start transparent, after a delay, with Action OnFadeFinish.

init ( ) : void

Private Methods

Method Description
Awake ( ) : void
Die ( ) : void
OnApplicationQuit ( ) : void
OnGUI ( ) : void
SetScreenOverlayColor ( Color newScreenOverlayColor ) : void

Sets the color of the screen overlay instantly. Useful to start a fade.

Method Details

StartAlphaFade() public static method

Starts the fade from color newScreenOverlayColor. If isFadeIn, start fully opaque, else start transparent.
public static StartAlphaFade ( Color newScreenOverlayColor, bool isFadeIn, float fadeDuration ) : void
newScreenOverlayColor Color /// Target screen overlay Color. ///
isFadeIn bool /// Whether to fade in or out. ///
fadeDuration float /// Fade duration. ///
return void

StartAlphaFade() public static method

Starts the fade from color newScreenOverlayColor. If isFadeIn, start fully opaque, else start transparent, after a delay.
public static StartAlphaFade ( Color newScreenOverlayColor, bool isFadeIn, float fadeDuration, float fadeDelay ) : void
newScreenOverlayColor Color /// New screen overlay color. ///
isFadeIn bool /// Whether to fade in or out. ///
fadeDuration float /// Fade duration. ///
fadeDelay float /// Fade delay. ///
return void

StartAlphaFade() public static method

Starts the fade from color newScreenOverlayColor. If isFadeIn, start fully opaque, else start transparent, after a delay, with Action OnFadeFinish.
public static StartAlphaFade ( Color newScreenOverlayColor, bool isFadeIn, float fadeDuration, float fadeDelay, Action OnFadeFinish ) : void
newScreenOverlayColor Color /// New screen overlay color. ///
isFadeIn bool /// Whether to fade in or out. ///
fadeDuration float /// Fade duration. ///
fadeDelay float /// Fade delay. ///
OnFadeFinish Action /// On fade finish, doWork(). ///
return void

init() public method

public init ( ) : void
return void

Property Details

m_BackgroundStyle public_oe property

public GUIStyle m_BackgroundStyle
return GUIStyle

m_CurrentScreenOverlayColor public_oe property

public Color m_CurrentScreenOverlayColor
return Color

m_DeltaColor public_oe property

public Color m_DeltaColor
return Color

m_FadeDelay public_oe property

public float m_FadeDelay
return float

m_FadeGUIDepth public_oe property

public int m_FadeGUIDepth
return int

m_FadeTexture public_oe property

public Texture2D,UnityEngine m_FadeTexture
return UnityEngine.Texture2D

m_OnFadeFinish public_oe property

public Action m_OnFadeFinish
return Action

m_TargetScreenOverlayColor public_oe property

public Color m_TargetScreenOverlayColor
return Color