UILocalizationManager is being added to the scene

Announcements, support questions, and discussion for Quest Machine.
Post Reply
AArtlone
Posts: 37
Joined: Tue Mar 09, 2021 2:54 am

UILocalizationManager is being added to the scene

Post by AArtlone »

Hi!

For some reason, when I am adding QuestContent, the UILocalizationManager is being added to my hierarchy.

Any ideas why that happens and how to stop that?
User avatar
Tony Li
Posts: 21926
Joined: Thu Jul 18, 2013 1:27 pm

Re: UILocalizationManager is being added to the scene

Post by Tony Li »

Hi,

You can add a UILocalizationManager to the Quest Machine GameObject/prefab to prevent it from being added at runtime. It's present in case Quest Machine needs to handle localized quest content.
AArtlone
Posts: 37
Joined: Tue Mar 09, 2021 2:54 am

Re: UILocalizationManager is being added to the scene

Post by AArtlone »

But it does not happen at runtime. It happens in Edit mode when I add QuestContent to the Quest. Whatever scene is open at that time, the UILocalizationManager is added to it
AArtlone
Posts: 37
Joined: Tue Mar 09, 2021 2:54 am

Re: UILocalizationManager is being added to the scene

Post by AArtlone »

As you can see from screenshots below, a completely new scene does not have the UILocalizationManager. But the moment I select the TextTable for the QuestContent, the UILocalizationManager appears in the scene.
one.png
one.png (16.85 KiB) Viewed 702 times
two.png
two.png (27.2 KiB) Viewed 702 times
User avatar
Tony Li
Posts: 21926
Joined: Thu Jul 18, 2013 1:27 pm

Re: UILocalizationManager is being added to the scene

Post by Tony Li »

This patch will fix it:

PixelCrushers_StringFieldPatch_2021-06-09.unitypackage

The inspector was making an unnecessary call to UILocalizationManager.instance. (The instance property adds a UILocalizationManager if one isn't present in the scene. This isn't needed at design time.)
Post Reply