Jump to content

Search the Community

Showing results for tags 'setposition'.

  • 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] Setting Position of WidgetHBox

    In general, I’ve found the UI system difficult to work with, the layout system isn’t very good for creating the type of UI’s we would normally implement, and some things don’t do what I expect. For example: I’m looking to use a WidgetHBox to parent spites to which arrange horizontally starting at a specific position on screen. I’ve attached an example class. I’ve created a widgetHBox and added several sprites as children like below: flythroughHBox = new WidgetHBox(gui,20,0); flythroughHBox.setPosition(1000, 250); flythroughHBox.setHeight(400); flythroughHBox.setWidth(840); path1 = new WidgetSprite(gui); path1.setTexture("Textures/UI_Assets/SpectatorMode/Button_1.TGA"); path1.setHeight(400); path1.setWidth(200); flythroughHBox.addChild(path1); And added this to the gui: gui.addChild(flythroughHBox); Setting the position using .SetPosition doesn’t have any effect on where the HBox is positioned. Is there a way to position the HBox at a specified screen position? UIManager.cs
×
×
  • Create New...