Custom Action for Oculus Quest working but Conditions not working.
I made this custom action for oculus quest get thumb sticks and it works, I see the vector getting updated in the Inspector and I see also the local variables also getting updated.
I then create in GC a new trigger onStart, condition == if variable number from my local variable x is greater than 0.1
Then action display message or change color or something else.
But this condition does not work. And btw your condition Vector3 has no compare functionality like numbers do
What am I doing wrong please?
I have also made a custom igniter script for all the triggers for the oculus quest buttons and that all works. And condition work with triggers but not from my action thumb stick or velocity
I am relatively new to programming but I am coming along nicely as in the future I would like to be able to make custom actions for me and the community. I am sticking with GC but learning programming at the same time.
public class ActionOculusThumbStick : IAction
public static new string NAME = "OculusQuest/ActionOculusThumbStick";
public VariableProperty setX;
public VariableProperty setY;
public bool debugLog;
public float multiplier =1;
public Vector2 axisValue;
private OVRInput.Controller controllerInput;
public enum controllerEnum
public controllerEnum touchController;
public void Start()
controllerInput = OVRInput.Controller.LTouch;
controllerInput = OVRInput.Controller.RTouch;
public void Update()
axisValue = OVRInput.Get(OVRInput.Axis2D.PrimaryThumbstick, controllerInput);
setX.Set(axisValue.x * multiplier);
setY.Set(axisValue.y * multiplier);
if (debugLog == true)
Debug.Log("X_Axis = " + axisValue.x + " Y_Axis = " + axisValue.y);
Customer support service by UserEcho