Speech bubble continuously spinning

Announcements, support questions, and discussion for the Dialogue System.
User avatar
Tony Li
Posts: 22056
Joined: Thu Jul 18, 2013 1:27 pm

Re: Speech bubble continuously spinning

Post 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?
Escara
Posts: 78
Joined: Sun Dec 30, 2018 4:55 am

Re: Speech bubble continuously spinning

Post 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)
Escara
Posts: 78
Joined: Sun Dec 30, 2018 4:55 am

Re: Speech bubble continuously spinning

Post 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.

User avatar
Tony Li
Posts: 22056
Joined: Thu Jul 18, 2013 1:27 pm

Re: Speech bubble continuously spinning

Post 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?
Escara
Posts: 78
Joined: Sun Dec 30, 2018 4:55 am

Re: Speech bubble continuously spinning

Post 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

User avatar
Tony Li
Posts: 22056
Joined: Thu Jul 18, 2013 1:27 pm

Re: Speech bubble continuously spinning

Post 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.
Escara
Posts: 78
Joined: Sun Dec 30, 2018 4:55 am

Re: Speech bubble continuously spinning

Post 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.



Escara
Posts: 78
Joined: Sun Dec 30, 2018 4:55 am

Re: Speech bubble continuously spinning

Post 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.
Escara
Posts: 78
Joined: Sun Dec 30, 2018 4:55 am

Re: Speech bubble continuously spinning

Post by Escara »

And it spins faster when further away from the hotspot.
User avatar
Tony Li
Posts: 22056
Joined: Thu Jul 18, 2013 1:27 pm

Re: Speech bubble continuously spinning

Post 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. :-)
Post Reply