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(entity)
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
Param | Type | Description |
---|---|---|
entity | object |
the MREntity being updated. |
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 | object |
the MREntity being touched by this function. |
materialStyleSystem.setBackground(entity)
Sets the background based on compStyle and inputted css elements.
Kind: instance method of MaterialStyleSystem
Param | Type | Description |
---|---|---|
entity | object |
the MREntity being updated. |
materialStyleSystem.setVisibility(entity)
Sets the visibility of the MREntity based on its css ‘visibility’ property.
Kind: instance method of MaterialStyleSystem
Param | Type | Description |
---|---|---|
entity | object |
the MREntity being updated. |