I have asked some times ago about that question but did not resolve it yet
it maybe too easy to most of the members but simply I don’t get the api to get that working
so if someboy had an anwser thanks in advance
here is the code
The menus before are working fine
To search through the objects in your scene by name, use something like this:
Transform SearchInScene(string myType)
{
// Go through all Objects in scene to find the ones of that name
GameObject[] GOs = GameObject.FindObjectsOfType( typeof( GameObject ) ) as GameObject[];
Transform theOneFound = null;
foreach ( GameObject GO in GOs )
{
if( GO.name == myType)
{
theOneFound = GO.transform;
// Find mesh here and do what you want...
}
}
if(theOneFound) return theOneFound;
else return null;
}