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

Invisible non MonoBehaviour classes in DLL

Discussion in 'Editor & General Support' started by nemeth.balazs, Nov 14, 2012.

  1. nemeth.balazs

    nemeth.balazs

    Joined:
    Oct 22, 2012
    Posts:
    9
    I have tried to compile a DLL. With Monobehaviour classes work fine, but non Monobehaviors not visible.

    Compile command:

    mcs -r:"C:\Program Files (x86)\Unity\Editor\Data\Managed\UnityEngine.dll" -target:library -out:Fruits.dll Apple.cs Banana.cs AppleManager.cs BananaManager.cs

    Project attached.

    Help would be greatly appreciated
     

    Attached Files:

  2. alexzzzz

    alexzzzz

    Joined:
    Nov 20, 2010
    Posts:
    1,447
    Since BananaManager is not derived from MonoBehaviour, you can do nothing useful with it inside Unity IDE, so it's not shown
    $Captura.PNG

    But BananaManager doesn't disappear, it's still there and you can use it (as you do in Banana.cs)

    $Captura2.PNG