Represents the cull area used for network culling. More...
Inherits MonoBehaviour.
Public Member Functions | |
void | OnDrawGizmos () |
Creates the cell hierarchy in editor and draws the cell view. More... | |
List< byte > | GetActiveCells (Vector3 position) |
Gets a list of all cell IDs the player is currently inside or nearby. More... | |
Public Attributes | |
readonly byte | FIRST_GROUP_ID = 1 |
This represents the first ID which is assigned to the first created cell. If you already have some interest groups blocking this first ID, fell free to change it. However increasing the first group ID decreases the maximum amount of allowed cells. Allowed values are in range from 1 to 250. More... | |
readonly int[] | SUBDIVISION_FIRST_LEVEL_ORDER = new int[4] { 0, 1, 1, 1 } |
This represents the order in which updates are sent. The number represents the subdivision of the cell hierarchy: More... | |
readonly int[] | SUBDIVISION_SECOND_LEVEL_ORDER = new int[8] { 0, 2, 1, 2, 0, 2, 1, 2 } |
This represents the order in which updates are sent. The number represents the subdivision of the cell hierarchy: More... | |
readonly int[] | SUBDIVISION_THIRD_LEVEL_ORDER = new int[12] { 0, 3, 2, 3, 1, 3, 2, 3, 1, 3, 2, 3 } |
This represents the order in which updates are sent. The number represents the subdivision of the cell hierarchy: More... | |
Vector2 | Center |
Vector2 | Size = new Vector2(25.0f, 25.0f) |
Vector2[] | Subdivisions = new Vector2[MAX_NUMBER_OF_SUBDIVISIONS] |
int | NumberOfSubdivisions |
bool | YIsUpAxis = false |
bool | RecreateCellHierarchy = false |
Static Public Attributes | |
const int | MAX_NUMBER_OF_SUBDIVISIONS = 3 |
Properties | |
int | CellCount [get] |
CellTree | CellTree [get] |
Dictionary< int, GameObject > | Map [get] |
Represents the cull area used for network culling.
List<byte> GetActiveCells | ( | Vector3 | position | ) |
Gets a list of all cell IDs the player is currently inside or nearby.
position | The current position of the player. |
void OnDrawGizmos | ( | ) |
Creates the cell hierarchy in editor and draws the cell view.
readonly byte FIRST_GROUP_ID = 1 |
This represents the first ID which is assigned to the first created cell. If you already have some interest groups blocking this first ID, fell free to change it. However increasing the first group ID decreases the maximum amount of allowed cells. Allowed values are in range from 1 to 250.
readonly int [] SUBDIVISION_FIRST_LEVEL_ORDER = new int[4] { 0, 1, 1, 1 } |
This represents the order in which updates are sent. The number represents the subdivision of the cell hierarchy:
readonly int [] SUBDIVISION_SECOND_LEVEL_ORDER = new int[8] { 0, 2, 1, 2, 0, 2, 1, 2 } |
This represents the order in which updates are sent. The number represents the subdivision of the cell hierarchy:
readonly int [] SUBDIVISION_THIRD_LEVEL_ORDER = new int[12] { 0, 3, 2, 3, 1, 3, 2, 3, 1, 3, 2, 3 } |
This represents the order in which updates are sent. The number represents the subdivision of the cell hierarchy: