Extract Texture from a 3D object

Asked

Viewed 57 times

0

I am developing a game in Unity, and I need to introduce the user the image of the predefined 3ds objects in the game. Today I have an asset folder where I store my . fbx files, . Blender, . Prefab, etc.

Is there any way to convert these files to Texture2d to then add the images on the screen, or even extract a texture from the gameobject created through these files.

I needed something like:

Texture2D[] imageTextures;
GameObject[] gameObject = Resources.LoadAll<GameObject>("imageDrawing/original");

for (int i = 0; i < gameObject.Length; i++)
{
       imageTextures[i] = // Texture2D do gameObject[i]
}

I thank you all in advance!

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.