You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sollace edited this page Apr 18, 2020
·
2 revisions
Mson models are defined through json files (gasp, I know!). Every model registered has to have an associated json file, normally placed under namespace:models/modelname.json similar to the model files found in vanilla.
The root body is a json object with the following attributes (all of which are optional):
Attributes
Attribute Name
Attribute Type
Default Value
Description
parent
identifier
{none}
identifier of the parent of this model. Parents need not be a registered model.
scale
number
0
The base scale value for the entire model. This is used for the stretch parameter on components that support it and will be added to whatever value they define.
texture
texture
[0, 0, 0, 0]
Defines the texture u, v, w, and h for this model. #see Textures for more details.
locals
object
{}
An object defining all the variables declared by this file. #See Variables for more details.
Elements
Since all the elements in a root model need to be named, you any attributes not listed in the table above will be assumed to be a mson:compound (or other parent component