A fast 2D and 3D game engine — TypeScript SDK, C++/WebAssembly core, visual editor. Ship one project to web, desktop, WeChat MiniGames, playable ads, and native Android / iOS.
TypeScript 2d-game-engine3d3d-game-engineandroidcppecsgame-editorgame-enginegamedeviostypescriptwebassemblywebglwebgpuwechat-minigame
{
"version": "2",
"name": "Tooltip",
"rootEntityId": "0",
"entities": [
{
"prefabEntityId": "0",
"name": "Tooltip",
"parent": null,
"children": [],
"components": [
{
"type": "Transform",
"data": {
"position": {
"x": 0,
"y": 0,
"z": 0
},
"rotation": {
"w": 1,
"x": 0,
"y": 0,
"z": 0
},
"scale": {
"x": 1,
"y": 1,
"z": 1
},
"worldPosition": {
"x": 0,
"y": 0,
"z": 0
},
"worldRotation": {
"w": 1,
"x": 0,
"y": 0,
"z": 0
},
"worldScale": {
"x": 1,
"y": 1,
"z": 1
}
}
},
{
"type": "UINode",
"data": {
"position": 0,
"display": 0,
"opacity": 1,
"pointerEvents": 0,
"width": {
"value": 140,
"unit": 0
},
"height": {
"value": 36,
"unit": 0
},
"minWidth": {
"value": 0,
"unit": 2
},
"minHeight": {
"value": 0,
"unit": 2
},
"maxWidth": {
"value": 0,
"unit": 2
},
"maxHeight": {
"value": 0,
"unit": 2
},
"flexGrow": 0,
"flexShrink": 1,
"flexBasis": {
"value": 0,
"unit": 2
},
"alignSelf": 0,
"marginLeft": {
"value": 0,
"unit": 0
},
"marginTop": {
"value": 0,
"unit": 0
},
"marginRight": {
"value": 0,
"unit": 0
},
"marginBottom": {
"value": 0,
"unit": 0
},
"insetLeft": {
"value": 0,
"unit": 2
},
"insetTop": {
"value": 0,
"unit": 2
},
"insetRight": {
"value": 0,
"unit": 2
},
"insetBottom": {
"value": 0,
"unit": 2
}
}
},
{
"type": "UIVisual",
"data": {
"visualType": 1,
"texture": 0,
"color": {
"r": 0.22,
"g": 0.22,
"b": 0.26,
"a": 1
},
"fit": 0,
"uvOffset": {
"x": 0,
"y": 0
},
"uvScale": {
"x": 1,
"y": 1
},
"sliceBorder": {
"x": 0,
"y": 0,
"z": 0,
"w": 0
},
"tileSize": {
"x": 32,
"y": 32
},
"fillMethod": 0,
"fillOrigin": 0,
"fillAmount": 1,
"material": 0,
"enabled": true
}
},
{
"type": "Text",
"data": {
"content": "Tooltip",
"i18nKey": "",
"font": 0,
"fontFamily": "",
"fontSize": 14,
"color": {
"r": 0.92,
"g": 0.92,
"b": 0.94,
"a": 1
},
"align": 1,
"verticalAlign": 1,
"wordWrap": false,
"overflow": 0,
"lineHeight": 1.2,
"bold": false,
"italic": false,
"strokeColor": {
"r": 0,
"g": 0,
"b": 0,
"a": 1
},
"strokeWidth": 0,
"shadowColor": {
"r": 0,
"g": 0,
"b": 0,
"a": 1
},
"shadowBlur": 0,
"shadowOffsetX": 0,
"shadowOffsetY": 0,
"richText": false,
"renderMode": 0,
"layer": 0,
"boxWidth": 0,
"boxHeight": 0,
"boxPivot": {
"x": 0.5,
"y": 0.5
},
"enabled": true
}
},
{
"type": "ThemeStyle",
"data": {
"visual": "control",
"text": "text"
}
},
{
"type": "Interactable",
"data": {
"enabled": true,
"blockRaycast": true,
"raycastTarget": true
}
},
{
"type": "Focusable",
"data": {
"tabIndex": 0,
"isFocused": false
}
},
{
"type": "UITooltip",
"data": {
"content": "More information about this control.",
"stylePrefab": "",
"hover": true,
"focus": true,
"longPress": true,
"hoverDelay": 0.5,
"longPressDelay": 0.6,
"side": 0,
"gap": 8,
"avoidEdges": true,
"maxWidth": 240
}
}
],
"visible": true
}
]
}