Forum Discussion
tejas_kornhaber
7 years agoHonored Guest
Transform.forward is inconsistent between editor and build
Behavior in editor (working as desired):

Undesired and inconsistent behavior in build:

The player can move grabbed parts on their local z-axis using the touchpad. The behavior works as expected, and consistently, in the editor. But the behavior breaks in the build. Sometimes the object travels up and down, or sometimes diagonally.
if(controllerEvents.GetTouchpadAxis().y > 0 && (controllerEvents.GetTouchpadAxis().x < 0 || controllerEvents.GetTouchpadAxis().x > 0))
{
//straightPointer.OverrideBeamLength(straightPointer.maximumLength);
if (currentObject != null)
currentObject.localPosition -= currentObject.forward;
}
I cannot for the life of me understand why the behavior would not be consistent between the editor and the build.
Using Unity 2017.4.10f1 and using the latest OVR utilities.
Any help would be appreciated!
1 Reply
Replies have been turned off for this discussion
- tejas_kornhaberHonored GuestEdit: Just tested the feature in Unity 2018.2.15f1 and the behavior was consistent between editor and build. Not sure what caused the issue in Unity 2017, but I can call this 'solved' for now.
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 7 months ago
- 3 years ago