GraphicExt.SetAlpha Method

Sets the alpha value of a Graphic component.

Namespace: UltimateXR.Extensions.Unity.UI
Assembly: UltimateXR (in UltimateXR.dll) Version: 0.0.0.0

Syntax

C#

public static void SetAlpha(
	this Graphic graphic,
	float alpha
)

Parameters

 

graphic
Type: Graphic
Target Graphic component to set the alpha value of
alpha
Type: System.Single
New alpha value

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Graphic. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

See Also

Reference

GraphicExt Class
UltimateXR.Extensions.Unity.UI Namespace