UnityNativeGallery icon indicating copy to clipboard operation
UnityNativeGallery copied to clipboard

Cannot declare a variable of static type 'NativeGallery'

Open GoldenEagle1527 opened this issue 3 years ago • 2 comments

I import this package,but the Editor say Cannot declare a variable of static type 'NativeGallery'. I cannot use NativeGallery In my project.

GoldenEagle1527 avatar May 29 '22 13:05 GoldenEagle1527

It's my fault. I'll be fine when I set API to 4.x.

GoldenEagle1527 avatar May 29 '22 13:05 GoldenEagle1527

NativeGallery doesn't require API 4.x though. You may have used NativeGallery in a wrong way (please see example code), there may be another class called NativeGallery in your project or you might've needed to click Edit-Preferences-External Tools-Regenerate project files.

yasirkula avatar May 29 '22 18:05 yasirkula