- Home /
I was wondering how to convert my imported textures into game-objects
I can't seem to find a clear answer to this question. I am importing custom textures; I try to make the creations into items like grass and trees but it only imports them as images. Basically, I have tried to create a custom code in c# but it seems 5.0 Unity does not support custom codes. Also, I can't find the functions which support this action. Further I have imported some textures from my image editor and I can only get them into 2D textures. No matter what I do I can't turn them into game-objects.
How do you convert a texture into a game object? I don't think that is possible. What does "5.0 Unity does not support custom codes" mean?
What that means is that I tried to make a code to convert a texture into an object but it would not convert. But sense it is not possible to convert textures than it does not matter.
Answer by tomhughes · Mar 31, 2015 at 10:17 AM
you need a mesh first, then apply the textures to the object. if it's just the picture you want, just use a plane
GameObject,3dobject, plane...click on the scene to make it and then click and drag you texture on to it
Answer by Kingnero60 · Mar 31, 2015 at 03:25 PM
By the way thank you tomhughes for your answer that was most helpful. Now I can make my grass. also last night I figured out that if you export the save the image as a defult and then export as a .dds onto where you save your images and then make a copy of the .dds rename it to whatever-you-want-to.OBJ and import it Unity, Unity will automatically convert it into a game object. Also I would assume the same can be done with any image editor and creator.
Your answer
Follow this Question
Related Questions
Treat Game Objects as terrain or similar 1 Answer
Convert to .tiff, with fbx export, removes the alpha channel? 1 Answer
Convert string to material 0 Answers
Convert Array 2 Answers
String to Var 2 Answers