public class TestLogger : MonoBehaviour
{
public void Log(String message)
{
Debug.Log(message);
}
}
TestLogger component to any gameobject in the scene.VRTK_DestinationMarker_UnityEvents
to a DestinationPoint in the scene,
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.)
in 3.3.0 the DestinationMarkerSet does not fire anymore.
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.
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.TeleportedonDestinationMarker.DestinationMarkerEnter, remove it again onDestinationMarker.DestinationMarkerExit