#Adding components with preset properties
1 messages · Page 1 of 1 (latest)
Unfortunately there's not a way to Instantiate a single component instead of an entire GameObject. So your options are:
- Write a function that copies all the properties from one joint to another, create a template joint somewhere, and use that
- Instantiate a whole prefab with the preconfigured joint as a child object
- Make your own custom templating layer
Physics Joints have been really annoying in this way for a long time