Jump to content

jokke

Verified Members
  • Posts

    4
  • Joined

  • Last visited

Posts posted by jokke

  1. 8 minutes ago, chengnay said:

    Hi @jokke,

    After checking with my Colleague, he said you can do the following method,

    VivePoseTracker poseTracker = go.GetComponent<VivePoseTracker>();
    poseTracker.viveRole.SetEx<TrackerRole>(TrackerRole.Tracker1);

    Hope this helps, feel free to ask questions if you have any.

    Thanks, this is what I was looking for, now it works.

  2. Hi @chengnay,

     

    Thanks but that is not what I'm looking for. I've working setup where I bind the physical trackers to different tracker roles (1-3). What I need is that when my app starts, it creates one game object per tracker from prefab. In that prefab there's VivePoseTracker component which has it's vive role set to Tracker1 by default but I need to dynamically change that into Tracker2, Tracker3 for the others.

    So looking for solution to modify viverole property in code in VivePoseTracker class.

  3. I want to set the roles for all trackers in code. VivePoseTracker class has property viveRole but it is getter only. How can I achieve something like below?

    VivePoseTracker poseTracker = go.GetComponent<VivePoseTracker>();
    poseTracker.viveRole = ViveRoleProperty.New(TrackerRole.Tracker1);

×
×
  • Create New...