In my game, I have some additional walkability check’s I’d like to perform for any position fed into GraphCollision.Check()
. For this, I am subclassing GraphCollision to create my own implementation of the Check()
method. Unfortunately, in the current release, the method is not marked virtual
and hiding it using the new
modifier, despite not being a recommended practice, makes Unity still jump into the original method rather than my custom implementation.
So for now I have resorted to directly editing the GraphCollision
class to add the virtual
modifier to the method, but it’d be great if you could mark the method virtual in your next release, so I don’t have to modify classes inside your project.
Cheers
Philipp