Add BoxCollider from other object to current object
Clash Royale CLAN TAG#URR8PPP
Add BoxCollider from other object to current object
If you add a BoxCollider component to an object, it is auto sized to be a bounding box size. Is there a way to generate a BoxCollider component for another object(so it has the bounding box of that object), but then add it to the current, different object? Thanks!
I dont know how I didnt think of that lol
– Jake Faulkner
Aug 5 at 15:40
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.
In editor, copy component and paste as new. In runtime,first call AddComponent() ,second set its size to another object size.
– Ron Tang
Aug 5 at 4:22