Exemplo n.º 1
0
    public static void ExportCSharpModel()
    {
        Transform[]      obj = Selection.transforms;
        ExportCSharpCode exp = new ExportCSharpCode();

        exp.ExportCSharpModel(obj[0].name);
        AssetDatabase.Refresh();
    }
Exemplo n.º 2
0
    public static void ExportCSharpView()
    {
        Transform[]      obj = Selection.transforms;
        ExportCSharpCode exp = new ExportCSharpCode();

        exp.AddFrame(obj[0].name);
        exp.AddContentArea(obj[0], "");
        exp.TidyAndOutput(obj[0].name + "View.cs");
        AssetDatabase.Refresh();
    }