Variables
Const CanvasClearFlag
Canvas
ClearFlag: { DEPTH_ONLY: GFXClearFlag; DONT_CLEAR: GFXClearFlag; SOLID_COLOR: GFXClearFlag } = Enum({SOLID_COLOR: GFXClearFlag.ALL,DEPTH_ONLY: GFXClearFlag.DEPTH_STENCIL,DONT_CLEAR: GFXClearFlag.NONE,})
Const EPSILON
EPSILON: 0.0001 = 0.0001
Const GETTING_SHORTER_FACTOR
GETTING_SHORTER_FACTOR: 20 = 20
Const LEFT_PADDING
LEFT_PADDING: 2 = 2
Const LEFT_RIGHT
LEFT_RIGHT: number = AlignFlags.LEFT | AlignFlags.RIGHT
Const MOVEMENT_FACTOR
MOVEMENT_FACTOR: 0.7 = 0.7
Const NUMBER_OF_GATHERED_TOUCHES_FOR_MOVE_SPEED
NUMBER_OF_GATHERED_TOUCHES_FOR_MOVE_SPEED: 5 = 5
Const OUT_OF_BOUNDARY_BREAKING_FACTOR
OUT_OF_BOUNDARY_BREAKING_FACTOR: 0.05 = 0.05
Const RenderMode
RenderMode: { INTERSPERSE: number; OVERLAY: number } = Enum({OVERLAY: 0,INTERSPERSE: 1,})
Type declaration
-
INTERSPERSE: number
-
OVERLAY: number
Const RichTextChildImageName
RichTextChildImageName: "RICHTEXT_Image_CHILD" = "RICHTEXT_Image_CHILD"
Const RichTextChildName
RichTextChildName: "RICHTEXT_CHILD" = "RICHTEXT_CHILD"
Const SEGMENTS_MAX
SEGMENTS_MAX: 10000 = 10000
Const SEGMENTS_MIN
SEGMENTS_MIN: 3 = 3
Const TOLERANCE
TOLERANCE: 10000 = 10000
Const TOP_BOT
TOP_BOT: number = AlignFlags.TOP | AlignFlags.BOT
Const _circlePoints
_circle
Points: Vec3[] = []
Const _color
_color
: Color = new Color()
Const _htmlTextParser
_htmlTextParser: HtmlTextParser = new HtmlTextParser()
Const _mat4_temp
_mat4_
temp: Mat4 = new Mat4()
Const _mat4_temp
_mat4_
temp: Mat4 = new Mat4()
Const _matrix
_matrix
: Mat4 = new Mat4()
Const _tempColor
_temp
Color: Color = new Color()
Const _tempColor
_temp
Color: Color = new Color()
Const _tempPos
_temp
Pos: Vec3 = new Vec3()
Const _tempPos
_temp
Pos: Vec3 = new Vec3()
Const _tempPos_1
_temp
Pos_1: Vec3 = new Vec3()
Const _tempPos_2
_temp
Pos_2: Vec3 = new Vec3()
Const _tempScale
_temp
Scale: Vec3 = new Vec3()
Const _tempVec2
_temp
Vec2: Vec2 = new Vec2()
Const _tempVec2_1
_temp
Vec2_1: Vec2 = new Vec2()
Const _tempVec3
_temp
Vec3: Vec3 = new Vec3()
Const _tempVec3_1
_temp
Vec3_1: Vec3 = new Vec3()
Const _temp_vec2
_temp_
vec2: Vec2 = new Vec2()
Const _vec2_temp
_vec2_
temp: Vec2 = new Vec2()
Const _vec2a
_vec2a
: Vec2 = new Vec2()
Const _vec2b
_vec2b
: Vec2 = new Vec2()
Const _worldMatrix
_world
Matrix: Mat4 = new Mat4()
Const _worldMatrix
_world
Matrix: Mat4 = new Mat4()
Const _worldPos
_world
Pos: Vec3 = new Vec3()
Const _zeroMatrix
_zero
Matrix: Mat4 = new Mat4(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0)
Const _zeroVec3
_zero
Vec3: Vec3 = new Vec3()
Const defaultAnchor
default
Anchor: Vec2 = new Vec2()
Const pool
pool
: Pool<ILabelSegment> = new Pool((labelSeg: ILabelSegment) => {if (EDITOR) {return false;}if (DEV) {assert(!labelSeg.node.parent, 'Recycling node\'s parent should be null!');}if (!legacyCC.isValid(labelSeg.node)) {return false;}else {let outline = labelSeg.node.getComponent(LabelOutline);if (outline) {outline.width = 0;}}return true;}, 20)
富文本池。