- Home /
How to change textures after game is built?
I would like to build a game which is able to change it textures after it is built and run (for windows platform would be enough). My point is to avoid handing over the unity project containing the source code to my designer. I want to hand over a build version of the game to the designer, but at the same time, I want him to be able to change in game textures at any time.
Is this possible? Can someone lead me to some information?
I see you already accepted an answer, but I wanted to add that you should consider handing over a project with compiled DLLs ins$$anonymous$$d of source code. Your designer will probably need to do more than add textures, such as creating materials, setting the resolution of the textures, etc.
Thanks for pointing that out TonyLi. I accepted the answer because that was exactly what I was asking for because the designer in this project will only take care of designing textures. However, if you have more info on how to hand over a project with compiled DLLs, I would really appreciate, as this might be helpful in another situation in the near future.
Here you go: http://docs.unity3d.com/Documentation/$$anonymous$$anual/UsingDLL.html
As an added bonus, projects will build faster because they don't have to recompile source code. So your designer will be able to iterate faster.
Also helpful to me :) I did not know that you can do DLL 's, ill have to look into this for my game projects too! thanks Tony :)
Answer by TonyLi · May 20, 2013 at 12:41 PM
You could hand over a project with compiled DLLs instead of source code. Your designer will probably need to do more than add textures, such as creating materials, setting the resolution of the textures, etc. To create DLLs: http://docs.unity3d.com/Documentation/Manual/UsingDLL.html
As an added bonus, projects will build faster because they don't have to recompile source code. So your designer will be able to iterate faster.
But is this possible for javascript?
Sorry for late comment. But I was busy with other things. Was reading the doc but it seems like it's only for C#
Sorry, not to my knowledge. $$anonymous$$onodevelop doesn't support building DLLs from UnityScript. If you have a lot of UnityScript, you could convert it to C# or maybe buy this Unity 3D Obfuscator tool: http://en.unity3d.netobf.com/ -- I've never used it, though.
Answer by Bunnybomb7670 · May 17, 2013 at 10:20 AM
Loading textures from file will help you solve this issue, look at this post :
which will guide you on how to load textures from file, however I suggest that you add a system that checks IF the file exists first because then you can have a fail-safe for when the texture file is deleted or missing that will either create a new file or maybe read from textures built with the game.
sorry for changing the answer but I think other users searching for the same issue should follow the other way of solving it.