Closed blue-train closed 3 weeks ago
Hello, you propose to add "edit script" in context menu, however I have several questions and notes to this addition:
Hello!
FindObjectsOfTypeAll
that takes Type as an argument. According to documentation, this version will return Object[]
instead of T[]
, and you will need to cast it on the next step, moreover, this version will be slower than generic one.
Even in Editor mode (i.e. non-Playmode), it loads 2000+ scripts when I run it in the forked project. This function must return at least 1 script because at least you have compiled the source script itself, so the list will never be empty. Next, FirstOrDefault
will return null
in the worst case, and in this case, AssetDatabase.OpenAsset()
will do just nothing.But if you think that this option may break the way how developer should work with your asset, then I understand.
Hi again
By the way, you mentioned you modified IsSetCondition, can you tell me what exactly? If you think this is good general improvement, maybe it should be included by default? Same for other systems and nodes if you have some fairly simple ideas to implement, I can add them.
When you open the node menu using RMB, you can choose "Edit Script" to immediately open it in your code editor.