Skip to main content

Introduction

The Circular Placement component creates a set of rings around an object for object placement.

"Circular Placement"

Fields#

NameDescription
Draw GizmosShould we draw Gizmos in the editor?
Placement RadiusWhat is the radius of objects to place?
Placement OffsetWhat offset should we apply during placement?
Placement MaskWhat layers should we use to check if a space is free?
GroundIf you supply a ground object items can be placed on top of it
RingsList of rings for placement

Properties#

NameDescription
AllRelativeLocationsList of all locations
ClaimedRelativeLocationsList of locations claimed or reserved

Methods#

NameDescription
GetFirstFreePositionGets first available position, returns Vector3.zero if not spots available
GetRandomFreePositionFinds a random free position, returns Vector3.zero if not spots available
GetRandomFreePositionsFinds a list of random free positions