Actually for number 2, I have found a work around considering I misplace a lot of code. There is actually a way to search for behaviors in an object, and which object they’re in. If you place a “Set Behavior State” behavior, you can type in the name of your behavior through there and it will come up. As long as you remember what you’ve labeled it as, this can function as a make-shift search engine without taking hours of manual searching.
Set Behavior State is used to disable, enable, or execute behaviors, which means every behavior in your entire scene is listed there in alphabetical order. However, if you’ve deleted code or deleted an object, there is no way to recover this unless you have a cloud backup.
That’s why I have gotten in the habit of exporting my project’s file manually, either to another device or my Files app. This serves as a permanent backup that will immediately sync to your missing project with all files intact. It’d be even better if you place it in an iCloud folder.
Maybe in the future though, the search programming for Set Behavior State may be added to the main scene editor.