ant
New Member
Posts: 2
|
Post by ant on Dec 29, 2017 14:59:19 GMT
Hello there! Recently I bought your asset and decided to try it in my project. I liked the features that you provide, but I found a critical problem for me: I set up the camera on ManualUpdate and made a camera position update, like this: void FixedUpdate() { ProCamera2D.Move(Time.fixedTime); }
Everything works well, but when I approach to InfluenceTrigger the camera starts jerks like on this GIF: Okay, this problem was solved by switching the camera mode to FixedUpdate. But after I had a similar bug in another script: when I activate HandheldSoft or HandheldHard shakes that comes with the asset, the camera starts jerks in a similar way: I noticed that the ProCamera2D script was added to the Execute Script Ordering section, and I decided to experiment with the execution order, because it seemed to me that such strange behaviour could be caused by a different order of execution. But in the end I did not find any pattern. How to repeat bug: 1. Open demo scene TriggerInfluence. 2. Switch the ProCamera2D update type to FixedUpdate. 3. Enable Shake extension. 4. Add HandheldHard to constant shake presets. 5. Run application and enable HandheldHard shake. I hope for your help! But for now decided to abandon the Shake extension. My setup: iMac with MacOS 10.12.6 and Unity 2017.1.1f1
|
|
|
Post by Luís Pedro Fonseca on Dec 29, 2017 15:39:21 GMT
Hi ant, Thanks for your bug report. I'll have a look and get back to you as soon as possible. Cheers!
|
|
|
Post by Luís Pedro Fonseca on Jan 4, 2018 12:32:22 GMT
Hi ant, sorry for the late reply. I tried to replicate your steps, and the camera is indeed stuttering, but this is happening because the player movement is on an Update loop. This means that for the camera to be smooth, it needs to be set to LateUpdate mode. If you're still getting issues with this, my recommendation is for you to make sure everything on your game is either happening on Update or FixedUpdate. Mixing the two usually results in some kind of stutter. Let me know if this works. Cheers,
|
|
ant
New Member
Posts: 2
|
Post by ant on Jan 5, 2018 13:03:22 GMT
Hello,
Thank you for the reply. I have checked your solution and it's not working for me. If I use the LateUpdate() or FixedUpdate() for the in game logic, so I have many other issues with the game. Also, I have my own camera solution and it works smoothly only when the game logic updates with Update() and camera logic updates with FixedUpdate(). If I select for the camera LateUpdate method, so the character (camera target) jerks when moves, this happens also in the your demos. But your demos has higher FPS so these jerks are not so visible.
It seemed to me that it is some kind of bug since the problem only arises in the plugin Shake. And, if I make a manual update of the camera via FixedUpdate() in my own script then the problem arises in other plug-ins like influence trigger.
I managed to find the optimal settings when everything works well, except for the Shake plugin. But issues with Shake plugin not critical for me, since I have my own solution for camera shake that works well even with your camera.
Thanks!
|
|
|
Post by Luís Pedro Fonseca on Jan 5, 2018 14:31:33 GMT
Hi ant, I can't replicate the stutter when the camera update type matches the camera targets' update type. Everything should just work fine if they match. If that's not happening on your game (and the included demos) there's probably something else going on. Glad everything is working well for you now with the exception of the Shake extension. If you ever find out the root of the problem please let me know. Cheers,
|
|