radiatoryang / hedera

paint 3D ivy in the Unity Editor, watch procedurally generated meshes simulate growth and clinging in real-time
GNU General Public License v2.0
783 stars 64 forks source link

error CS0120: An object reference is required for the non-static field, method, or property 'SceneView.drawGizmos' #9

Closed albrrt closed 4 years ago

albrrt commented 4 years ago

Hello, I imported the unity package from Releases into my Unity project (2019.4.8f1). It warned me about obsolete APIs, then I got the following error: Hedera\Editor\Scripts\IvyEditor.cs(282,18): error CS0120: An object reference is required for the non-static field, method, or property 'SceneView.drawGizmos'

Then underneath it:

Some scripts have compilation errors which may prevent obsolete API usages to get updated. Obsolete API updating will continue automatically after these errors get fixed.

Do you know how to fix this?

Thank you!

radiatoryang commented 4 years ago

oops, that should read SceneView.lastActiveSceneView.drawGizmos ... thanks for the bug report, will push some fixes

radiatoryang commented 4 years ago

this should now be fixed in v1.2 release, thanks