Jump to content

Search the Community

Showing results for tags 'share'.

  • 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. Hello ! I am currently seeking for a scripting functionality that I can't really find. Problem: I would like to share a user class across each World scripts. This class could handle and save some attributes for example (it is like some kind of "singleton" pattern). According to the documentation, I have foundb(from https://developer.un...stem.get_string) : variable engine.system.get(string var) Description Returns a variable from the system script. Instances of user-defined classes cannot be requested in such a manner. Arguments string var - Variable name with a namespace, if needed. Return value Requested instance. As you could read : Instances of user-defined classes cannot be requested in such a manner And it is true, trying to share user class in such a manner lead to Unigine crash. Could you please give me some tips on how to achieve that kind of task ? (I believe I could write my own C++ plug-in that will expose my user class to Unigine script and ensure "singleton" pattern but I think it is a bit too "complicated" only for that) Thanks for reading me !
×
×
  • Create New...