Skip to content

2 Questions about Managed Resources #181

Answered by Doraku
Sarund9 asked this question in Q&A
Discussion options

You must be logged in to vote

Hello sorry for the late reply. As you saw the resource manager is separated between two methods:

  • Load: which actually load your resource based on your key (so that multiple entities using the same resource will only load it once)
  • OnResourceLoaded: where you actually decide what to do with the resource on the entity that is using it

So by default if you leave OnResourceLoaded, nothing will be set on the entity, it's up to you to set the DMesh where you need it (it could be a component directly, or part of a component like your Material type).

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Sarund9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants