Class AutoLayerRuleDefinition
This complex section isn't meant to be used by game devs at all, as these rules are
completely resolved internally by the editor before any saving. You should just ignore
this part.
Properties
|
Improve this Doc
View Source
Active
If FALSE, the rule effect isn't applied, and no tiles are generated.
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Alpha
Type |
Description |
System.Single |
|
|
Improve this Doc
View Source
BreakOnMatch
When TRUE, the rule will prevent other rules to be applied in the same cell if it matches
(TRUE by default).
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Chance
Chances for this rule to be applied (0 to 1)
Type |
Description |
System.Single |
|
|
Improve this Doc
View Source
Checker
Checker mode Possible values: None
, Horizontal
, Vertical
Type |
Description |
LDtkUnity.Checker |
|
|
Improve this Doc
View Source
FlipX
If TRUE, allow rule to be matched by flipping its pattern horizontally
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
FlipY
If TRUE, allow rule to be matched by flipping its pattern vertically
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
Invalidated
If TRUE, then the rule should be re-evaluated by the editor at one point
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
OutOfBoundsValue
Default IntGrid value when checking cells outside of level bounds
Type |
Description |
System.Nullable<System.Int32> |
|
|
Improve this Doc
View Source
Pattern
Rule pattern (size x size)
Type |
Description |
System.Int32[] |
|
|
Improve this Doc
View Source
PerlinActive
If TRUE, enable Perlin filtering to only apply rule on specific random area
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
PerlinOctaves
Type |
Description |
System.Single |
|
|
Improve this Doc
View Source
PerlinScale
Type |
Description |
System.Single |
|
|
Improve this Doc
View Source
PerlinSeed
Type |
Description |
System.Single |
|
|
Improve this Doc
View Source
PivotX
X pivot of a tile stamp (0-1)
Type |
Description |
System.Single |
|
|
Improve this Doc
View Source
PivotY
Y pivot of a tile stamp (0-1)
Type |
Description |
System.Single |
|
|
Improve this Doc
View Source
Size
Pattern width and height. Should only be 1,3,5 or 7.
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
TileIds
WARNING: this deprecated value is no longer exported since version 1.5.0 Replaced
by: tileRectsIds
Type |
Description |
System.Int32[] |
|
|
Improve this Doc
View Source
TileMode
Defines how tileIds array is used Possible values: Single
, Stamp
Type |
Description |
LDtkUnity.TileMode |
|
|
Improve this Doc
View Source
TileRandomXMax
Max random offset for X tile pos
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
TileRandomXMin
Min random offset for X tile pos
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
TileRandomYMax
Max random offset for Y tile pos
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
TileRandomYMin
Min random offset for Y tile pos
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
TileRectsIds
Array containing all the possible tile IDs rectangles (picked randomly).
Type |
Description |
System.Int32[][] |
|
|
Improve this Doc
View Source
TileXOffset
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
TileYOffset
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
Uid
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
UnityModulo
Type |
Description |
UnityEngine.Vector2Int |
Cell coord modulo
|
|
Improve this Doc
View Source
UnityOffset
Type |
Description |
UnityEngine.Vector2Int |
Cell start offset
|
|
Improve this Doc
View Source
UnityPivot
Type |
Description |
UnityEngine.Vector2 |
Pivot of a tile stamp (0-1)
|
|
Improve this Doc
View Source
UnityTileRandomMax
Type |
Description |
UnityEngine.Vector2Int |
Max random offset for tile pos
|
|
Improve this Doc
View Source
UnityTileRandomMin
Type |
Description |
UnityEngine.Vector2Int |
Min random offset for tile pos
|
|
Improve this Doc
View Source
XModulo
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
XOffset
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
YModulo
Type |
Description |
System.Int32 |
|
|
Improve this Doc
View Source
YOffset
Type |
Description |
System.Int32 |
|