ModAPI SDK v2.5.203
Several improvements to classes EditorRigblock
, EditorModel
, cEditorResource
, EditorBaseHandle
, TuningSpine
. Apart from completing the structure and fields of these classes, several interesting methods have been added related to editor models. An example of what you can do:
auto resource = new Editors::cEditorResource();
Editor.GetEditorModel()->Save(resource);
// ...
// Later:
auto model = new Editors::EditorModel();
model->Load(resource);
Editor.SetEditorModel(model);
This saves the current creation into the resource
object. That creation can be later restored in the editor creating a new model
, loading the resource
and setting it in the Editor.