Photon Quantum 3.0.0

Public Member Functions | Public Attributes | List of all members
Quantum.MapStaticCollider2DPolygonData Class Reference

Stores 2D polygon collider data used on static collider MapStaticCollider2D. More...

Public Member Functions

void Disposed (Native.Allocator allocator)
 The asset dispose callback to release memory. More...
 
void Loaded (Native.Allocator allocator)
 The asset loaded callback to initialize runtime data. Must be called from Map.Loaded(IResourceManager, Native.Allocator). More...
 

Public Attributes

FPVector2[] Normals = Array.Empty<FPVector2>()
 Vertex normals stored in an array. More...
 
FPVector2[] Vertices = Array.Empty<FPVector2>()
 The vertex array. More...
 

Detailed Description

Stores 2D polygon collider data used on static collider MapStaticCollider2D.

Member Function Documentation

◆ Loaded()

void Quantum.MapStaticCollider2DPolygonData.Loaded ( Native.Allocator  allocator)
inline

The asset loaded callback to initialize runtime data. Must be called from Map.Loaded(IResourceManager, Native.Allocator).

Parameters
allocatorMemory allocator

◆ Disposed()

void Quantum.MapStaticCollider2DPolygonData.Disposed ( Native.Allocator  allocator)
inline

The asset dispose callback to release memory.

Parameters
allocatorMemory allocator

Member Data Documentation

◆ Vertices

FPVector2 [] Quantum.MapStaticCollider2DPolygonData.Vertices = Array.Empty<FPVector2>()

The vertex array.

◆ Normals

FPVector2 [] Quantum.MapStaticCollider2DPolygonData.Normals = Array.Empty<FPVector2>()

Vertex normals stored in an array.