SubjectNerd-Unity / ReorderableInspector

Automatic reorderable lists for Unity game engine components
MIT License
487 stars 47 forks source link

Add Assembly Definition Files #15

Open Radagaisus opened 5 years ago

Radagaisus commented 5 years ago

So that people won’t have to muck around within the package, add assembly definition files. One that should only be linked to in the Editor, another for all platforms.

rakkarage commented 5 years ago

ya that is how i use it too https://github.com/rakkarage/TestTileMap/blob/master/Assets/ReorderableInspector/ReorderableInspector.asmdef but maybe just need one for all platforms not two? idk

laurentopia commented 3 years ago

Yes please. I tried this but no bueno on switch build (il2cpp) image image image

the error on build is this Assets\Scripts\Plugins\Utilities\Reorderable\Editor\ReorderableArrayInspector.cs(468,33): error CS0246: The type or namespace name 'ReorderableAttribute' could not be found (are you missing a using directive or an assembly reference?)

laurentopia commented 3 years ago

and ... solved here is how you do it: create a asmdef in the editor folder "Reorderable.Editor" and another one called "Reorderable" in the folder than contains non editor scripts of Reorderable reference "Reorderable" in "Reorderable.Editor"