Hello,
I was wondering if there is a way to use multiple models imported from a 3d Modelling Software as one character in Unity.
For example imagine being able to pick from multiple parts of a car(multiple types of wheels, chassis, windscreens etc) which are then treated as one model and can be used in the game as a regular model would.
I hope my question is not too confusing.
Thanks a lot for reading.
Cheers, the reason I posted though is because there is no other solutions that I could easily find
You would have an empty game object to which you child the other object:
var wheels:Transform[];
function AttachWheels(){
wheels = GameObject.FindGameObjectsWithTag("Wheels");
wheels[0].transform.parent=transform;
wheels[0].transform.localPosition(x,y,z);
wheels[1].transform.parent=transform;
wheels[1].transform.localPosition(x,y,z);
wheels[2].transform.parent=transform;
wheels[2].transform.localPosition(x,y,z);
wheels[3].transform.parent=transform;
wheels[3].transform.localPosition(x,y,z);
}
This will find objects tagged Wheels but you would use another way. Then it parent them to the car object holding the script and position them to the proper position compared to the parent object.
And any animations that the wheels object might have are used normally?
Cheers, the reason I posted though is because there is no other solutions that I could easily find
– alexisrabadan