[SOLVED] ContainerAsset is undefined

Hello!
I created this game a while ago with some help and now need to make a small change, unfortunately I made a mistake and am stuck now… This is the scene:
https://playcanvas.com/editor/scene/1901202

I initially just wanted to remove the controller instructions:

I deleted the file in the ui called “assets” that contained the text - since then when trying to launch I get the error message “ContainerAsset is undefined”. I put the asset file back in but the problem persists.

I would very much apprechiate any tipps!
thanks!!!
Tina

Hi @tinari!

You need to reassign the HTML file to the attribute of the script, that is on the UI entity of your hierarchy.

If you don’t want to show any UI text, you probably also can remove this script from the UI entity to solve the problem.

Thank you very much @Albertos!!!

1 Like

Hi everyone, Hi @Albertos,

Unfortunately I did not manage to solve it yet!
It is definitely assigned (see image) but the error message persists :frowning: Do you have any additional ideas?

many thanks!
Tina

WhatsApp Image 2024-09-01 at 23.58.38

No idea why, but if you disable the Tina_Gallery15-11-23 entity in your hierarchy the error is gone.

First of all, thanks for checking again!
I just tried it but it now says “data is not defined”

Screenshot 2024-09-02 at 15.32.08

I have seen that, but that’s because your console.log line.

image

Not sure what you use that line for, but you can remove it.

You are right!
But then the rest of the scene does not work! And my knowledge of the programm is not good enough too recreate the folder… so many thanks for giving it a try though!

When the rest of the scene doesn’t work?

What folder do you need to recreate?

I think it must be the whole Tina_Gallery15-11-23 entity :frowning: except the little thing that makes the error… so I think this is getting too complicated unfortunately…

The issue is that the container asset for the collision was marked as ‘excluded’. I forked and unticked that setting on the asset and it loads fine. When exclude is ticked, it means that asset is not included/used when running the app (launch tab and builds).

https://playcanvas.com/project/1251050/overview/f-tina-web-gallery-build

2 Likes

Thats amazing! Thank you @yaustar! But now all the textures are also excluded… and some of the collisions… That’s how it should look like (just without the controller instructions):

It’s the same problem. The texture assets also have been set to be excluded when they shouldn’t be

This is something you need to go through and fix

Thanks so much for your help @yaustar !!! I will!

Hello!
Sorry for being annoying, but I now can not load my main scene “In Progress 2” properly - Could you help me one last time and put it back to the original state (including the text) - many many thanks!
Tina

It looks like you set everything to Exclude, I think the intention was to do the opposite.

That is right :)) thank you @Albertos !!