Search Unity

Assembly.load and [Serializable] not work

Discussion in 'Scripting' started by SmileFox, Dec 19, 2014.

  1. SmileFox

    SmileFox

    Joined:
    Jul 22, 2014
    Posts:
    1
    In Game.dll
    [Serializable]
    public class ABC
    {
    public int a = 1;
    }

    ABCBehaviour : MonoBehaviour
    {
    public ABC data = new ABC();
    }

    when In My Unity Project I call Assembly.load("Game.dll"),then Load the asset which attached ABCBehaviour.
    However,When the asset Loaded Class ABC is null.
    Who can help me,Thanks!