Skip to main content
Version: 3.7

Procedural DungeonDungeon Graph ⏵ Get Random Room

Get Random Room

Class: Dungeon Graph
Category: Dungeon Graph

Description

Returns a random room from an array of room

Node

C++

URoom* GetRandomRoom(const TArray<URoom*>& RoomList) const

Inputs

NameTypeDescription
TargetDungeon Graph Object Reference
Room ListArray of Room Object References

Outputs

NameTypeDescription
Return ValueRoom Object ReferenceReturns a random room from an array of room