Im using the exact same code as in the video but my obstacle is not moving with the Movement Factor Slider…
Hi @elry,
Have you already compared your code to the Lecture Project Changes which can be found in the Resources of this lecture? Are there any error messages in your console during runtime?
I litterally copied the code from that lesson into my Oscillator.cs, its not much code.
No no error codes at all, its not working in editor mode or ingame.
I tested it with a debug log and the value is changing.
The “distance” beween the values is fairly huge. That’s not necessarily wrong but the game object should definitely be moving.
Could you please share screenshots of what you see in Unity? I’m interested in the entire Unity window featuring at least the scene and the Hierarchy, in the Inspector of the camera and the Inspector of the game object with the Oscillator component attached.
I restarted Unity, its working now.
This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.