Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    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