内部使用。
The option for build the primitive mesh, set it before you call onLoaded.
The type of the primitive mesh, set it before you call onLoaded.
The index of the joint buffer of all sub meshes in the joint map buffers
Clear all references in the instance.
NOTE: this method will not clear the getter or setter functions which defined in the instance of CCObject. You can override the _destruct method if you need, for example: _destruct: function () { for (var key in this) { if (this.hasOwnProperty(key)) { switch (typeof this[key]) { case 'string': this[key] = ''; break; case 'object': case 'function': this[key] = null; break; } } }
The new struct
The new data
Sub mesh index
Attribute name
The target array buffer
Byte distance between two attributes in the target buffer
The offset of the first attribute in the target buffer
Return false if failed to access attribute, return true otherwise.
Sub mesh index
The target output array
Return false if failed to access the indices data, return true otherwise.
event type
Event type.
Callback function when event triggered.
Callback callee.
A string representing the event type to listen for.
The callback that will be invoked when the event is dispatched. The callback is ignored if it is a duplicate (the callbacks are unique).
The target (this object) to invoke the callback, can be null
Construct the primitive mesh with type
and info
.
A string representing the event type to listen for.
The callback that will be invoked when the event is dispatched. The callback is ignored if it is a duplicate (the callbacks are unique).
Sub mesh index
Attribute name
Return null if not found or can't read, otherwise, will create a large enough typed array to contain all data of the attribute, the array type will match the data type of the attribute.
Sub mesh index
Return null if not found or can't read, otherwise, will create a large enough typed array to contain all indices data, the array type will use the corresponding stride size.
The event type or target with which the listeners will be removed
Mesh creation information including struct and data
应 AssetDB 要求提供这个方法。 返回一个序列化后的对象
The target to be searched for all related listeners
The other mesh to be validated
应 AssetDB 要求提供这个方法。
内部使用。
Generated using TypeDoc
Basic primitive mesh, this can be generate some primitive mesh at runtime.