Great tip. If I may expand one bit... Some code cannot process in the editor. Your access to Autoload functions, for example, is not present when you are in the editor mode. Any routine that needs resources that are not available in the editor can exit early by checking this: if Engine.is_editor_hint(): return # Stop executing code if running in the editor In any functions that you have in the editor, just be sure to throw this check in and bail out of the function before it hits the parts the editor won't be able to handle. Thanks for the great tips!
Thanks for the nice - and super interesting! - comment :) I kept the video short and lightweight, but those are definitely very cool tricks to keep in mind... and I might steal a couple from your list here for a future episode ;) Cheers!
Amazing! I learn something new every day!
Great tip. If I may expand one bit... Some code cannot process in the editor. Your access to Autoload functions, for example, is not present when you are in the editor mode. Any routine that needs resources that are not available in the editor can exit early by checking this:
if Engine.is_editor_hint():
return # Stop executing code if running in the editor
In any functions that you have in the editor, just be sure to throw this check in and bail out of the function before it hits the parts the editor won't be able to handle.
Thanks for the great tips!
Thanks for the nice - and super interesting! - comment :)
I kept the video short and lightweight, but those are definitely very cool tricks to keep in mind... and I might steal a couple from your list here for a future episode ;)
Cheers!
Okay, you saved me a LOT of time now that I was working with procedural geometry. Thank you so much!
Glad I could help! Thanks for the nice comment :)
Thank you for the tip!
Happy to help, thanks for the nice comment! :)
Well, its not a REPL, but its a start.
neat