public override void OnInspectorGUI() { base.OnInspectorGUI(); if (GUILayout.Button("Button")) { RotModel obj = (RotModel)target; ObjExporter.MeshToFile(obj.Gc <MeshFilter>(), "Assets/" + obj.name + ".obj"); } }
void OnEnable() { model = (RotModel)target; }
/// <summary> /// 设置旋转模式 /// </summary> /// <param name="modle"></param> /// <returns></returns> public RotationAction SetRotModle(RotModel modle) { mRotModle = modle; return(this); }