TextEntry¶
テキスト要素
Animation Binding¶
| Name | Type |
|---|---|
| position | vector3 |
| font_style | string |
| font_weight | string |
| font_size | number |
| color | vector3 |
| stroke_color | vector3 |
| stroke_width | number |
| text | string |
Extends¶
Constructors¶
new TextEntry()¶
new TextEntry(
owner,text,position,props):TextEntry
Parameters¶
| Parameter | Type | Description |
|---|---|---|
owner |
TextEntity |
所有者 |
text |
string |
テキスト |
position |
GeoPoint |
位置 |
props |
EntryOption |
プロパティ |
Returns¶
Overrides¶
Accessors¶
animation¶
getanimation():BindingBlock
アニメーションパラメータ設定
Returns¶
bg_color¶
getbg_color():Vector4
Summary¶
背景色
Package¶
Returns¶
enable_stroke¶
getenable_stroke():boolean
Summary¶
縁を描画するか
Package¶
Returns¶
boolean
id¶
getid():string
ID
Returns¶
string
pixel_offset¶
getpixel_offset():Vector2
オフセット量(ピクセル単位)。 0番目の要素は画面右方向、1番目の様相は画面上方向です。
Returns¶
text¶
gettext():string
Summary¶
テキスト
Package¶
Returns¶
string
Methods¶
setColor()¶
setColor(
color):void
テキストの色を設定
Parameters¶
| Parameter | Type | Description |
|---|---|---|
color |
Vector4 | Vector3 |
テキストの色 |
Returns¶
void
setEnableStroke()¶
setEnableStroke(
enable):void
テキスト縁を有効にするかどうか
Parameters¶
| Parameter | Type | Description |
|---|---|---|
enable |
boolean |
trueなら有効 |
Returns¶
void
setFontSize()¶
setFontSize(
size):void
フォントの大きさを設定
Parameters¶
| Parameter | Type | Description |
|---|---|---|
size |
number |
フォントの大きさ (Pixels) |
Returns¶
void
setFontStyle()¶
setFontStyle(
style):void
フォントスタイルを設定
Parameters¶
| Parameter | Type | Description |
|---|---|---|
style |
FontStyle |
フォントスタイル |
Returns¶
void
setFontWeight()¶
setFontWeight(
weight):void
フォントの太さを設定
Parameters¶
| Parameter | Type | Description |
|---|---|---|
weight |
FontWeight |
フォントの太さ |
Returns¶
void
setPosition()¶
setPosition(
position):void
テキスト原点位置を設定
Parameters¶
| Parameter | Type | Description |
|---|---|---|
position |
GeoPoint |
テキスト原点の位置 |
Returns¶
void
setStrokeColor()¶
setStrokeColor(
color):void
テキスト縁の色を設定
Parameters¶
| Parameter | Type | Description |
|---|---|---|
color |
Vector4 | Vector3 |
縁の色 |
Returns¶
void
setStrokeLineWidth()¶
setStrokeLineWidth(
width):void
テキスト縁の太さを設定
Parameters¶
| Parameter | Type | Description |
|---|---|---|
width |
number |
縁の線幅 |
Returns¶
void
setText()¶
setText(
text):void
テキストを設定
Parameters¶
| Parameter | Type | Description |
|---|---|---|
text |
string |
テキスト |
Returns¶
void