type(...)
Studio is being deprecated, please head over to the documentation page for Mattercraft, our most advanced 3D tool for the web, where you can find the most recent information and tutorials.
type(val: ObjectType): this;
type(val: string): this;
Sets the Z.ObjectType for this object.
Parameters
Section titled “Parameters”Parameter | Type | Description |
---|---|---|
val | Z.ObjectType or string | The object type to set. If val is a string then a Z.ObjectType will be constructed, interpreting the string as a filename or URL. |
Returns
Section titled “Returns”this