internal static unsafe bool Invoke(EControllerHand Hand, EMLControllerLEDEffect LEDEffect, EMLControllerLEDSpeed LEDSpeed, EMLControllerLEDPattern LEDPattern, EMLControllerLEDColor LEDColor, float DurationInSec) { long *p = stackalloc long[] { 0L, 0L, 0L }; byte *b = (byte *)p; *(b + 0) = (byte)Hand; *(b + 1) = (byte)LEDEffect; *(b + 2) = (byte)LEDSpeed; *(b + 3) = (byte)LEDPattern; *(b + 4) = (byte)LEDColor; *((float *)(b + 8)) = DurationInSec; Main.GetProcessEvent(MagicLeapControllerFunctionLibrary.DefaultObject, PlayControllerLEDEffect_ptr, new IntPtr(p));; return(*((bool *)(b + 12))); } }
///<summary>Starts a LED feedback effect using the specified pattern on the specified controller.</summary> ///<remarks> ///@param Hand Controller to play the LED pattern on. ///@param LEDEffect Effect to play on the controller. ///@param LEDSpeed Effect speed. ///@param LEDPattern Pattern to play on the controller. ///@param LEDColor Color of the LED. ///@param DurationInSec Duration (in seconds) to play the LED pattern. ///@return True if the command to play the LED effect was successfully sent to the controller, false otherwise. ///</remarks> public static bool PlayControllerLEDEffect(EControllerHand Hand, EMLControllerLEDEffect LEDEffect, EMLControllerLEDSpeed LEDSpeed, EMLControllerLEDPattern LEDPattern, EMLControllerLEDColor LEDColor, float DurationInSec) => MagicLeapControllerFunctionLibrary_methods.PlayControllerLEDEffect_method.Invoke(Hand, LEDEffect, LEDSpeed, LEDPattern, LEDColor, DurationInSec);