Obi Official Forum
'IConstraint' has the same name as built-in Unity component. - Printable Version

+- Obi Official Forum (https://obi.virtualmethodstudio.com/forum)
+-- Forum: Obi Users Category (https://obi.virtualmethodstudio.com/forum/forum-1.html)
+--- Forum: General (https://obi.virtualmethodstudio.com/forum/forum-5.html)
+--- Thread: 'IConstraint' has the same name as built-in Unity component. (/thread-3091.html)



'IConstraint' has the same name as built-in Unity component. - fleity - 10-09-2021

Upon importing ObiRope 6.2 I get this warning: 

Code:
Script 'IConstraint' has the same name as built-in Unity component.

AddComponent and GetComponent will not work with this script.


And it looks like IConstraint should be part of the obi namespace which it currently isn't.


RE: 'IConstraint' has the same name as built-in Unity component. - josemendez - 10-09-2021

(10-09-2021, 02:31 PM)fleity Wrote: Upon importing ObiRope 6.2 I get this warning: 

Code:
Script 'IConstraint' has the same name as built-in Unity component.

AddComponent and GetComponent will not work with this script.


And it looks like IConstraint should be part of the obi namespace which it currently isn't.

What Unity version are you using? There’s no IConstraint interface declared in the global namespace as far as I’m aware. Obi 6.2 works fine with the latest Unity version for me.