Class SmartMaterialInitializer
Inheritance
object
SmartMaterialInitializer
Assembly: .dll
Syntax
public class SmartMaterialInitializer : InitializationMethod
Constructors
|
Edit this page
View Source
SmartMaterialInitializer(ParticleSystem)
Declaration
public SmartMaterialInitializer(ParticleSystem system)
Parameters
Methods
|
Edit this page
View Source
Generate(int, int, int, bool)
Declaration
public void Generate(int scale = 2, int rows = 2, int cols = 2, bool hexagonShape = false)
Parameters
Type |
Name |
Description |
int |
scale |
|
int |
rows |
|
int |
cols |
|
bool |
hexagonShape |
|
|
Edit this page
View Source
GetNeighborHexPos(Vector2Int, Direction, int, int)
Declaration
private Vector2Int GetNeighborHexPos(Vector2Int pos, Direction direction, int scale, int distance = 1)
Parameters
Type |
Name |
Description |
Vector2Int |
pos |
|
Direction |
direction |
|
int |
scale |
|
int |
distance |
|
Returns
Type |
Description |
Vector2Int |
|
|
Edit this page
View Source
PlaceHexagon(Vector2Int, int, bool)
Declaration
private void PlaceHexagon(Vector2Int position, int scale, bool type2 = false)
Parameters
Type |
Name |
Description |
Vector2Int |
position |
|
int |
scale |
|
bool |
type2 |
|
|
Edit this page
View Source
PlaceHexagonShape(int, int)
Declaration
private void PlaceHexagonShape(int scale, int size)
Parameters
Type |
Name |
Description |
int |
scale |
|
int |
size |
|
|
Edit this page
View Source
PlaceParallelogram(int, int, int)
Declaration
private void PlaceParallelogram(int scale, int rows, int cols)
Parameters
Type |
Name |
Description |
int |
scale |
|
int |
rows |
|
int |
cols |
|