Does anyone know a fix?

constraint is typed as ‘object’, object does not contain a member called ‘data’.

I presume this ‘MultiParentConstraintData’ type does, and you’re likely trying to cast it to that type to access it.

But you’re casting it in the wrong way. You need to cast ‘constraint’ THEN access data. Not the other way around:

((MultiParentConstraintData)constraint).data

Of course… I might ask you why is ‘constraint’ even typed as ‘object’ and not as ‘MultiParentConstraintData’ since that’s the way you intend to use it? It’s not like you’ve done any validation on the ‘object’ in your Update method which says to me that it’ll only ever be a ‘MultiParentConstraintData’. So type your ‘constraint’ variable as that.

private MultiParentConstraintData constraint;

Also, next time try maybe communicating to some degree as to what your problem is so we don’t have to make guesses.

Also, there is a ‘code’ tag on the forum for you to post code in text form.

Sure you may have wanted to include the compiler error… but… if you had read the error to post it here, you may have gotten your hint as to why it is happening.

Please read the rules before posting again. Post code properly, use proper titles and be clear about what you are asking about.