Class: Textag

Textag(ecs, x)

new Textag(ecs, x)

Parameters:
Name Type Description
ecs ECS
x x

{options, ...}

Source:

Members

(static) taguuid

For generating uuid.

Source:

Methods

(static) createTags(texts, options) → {array.<object>}

Parameters:
Name Type Description
texts array.<{text: string, pos: array}>

[].pos position in xworld

options obejct

tagsize {array}: plane geometry, [width, height];
textbox {object}: x, y, size, same as XComponent.Dynatex.xywh, default {x: 0, y: 0, size: 32};
lookScreen {bool}: facing screen;
offset {array}: [x, y, z] offset to text position;
svg-assets: {asset: url, nodes: [string]}}

Source:
Returns:

entitie definitions

Type
array.<object>

(static) tagUuid()

Get a tag entity id.

Source: