示例#1
0
    static public void Init()
    {
        ExportInfo oComponent = new ExportInfo(typeof(Component));

        oComponent.AddProperty("gameObject");
        oComponent.AddProperty("transform");
        oComponent.AddProperty("tag");
        _ExportClass.Add(oComponent);

        ExportInfo oGameObject = new ExportInfo(typeof(GameObject));

        oGameObject.AddProperty("activeInHierarchy");
        oGameObject.AddProperty("layer");
        oGameObject.AddProperty("transform");
        oGameObject.AddProperty("name");
        _ExportClass.Add(oGameObject);

        ExportInfo oTransforminfo = new ExportInfo(typeof(Transform));

        oTransforminfo.AddProperty("eulerAngles");
        oTransforminfo.AddProperty("forward");
        oTransforminfo.AddProperty("position");
        oTransforminfo.AddProperty("rotation");
        oTransforminfo.AddProperty("parent");
        _ExportClass.Add(oTransforminfo);

        ExportInfo oVector3info = new ExportInfo(typeof(Vector3));

        oVector3info.AddField("x");
        oVector3info.AddField("y");
        oVector3info.AddField("z");
        _ExportClass.Add(oVector3info);
    }