Hi, I’m a game developer and I’m interested in making tools for my project to make the development fast and to have a bunch of tools to speed up future project but I don’t know where to start. Can someone help me?
Freya Holmér has a complete course for this: https://www.youtube.com/watch?v=pZ45O2hg_30
I have a short video on creating a quick Editor Window as well which covers some of the basics: https://youtu.be/QzMIi2gKB1A?si=MfEvnLxlp1loGSX8&t=18
Thank you so much. And can i build the game while those tools are implemented?
If they’re in a folder called Editor they get stripped out during build so you won’t need to worry about that. Otherwise you can wrap your code in ifdefs. I do this a lot when dealing with OnDrawGizmos() since that lives on my game objects. You also need to wrap the using statements in ifdefs as well (anything that uses UnityEditor namespace stuff needs to get wrapped). Like this:
#if UNITY_EDITOR
using UnityEditor;
#endif
using UnityEngine;
Wrapping your editor code in those is only necessary when the code doesn’t live in an Editor folder so you mostly need to worry about that when making gizmos for your game objects and your gizmos use editor stuff like Handles. Hopefully that helps, let me know if that doesn’t make sense.
