Search Unity

Unity (or possibly Visual Studio) appending '1 to name of generic class's script when importing DLL

Discussion in 'Scripting' started by Jallen182, Jul 31, 2014.

  1. Jallen182

    Jallen182

    Joined:
    Aug 21, 2012
    Posts:
    97
    I have a C# DLL I'm trying to import as a plugin from a Visual Studio project I've been working on. Everything works great and the scripts work but for some reason all my generic classes have a '1 appended to them. For example, this class:

    Code (csharp):
    1. public class CustomInspector<T> : Editor
    2. {
    3.  
    4. }
    is imported as:
    Example.png

    Anyone encountered this before? Everything is functioning properly and there are no errors when importing, I just think it's strange that generic classes would have their file names appended to.
     
  2. numberkruncher

    numberkruncher

    Joined:
    Feb 18, 2012
    Posts:
    953
  3. jnoffke

    jnoffke

    Joined:
    Nov 26, 2013
    Posts:
    31
  4. Jallen182

    Jallen182

    Joined:
    Aug 21, 2012
    Posts:
    97
    Just tested it and that works. Thanks for the info!