Jump to content

Loading assets in code


Rick
 Share

Recommended Posts

Why does it seem that when I load assets in code it doesn't take? It's looking like I have to close the editor first and then reopen before I can use that assets.

 

For example, I've created an inventory item thingoid. This has 2 properties that are file path properties. One is the filename of the 3D model to use and the other is the filename of the dds file to use for a hud image. When I set these in the editor the code in the Set() is calling either LoadMesh() or LoadTexture(), yet they don't load. BUT if I close the editor and reopen, then it loads them. Any ideas what's up with that?

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...