Vrtk: React to Teleportation with Destination Marker Events

Created on 9 Jan 2018  路  3Comments  路  Source: ExtendRealityLtd/VRTK

Environment

  • Source of VRTK: Github
  • Version of VRTK: 3.3.0 alpha (6cb308689b6d786ad62f28bb7e34ca8dec1f6018 on 3.3.0 alpha branch)
  • Version of Unity3D: Unity 2017.3.0f3
  • Hardware used: Vive
  • SteamVR

Steps to reproduce

  1. Open 044_CameraRig
  2. Create a simple script for the purpose of logging events:
public class TestLogger : MonoBehaviour
{
        public void Log(String message)
        {
                Debug.Log(message);
        }
}
  1. Add a TestLogger component to any gameobject in the scene.
  2. Add the VRTK_DestinationMarker_UnityEvents to a DestinationPoint in the scene,
    and Log all events with some sample test string, i.e. as in the following image

vrtk_destinationmarker_unityevents

Expected behavior

All events but the DestinationMarkerSet seem to fire as expected (even though imo the documentation could use clarification)

When the user teleports to the DestinationPoint, I had expected the DestinationMarkerSet to fire, although from the documentation it doesn't seem entirely clear to me:

DestinationMarkerSet - Emitted when the destination marker is active in the scene to determine the last destination position (useful for selecting and teleporting).

In 3.2.1, this was the case (the event fired on teleportation as i xpected.)

Current behavior

in 3.3.0 the DestinationMarkerSet does not fire anymore.

unconfirmed bug

Most helpful comment

I believe the changes to VRTK_DestinationPoint.cs in 5f4e36007bfe2837969037776d976ada61c03990 is be to blame.

But possibly DestinationMarkerSet has some other purpose that I do not understand properly. In that case this would be a feature request for an event that allows to react to teleporting ith a DestinationMarker (rsp. Point)

Current Workaround:
Add a Handler to DestinationMarker.teleporter.Teleported on DestinationMarker.DestinationMarkerEnter, remove it again on DestinationMarker.DestinationMarkerExit

All 3 comments

I believe the changes to VRTK_DestinationPoint.cs in 5f4e36007bfe2837969037776d976ada61c03990 is be to blame.

But possibly DestinationMarkerSet has some other purpose that I do not understand properly. In that case this would be a feature request for an event that allows to react to teleporting ith a DestinationMarker (rsp. Point)

Current Workaround:
Add a Handler to DestinationMarker.teleporter.Teleported on DestinationMarker.DestinationMarkerEnter, remove it again on DestinationMarker.DestinationMarkerExit

Yes, I developed this in 2018.1.0 with 3.3.0, the DestinationMarkerSet is error found the bug, I can't resolve this problem that I set a custom event by DestinationMarkerSet

Closing this as it's related to an older version of VRTK (v3.3) the master branch is now on VRTK v4. Feel free to request to reopen if the issue is still present.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

dotcommer picture dotcommer  路  5Comments

thestonefox picture thestonefox  路  8Comments

monodavids picture monodavids  路  3Comments

thestonefox picture thestonefox  路  5Comments

thestonefox picture thestonefox  路  3Comments