正在准备搜索索引...
搜索索引不可用
LayaAir3引擎API
LayaAir3引擎API
laya/tilemap/TileSetCellGroup
TileSetCellGroup
类 TileSetCellGroup
索引
构造函数
constructor
属性
_max
Alternatives
Count
_owner
id
name
访问器
atlas
atlas
Size
margin
owner
separation
texture
Region
Size
tiles
方法
_get
Cell
Pos
By
Alternatives
Id
_get
Global
Alternatives
Id
_get
Tile
Pixel
Orgin
_get
TileUVExtends
_recaculateUVOri
Property
add
Alternaltive
get
Alternative
get
Cell
Data
get
Cell
Data
By
Index
on
Atlas
Size
Change
release
remove
Alternaltive
remove
Cell
Data
构造函数
constructor
new
Tile
Set
Cell
Group
(
)
:
TileSetCellGroup
返回
TileSetCellGroup
属性
_max
Alternatives
Count
_max
Alternatives
Count
:
number
= 0
_owner
_owner
:
TileSet
id
id
:
number
创建时固定
name
name
:
string
访问器
atlas
get
atlas
(
)
:
Texture2D
返回
Texture2D
set
atlas
(
value
)
:
void
参数
value
:
Texture2D
返回
void
atlas
Size
get
atlasSize
(
)
:
Vector2
返回
Vector2
set
atlasSize
(
value
)
:
void
参数
value
:
Vector2
返回
void
margin
get
margin
(
)
:
Vector2
返回
Vector2
set
margin
(
value
)
:
void
参数
value
:
Vector2
返回
void
owner
get
owner
(
)
:
TileSet
返回
TileSet
set
owner
(
value
)
:
void
参数
value
:
TileSet
返回
void
separation
get
separation
(
)
:
Vector2
返回
Vector2
set
separation
(
value
)
:
void
参数
value
:
Vector2
返回
void
texture
Region
Size
get
textureRegionSize
(
)
:
Vector2
每个块的大小
返回
Vector2
set
textureRegionSize
(
value
)
:
void
参数
value
:
Vector2
返回
void
tiles
get
tiles
(
)
:
Record
<
number
,
Record
<
number
,
TileAlternativesData
>
>
返回
Record
<
number
,
Record
<
number
,
TileAlternativesData
>
>
set
tiles
(
value
)
:
void
参数
value
:
Record
<
number
,
Record
<
number
,
TileAlternativesData
>
>
返回
void
方法
_get
Cell
Pos
By
Alternatives
Id
_get
Cell
Pos
By
Alternatives
Id
(
nativeIndex
,
out
)
:
void
参数
nativeIndex
:
number
out
:
Vector2
返回
void
_get
Global
Alternatives
Id
_get
Global
Alternatives
Id
(
x
,
y
)
:
number
参数
x
:
number
y
:
number
返回
number
_get
Tile
Pixel
Orgin
_get
Tile
Pixel
Orgin
(
localPos
,
out
)
:
Vector2
获取瓦片的像素起始点
参数
localPos
:
Vector2
out
:
Vector2
返回
Vector2
_get
TileUVExtends
_get
TileUVExtends
(
size
,
out
)
:
Vector2
参数
size
:
Vector2
out
:
Vector2
返回
Vector2
_recaculateUVOri
Property
_recaculateUVOri
Property
(
needNotiveCell
)
:
void
参数
needNotiveCell
:
boolean
返回
void
add
Alternaltive
add
Alternaltive
(
x
,
y
,
sizeInAtlas
)
:
TileAlternativesData
参数
x
:
number
y
:
number
sizeInAtlas
:
Vector2
返回
TileAlternativesData
get
Alternative
get
Alternative
(
x
,
y
)
:
TileAlternativesData
参数
x
:
number
y
:
number
返回
TileAlternativesData
get
Cell
Data
get
Cell
Data
(
localPos
,
index
)
:
TileSetCellData
参数
localPos
:
Vector2
index
:
number
返回
TileSetCellData
get
Cell
Data
By
Index
get
Cell
Data
By
Index
(
nativeIndex
,
cellIndex
)
:
TileSetCellData
参数
nativeIndex
:
number
cellIndex
:
number
返回
TileSetCellData
on
Atlas
Size
Change
on
Atlas
Size
Change
(
)
:
void
返回
void
release
release
(
)
:
void
返回
void
remove
Alternaltive
remove
Alternaltive
(
localPos
)
:
void
参数
localPos
:
Vector2
返回
void
remove
Cell
Data
remove
Cell
Data
(
localPos
,
index
)
:
void
参数
localPos
:
Vector2
index
:
number
返回
void
切换版本:
显示设置
成员可见性
继承
外部
配色
自动
浅色
深色
目录
构造函数
constructor
属性
_max
Alternatives
Count
_owner
id
name
访问器
atlas
atlas
Size
margin
owner
separation
texture
Region
Size
tiles
方法
_get
Cell
Pos
By
Alternatives
Id
_get
Global
Alternatives
Id
_get
Tile
Pixel
Orgin
_get
TileUVExtends
_recaculateUVOri
Property
add
Alternaltive
get
Alternative
get
Cell
Data
get
Cell
Data
By
Index
on
Atlas
Size
Change
release
remove
Alternaltive
remove
Cell
Data
LayaAir3引擎API
加载中……
创建时固定