Unity-Technologies / ProjectAuditor

Project Auditor is an experimental static analysis tool for Unity Projects.
Other
795 stars 64 forks source link

Create new setting option #164

Closed borisbauer-unity closed 1 year ago

borisbauer-unity commented 1 year ago

Description

Added an option on the first welcome layout of PA.

Changes made

Notes

TODO: I could update the docs regarding the settings in this PR, unless we prefer a full pass over the docs at a later time.

borisbauer-unity commented 1 year ago

I found a much better alternative API for new/save file prompts:

A different Unity UI method EditorUtility.SaveFilePanelInProject() ensures that a user only picks a path within Assets.

Note: This API is not fully documented. It features an optional path parameter AND guarantees a returned relative path (relative to Assets/), both in their UX warning the user and what the returned string contains.

mtrive commented 1 year ago

found a little bug:

The new settings asset does not appear on the list

borisbauer-unity commented 1 year ago

The new settings asset does not appear on the list

Oh, right, there was not a general refresh so far for that drop-down interaction and at creation time.

Maybe I should add it even for the drop-down action (the drop-down appearing), so it would detect any new asset on disk.