playMaker

Author Topic: [Solved]No longer works when the game is compiled  (Read 562 times)

stigma

  • Full Member
  • ***
  • Posts: 192
[Solved]No longer works when the game is compiled
« on: September 30, 2023, 10:30:05 AM »
So that my testers can move quickly from one point to another (the terrain is very large), I did this which works very well in the editor, but not in the tyout once the game is compiled. For what ?

« Last Edit: October 02, 2023, 12:54:10 PM by stigma »

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7622
    • jinxtergames
Re: No longer works when the game is compiled
« Reply #1 on: October 01, 2023, 06:42:38 AM »
Hi.
Try checking 'Late Update'

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7622
    • jinxtergames
Re: No longer works when the game is compiled
« Reply #2 on: October 01, 2023, 07:21:04 AM »
Hi.
you can also try enabling Auto Sync Transforms in Physics settings.

another thing can be that you need to Disable/Enable the character controller.

See this unity thread :
https://forum.unity.com/threads/does-transform-position-work-on-a-charactercontroller.36149/


it is possible that something works in editor and in build not, most of the time is because the update is a lot faster in a build (since it does not use the editor which also uses resources when playing in editor)

in several cases a next frame event can fix those issues.

stigma

  • Full Member
  • ***
  • Posts: 192
Re: No longer works when the game is compiled
« Reply #3 on: October 02, 2023, 12:53:41 PM »
Thanks a lot, Djaydino ! It's ok