UxrObjectFade.Fade Method

Starts a fade animation.

Namespace: UltimateXR.Animation.GameObjects
Assembly: UltimateXR (in UltimateXR.dll) Version: 0.0.0.0

Syntax

C#

public static UxrObjectFade Fade(
	GameObject gameObject,
	float startAlphaQuantity,
	float endFadeQuantity,
	float delaySeconds,
	float durationSeconds,
	bool recursively = true,
	bool useUnscaledTime = false,
	Action finishedCallback = null
)

Parameters

 

gameObject
Type: GameObject
GameObject whose material transparency will be enabled and animated.
startAlphaQuantity
Type: System.Single
Start alpha
endFadeQuantity
Type: System.Single
End alpha
delaySeconds
Type: System.Single
Seconds to wait before the animation starts
durationSeconds
Type: System.Single
Fade duration in seconds
recursively (Optional)
Type: System.Boolean
Whether to also process all other child objects in the hierarchy
useUnscaledTime (Optional)
Type: System.Boolean
Whether to use unscaled time (unscaledTime) or not ( time)
finishedCallback (Optional)
Type: System.Action
Optional callback executed when the animation finished

Return Value

Type: UxrObjectFade
Animation component

See Also

Reference

UxrObjectFade Class
UltimateXR.Animation.GameObjects Namespace