AttachInstanceToGameObject not working without a Rigidbody

Good Afternoon!

I’ve found that the AttachInstanceToGameObject update the position when the rigidbody parameter is null. Is there a way to get a round this problem? We have an object that wants to be updated each frame but it doesn’t have a rigidbody on it.

Many thanks,
Will

You can use GetComponent<Rigidbody>() as the third parameter, and if the object does not have a Rigidbody it will pass in null. The reason you cannot just pass in null is because there are two versions of the function and it would not be able to tell which to use.