Jump to content

Get container by name


Recommended Posts

9 hours ago, iKest said:

Phaser does track Game Objects by name with getByName(...) or getAll('name', ...) methods

I'm getting null when typing this.container.getByName('3') .
inside my containers there is an image and this ->  this.container.getByName()  return my Image which does not have name. I think thats because i gave null. But i want to return not the Image but Container  

Link to comment
Share on other sites

  • 2 months later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...