13-02-2020, 02:54 PM
Thank you, this works. But oddly, I am getting an error...
error at the line:
The rope shape is still being reset like I want even with this null error, so it works but I'd like to eliminate the error.
They way I've set it up is a public ObiActor myRope variable where I assign the rope GameObject in the editor, and when I want the rope to reset reset I pass myRope into...
Any idea why this null error is happening?
Code:
NullReferenceException: Object reference not set to an instance of an object
error at the line:
Code:
if (actor.isLoaded)
The rope shape is still being reset like I want even with this null error, so it works but I'd like to eliminate the error.
They way I've set it up is a public ObiActor myRope variable where I assign the rope GameObject in the editor, and when I want the rope to reset reset I pass myRope into...
Code:
void Reset(ObiActor actor)
Any idea why this null error is happening?