MaterialStyleSystem
MRSystem
MaterialStyleSystem ⇐ Handles style updates for all items.
Kind: global class
Extends: MRSystem
- MaterialStyleSystem ⇐
MRSystem
materialStyleSystem.MaterialStyleSystem
Kind: instance class of MaterialStyleSystem
new exports.MaterialStyleSystem()
StyleSystem’s default constructor with a starting framerate of 1/30.
materialStyleSystem._updateSpecificEntity()
The per entity triggered update call. Handles updating all 3D items to match whatever geometry/style is expected whether that be a 2D setup or a 3D change.
Kind: instance method of MaterialStyleSystem
materialStyleSystem.eventUpdate()
The per global scene event update call. Handles updating all 3D items to match whatever geometry/style is expected whether that be a 2D setup or a 3D change.
Kind: instance method of MaterialStyleSystem
materialStyleSystem.update(deltaTime, frame)
The per-frame system update call. Handles updating all 3D items to match whatever geometry/style is expected whether that be a 2D setup or a 3D change.
Kind: instance method of MaterialStyleSystem
Param | Type | Description |
---|---|---|
deltaTime | number |
given timestep to be used for any feature changes |
frame | object |
given frame information to be used for any feature changes |
materialStyleSystem.onNewEntity(entity)
Called when a new entity is added to the scene. Adds said new entity to the style’s system registry.
Kind: instance method of MaterialStyleSystem
Param | Type | Description |
---|---|---|
entity | MREntity |
the entity being added. |
materialStyleSystem.setBackground()
Sets the background based on compStyle and inputted css elements.
Kind: instance method of MaterialStyleSystem