K
K
Keliorw2021-12-15 09:33:01
C++ / C#
Keliorw, 2021-12-15 09:33:01

When compiling a project to WebGL format, the characters move at a slower speed than in the engine. Why?

When playing in Unity, my characters move as I need, but after compiling to WebGL format, the characters start moving 10 times slower, how can I fix this, please tell me.

Line of code used to move characters:

transform.Translate(new Vector3(movementSpeed * -1, 0, 0));

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
GavriKos, 2021-12-15
@GavriKos

Frame rate is ignored. See even just the docks on transform.Translate

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question