- Home /
how to include resources to build?
hello, in folder Assets/Resources I have files that are loaded properly in the editor. However, once created the build does not work. how can I make it work?
i use
Resources.Load(FileName);
When you say that they aren't loaded properly, what do you mean? You need to Instantiate still, or get a text asset or something.
$$anonymous$$g.
circleObject.renderer.material = Resources.Load("Circle$$anonymous$$aterial") as $$anonymous$$aterial;
Yes, I have instantiated. In fact, im the editor everything works perfectly. when I make the build does not work.
var GameObjectTRY=Resources.Load(NameObject)
Create folder in Assets 'Resources'
circleObject.renderer.material = Resources.Load("Circle$$anonymous$$aterial",$$anonymous$$aterial);
Your answer
Follow this Question
Related Questions
Distribute terrain in zones 3 Answers
Fog Problem After Build 2 Answers
Everything on Resources folder goes to the build? 1 Answer
Resources folder items not in the build 1 Answer
Problem with building project 0 Answers