how to add a mesh of prefab in Mesh Filter menu
hi guys,
I am a beginner with Unity (my second day) hence please be patient with me.
I am trying to connect a robotic project with Unity but I am encountering problems only with Mesh Filter menu.
When I try to select the mesh of my project using the drop-down menu of Mesh section, it shows only meshes of simple objects that come with Unity and not the mesh of my project.
I can see that in the pan Project there is this folder Meshes inside of folder Assets that contains an object. I cannot see this object in the drop-down menu of Mesh section.
Cloud you please help me with problem.
I thank you in advance for your support and understanding.
Cheers E
Answer by Ujku_KU · Jun 25, 2021 at 01:29 AM
should I change any of the scripts with something as follows:
public ReachyController reachy;
... MeshFilter meshfilter = reachy.AddComponent(); meshfilter.mesh = reachy.GetComponent().mesh; meshfilter.reachy.AddComponent(); Destroy(reachy);
thank you in advance for your support and understanding.
Cheers
Your answer
Follow this Question
Related Questions
Create polygon from array of vector3s 0 Answers
Create prefab from model in AssetPostprocessor without losing mesh connections? 3 Answers
trying to skew preafabs 0 Answers
How to combine meshes for trees 0 Answers
How to weld mesh vertices in the runtime 0 Answers