Jump to content

Search the Community

Showing results for tags 'getwidth'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Welcome to UNIGINE Forums
    • News & Announcements
    • Getting started
  • Development
    • Content Creation
    • World Design
    • Rendering
    • Animation
    • Physics, Navigation and Path Finding
    • UI Systems
    • Sound & Video
    • Editor
    • C++ Programming
    • C# Programming
    • Networking
    • Sim IG (Image Generator)
    • VR Discussions
    • General
  • Improving UNIGINE
    • Documentation
    • Feedback for UNIGINE team
    • Bug Reports
    • Unigine SDK Beta feedback
  • Community
    • Add-on Store (https://store.unigine.com/)
    • Showcase
    • Collaboration
    • Tools, Plugins, Materials & Tutorials
    • General Discussions
  • Legacy
    • UnigineScript

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Found 1 result

  1. [SOLVED] GUI - GetWidth / GetHeight

    Hello guys, i attached an example with my problem, in a shutnell: I'm creating an dynamlicy gui, without using an ".ui" file, so all is done in code behind, now i want to add a sprite, and at this point i hit the actual problem. My sprite should overlay the WidgetTabBox, in this we create the dynamic widgetelements, so after i run through my initialize method, the WidgetTabBox.getHeight and .getWidth are "0". So i cant set my width and height to my spritelement. The only thing which i can do, to set in the "update" function the setWidth and setHeight action for my sprite (but thats not nice to handle...). So i / we would need an event-trigger which creates the gui, or can set a function after the trigger was runned, or an function where i can overgive my Container and this function would count together which "height" and which "size" the element have. I hope u understand. The demo should explain the problem easier. Greetings Lars ui_layout.zip
×
×
  • Create New...