Page 2 of 3
Re: Speech bubble continuously spinning
Posted: Thu Apr 04, 2019 2:52 pm
by Tony Li
I haven't been able to reproduce the issue. Here's the test scene I used:
AC_DS_Test2DWorldSpaceBubble_2019-04-04.unitypackage
It's based on AC's 2D Demo, so you'll need to click the 2D Demo's Manager Package before playing it.
Click on the bird to start a conversation. The bird tweets, then the player (Brain2D) says something.
If you're able to change it so Brain2D's bubble UI spins, please let me know the steps. If you'd prefer to send a copy of your own project instead to tony (at) pixelcrushers.com, I'd be happy to take a look.
Also, does your player's bubble UI have a Keep Rect Transform Onscreen script? If so, does the spinning stop if you temporarily disable the script?
Re: Speech bubble continuously spinning
Posted: Thu Apr 04, 2019 2:55 pm
by Escara
Ok so I have this error now. Do you think is related?
Note: The MainCamera is parented to an unknown object. Be careful when moving the parent, as it may cause mis-alignment when the MainCamera is attached to a GameCamera.
-> AC debug logger
UnityEngine.Debug:LogWarning(Object, Object)
AC.ACDebug:LogWarning(Object, Object) (at Assets/AdventureCreator/Scripts/Static/ACDebug.cs:25)
AC.MainCamera:OnAwake(Boolean) (at Assets/AdventureCreator/Scripts/Camera/MainCamera.cs:143)
AC.MultiSceneChecker:Awake() (at Assets/AdventureCreator/Scripts/Game engine/MultiSceneChecker.cs:45)
Re: Speech bubble continuously spinning
Posted: Thu Apr 04, 2019 3:04 pm
by Escara
Ah, this is where the weird crazy rotation is happening on the Rect Transform but I can't seem to be able to disable it.
Re: Speech bubble continuously spinning
Posted: Thu Apr 04, 2019 3:11 pm
by Tony Li
What value is changing? Pivot > Y?
It might be related to that error message from AC. When AC reports "The MainCamera is parented to an unknown object," please check the Hierarchy. What object is it parented to?
Re: Speech bubble continuously spinning
Posted: Thu Apr 04, 2019 3:30 pm
by Escara
What value is changing?
Pos x, Pos Y, Pos Z
Rotation Y
What object is it parented to?
It's parented to _GameCameras
Re: Speech bubble continuously spinning
Posted: Thu Apr 04, 2019 3:40 pm
by Tony Li
I just opened the example scene that I posted above and made MainCamera a child of _Cameras/_GameCameras. AC reported the same warning, but the UI didn't spin.
Does the player's UI have a KeepRectTransformOnscreen script anywhere in it? If so, can you try removing or disabling it? If that ends up being the culprit, I may need to update it.
Re: Speech bubble continuously spinning
Posted: Thu Apr 04, 2019 4:06 pm
by Escara
Ok, So I moved the Main Camera out of that folder. No error message about that now.
There's a KeepRectTransformOnscreen script on the Main Panel. No effect when disabling it.
However, I've fixed the mad rotating issue by deleting the Bubble UI and adding one that's identical to my NPCs. But I now have another error. The full bubble will only appear when the player is standing right by the hotspot.
Re: Speech bubble continuously spinning
Posted: Thu Apr 04, 2019 4:18 pm
by Escara
Actually, this only happened when the Bubble Panel was a child of the Bubble Template Standard UI Subtitle. When I move to be a child of the Main Panel, the crazy rotation happens again.
Re: Speech bubble continuously spinning
Posted: Thu Apr 04, 2019 4:21 pm
by Escara
And it spins faster when further away from the hotspot.
Re: Speech bubble continuously spinning
Posted: Thu Apr 04, 2019 4:27 pm
by Tony Li
That's a good clue. I'll dig into AC's code and try to reproduce this as soon as I get back from walking the dogs. They've learned to tell me that it's time for their walk by bumping my mouse elbow so I can't type.