Jump to content

Search the Community

Showing results for tags 'Array'.

  • 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 3 results

  1. Hi, How do I access a container variable stored in engine.world from engine.system? I usually copy containers by passing an array argument and using argument.copy(array) but how do I do it across system/world/editor? Eg: // System level namespace NetworkManager { // Need to access mVehicles data here.. Vehicles tempArr[0]; engine.world.call( "ExerciseManager::copyVehicles", tempArr ); } // World level namespace ExerciseManager { Vehicle mVehicles[0]; void copyVehicles( arg[] ) { arg.copy( mVehicles ); } } The engine.world.call does not accept array and using 'callv' instead was throwing error saying 'copyVehicles with 0 arguments cannot be found' (also, I do not want to pass array in callv due to the size limit of 8). What is the correct way of doing this? Thanks.
  2. i'm still confused how to send a array to a function. say i have array ObjectMeshSkinned meshes[]; and i want to send to function void create_scene(ObjectMeshSkinned skinMeshes[]) { } when i do this, it give me error Interpreter::parse_expression(): arrays can't be used in expressions so how could i do this?
  3. Hello! Simply as an example: ///////// Example 1 /////////// var arr:Array = new Array(); trace('Len: ' + arr.length); // Print: Len: 0 // Right! ///////// Example 2 /////////// var arr:Array = new Array("one"); trace('Len: ' + arr.length); // Print: Len: 0 // Error! ///////// Example 3 /////////// var arr:Array = new Array("one", "two"); trace('Len: ' + arr.length); // Print: Len: 2 // Right! Thank you.
×
×
  • Create New...