Photon Quantum 3.0.0

Static Public Member Functions | Public Attributes | List of all members
Quantum.NavMeshBakeDataTriangle Struct Reference

Triangles are expected to have clock-wise winding order. Not all fields have to be filled out. Some of them are only needed for the legacy navmesh drawing tool. More...

Static Public Member Functions

static void Serialize (ByteStream stream, bool write, ref NavMeshBakeDataTriangle instance)
 Asset serialization. More...
 

Public Attributes

int Area
 Unused. More...
 
FP Cost
 The cost of the triangle. Default should be FP._1. More...
 
String RegionId
 The region that this triangle belongs to. Default is null. More...
 
Int32[] VertexIds
 Must have length of 3. The referenced vertices as indices into the vertex array. More...
 

Detailed Description

Triangles are expected to have clock-wise winding order. Not all fields have to be filled out. Some of them are only needed for the legacy navmesh drawing tool.

Member Function Documentation

◆ Serialize()

static void Quantum.NavMeshBakeDataTriangle.Serialize ( ByteStream  stream,
bool  write,
ref NavMeshBakeDataTriangle  instance 
)
inlinestatic

Asset serialization.

Parameters
streamInput stream
writeWrite or read
instanceInstance to serialize

Member Data Documentation

◆ VertexIds

Int32 [] Quantum.NavMeshBakeDataTriangle.VertexIds

Must have length of 3. The referenced vertices as indices into the vertex array.

◆ RegionId

String Quantum.NavMeshBakeDataTriangle.RegionId

The region that this triangle belongs to. Default is null.

◆ Cost

FP Quantum.NavMeshBakeDataTriangle.Cost

The cost of the triangle. Default should be FP._1.

◆ Area

int Quantum.NavMeshBakeDataTriangle.Area

Unused.