Jump to content

Multiple instances of the same model [SOLVED]


StOneDOes
 Share

Recommended Posts

Hi guys,

Just wondering how to go about having multiple instances of the same actual model? Let's take a model of a fence for example - if every time I wish to deploy a fence, if I call Model::Load() will Leadwerks actually load this model every time? Or will it load it once, store it, and return a copy of it for me?

Or do I need to set up my own system that loads each model I need once, which returns a copy each time I need one?

Thank you.

Link to comment
Share on other sites

4 hours ago, St0nedas said:

Hi guys,

Just wondering how to go about having multiple instances of the same actual model? Let's take a model of a fence for example - if every time I wish to deploy a fence, if I call Model::Load() will Leadwerks actually load this model every time? Or will it load it once, store it, and return a copy of it for me?

Or do I need to set up my own system that loads each model I need once, which returns a copy each time I need one?

Thank you.

This is the automatic default behavior.

  • Thanks 1

My job is to make tools you love, with the features you want, and performance you can't live without.

Link to comment
Share on other sites

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.

 Share

×
×
  • Create New...