Show / Hide Table of Contents

Class RoomInfoBase<TRoomInstance>

This component contains information about a single room in the generated level.

Inheritance
System.Object
RoomInfoBase<TRoomInstance>
RoomInfoGrid2D
RoomInfoGrid3D
Namespace: Edgar.Unity
Assembly: cs.temp.dll.dll
Syntax
public abstract class RoomInfoBase<TRoomInstance> : MonoBehaviour
Type Parameters
Name Description
TRoomInstance
Remarks

The component is attached to the root game object of the corresponding room template instance. Room template game objects are places inside the root game object of the generated level.

Example usage: After a level is generated, you can get the RoomInstance of the corresponding room template. After a level is generated, you can peek the data assigned to the room template, e.g. its position.

Fields

RoomInstance

Declaration
public TRoomInstance RoomInstance
Field Value
Type Description
TRoomInstance
In This Article
Back to top Generated by DocFX