Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

C#: Include Custom Editor features for a custom Classes while avoiding dependencies?

Discussion in 'Immediate Mode GUI (IMGUI)' started by S_Darkwell, Jul 8, 2017.

  1. S_Darkwell

    S_Darkwell

    Joined:
    Oct 20, 2013
    Posts:
    320
    Hello,

    First, apologies if this has already been answered, but my searches have failed me.

    My question: How would one approach creating a custom Editor tool with support for custom classes, without creating a dependency on said classes?

    I'm creating a code generation tool, and wish support a various custom classes (Int3, IntCurve, etc.). If the classes are present, they will require editor scripts to process them and will need to be include in a handful of arrays.

    What are best-practices for a situation like this?

    In other situations, I've used partial classes, but I've been unable to structure this tool in such a way that would work.

    Thank you all in advance! Be well!

    - S.
     
    Last edited: Jul 8, 2017