Hi I need a C# script for Unity, the specifications are below. The script needs to have…
- User
Hi I need a C# script for Unity, the specifications are below.
The script needs to have a GameObject parameter named BaseBonesOBJ. The script needs to have a GameObject parameter named OtherBonesOBJ. The script needs to have a Transform list parameter named BonesInBase. The script needs to have a Transform list parameter named BonesInOther.
The script's logic should be as follows:
- Populate BonesInBase with every single child and subchild inside of BaseBonesOBJ's transform. (Every single GameObject inside of the transform of BaseBonesOBJ)
- Populate BonesInOther with every single child and subchild inside of OtherBonesOBJ's transform. (Every single GameObject inside of the transform of OtherBonesOBJ)
- For each transform in BonesInOther if the bones name from BonesInBase are a match then parent the bones from BonesInOther to the bones in BonesInBase and match the BonesInBase size, location, rotation) work in local space.
- Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.