MonoBehaviourExt.CheckSetEnabled Method

Enables/disabled the component if it isn’t enabled already.

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

Syntax

C#

public static void CheckSetEnabled(
	this MonoBehaviour self,
	bool enable
)

Parameters

 

self
Type: MonoBehaviour
Component to enable/disable
enable
Type: System.Boolean
Whether to enable or disable the component

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type MonoBehaviour. 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

MonoBehaviourExt Class
UltimateXR.Extensions.Unity Namespace