Unity-Technologies/2d-extras

Editor Warning On Creation: No script asset for RuleTile.

ShadedLamp opened this issue · 4 comments

Full warning: No script asset for RuleTile. Check that the definition is in a file of the same name and that it compiles properly.

Renaming the asset breaks the editor with error: "The associated script can not be loaded. Please fix any compile errors and assign a valid script".

There are no errors reported (outside the initial warning about no script asset) in the console.

Manually replacing the script with RuleTile results in an empty inspector and I think completely overwrote the rule tile contents.

To fix the editor, do not replace the script. Instead, reimport the 2D Tilemap Extras folder inside the Unity editor. This will need to be done every time an tile asset is renamed or editor reloaded.

File's m_Script is null'ed out (set to {fileID: 0}) upon reimporting but the asset itself strangely functions perfectly fine in tile palette and painting.

This will result in a constant editor error of "SerializedObjectNotCreatableException: Object at index 0 is null" but the full functionality of tile palette painter and tilemap remain. It is also possible to clear the error so it's easily ignorable.

Unity 2022.2.0 Beta 12.

Amazing to hear. Do you have an ETA on the version that might fix this issue? Is there a way currently using a local version of this package that I can temporarily patch this problem?

10/10 solution. Fixed it. Thank you so much. No more reimporting required. Closing ticket.