Forum rules - please read before posting.

SubtitlesUI and Reference Resolution resetting during gameplay runtime

Hi,
I'm trying to implement some basic Lookat hotspot dialogue pop-up text using Unity UI Prefab source setting and the included SubtitlesUI prefab. I've set the reference resolution to 1920x1080 in the prefab editor, but during test play it reverts back to the default 640x480. I've tried disabling and removing the the Auto-correct UI Dimensions component but didn't notice any change.

Any insight would be appreciated.

Thanks,
Brandon

Comments

  • Never mind, maybe. I think I found my issue. I was working with (duplicates of) the template SubtitlesUI prefab located in Project > Assets > AdventureCreator >UI, instead of the one located in the Assets > "MyProjectName" > UI folder.

    I had my canvas source pointed at one and the associated RectTransform pointed at the other.

    I guess I'll need to go back and fix this same issue in my InteractionsUI setup now too. No wonder if fought me so much during layout. Sigh.

  • Welcome to the community, @Brontes.

    Sorry to hear the trouble. Yes, that does sound correct - AC won't adjust the Canvas resolution through code.

    Did you duplicate the default Menu Manager, or did you use the New Game Wizard to generate a fresh one automatically?

  • edited June 9

    Hi Chris. Thanks for having me.

    I used the Wizard to generate everything during setup. The prelinked canvases in the AC editor all seemed to point to prefabs located in the Assets/AdventureCreator/UI folder, so I started out using those (or duplicates placed in a prefabs folder I created myself.) With that method I was able to force my way though setting up some basic interaction functions, but it was more problematic than it probably should have been. Lots of chasing down little things being reset, etc. Layout in scene view was a bit of a chore too.

    Once I realized there was another set of prefabs in the "MyGame"/UI folder, I switched to using those for editing, along with using the Unity UI in Scene source to simplify layout.

    So far this approach seems to be working much better for me.

  • edited June 9

    Apologies for the trouble, thank you for the details.

    What are your AC/Unity versions? The Menu Manager ought to point to the new UI prefabs.

  • No worries. This is my first project with AC, so it may have just been the result of new user error during setup or something. I'm working with AC v1.86.3 in Unity 6000.3.9f1.

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.