Jump to content

Animations in GUI


Vorion
 Share

Recommended Posts

Hi,

is it possible to use Babylon Animations for GUI Controls? For example, I would need to animate the alpha value of a textblock, or move a container out of the display, while fading out.

And another question: Will you add more controls to the gui, like a progressbar (maybe with the ability to set an image as the bar, and a background image), or a container with tabs that you can switch? A grid container might also be useful.

Thank you :)

Link to comment
Share on other sites

51 minutes ago, Vorion said:

For example, I would need to animate the alpha value of a textblock

https://www.babylonjs-playground.com/#XCPP9Y#414

The grid container you can already make with stack panels.  I was asking also about more controls in this thread - you can find progress bars in the Playground:
http://www.html5gamedevs.com/topic/34274-more-gui-controls-ie-menu/

 

Link to comment
Share on other sites

Thanks, this does work, but what got me asking this question was IntelliJ (or Typescript Compiler) warning me, that Property 'animations' does not exist on type 'Control', so I haven't tried it until now. Is there a solution for this in typescript without using the any type for control elements, but a proper type?

And I will have a look at your link, maybe I don't even need any more new control, otherwise I will create a github issue :)

EDIT: Maybe my setup is wrong, because the playground does suggest animations as a property for a Gui.Control element.

Link to comment
Share on other sites

  • 3 weeks 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.

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

Loading...
 Share

  • Recently Browsing   0 members

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