Class ObjectPlacer Extends MonoBehaviour

Public

Small sample script for placing obstacles.

Public Methods

PlaceObject ()
Public
RemoveObject ()
Public

Public Variables

alignToSurface

Align created objects to the surface normal where it is created.

Public
direct

Flush Graph Updates directly after placing.

Public
go

GameObject to place.

Public
issueGUOs

Issue a graph update object after placement.

Public
offset

Global offset of the placed object relative to the mouse cursor.

Public
randomizeRotation

Randomize rotation of the placed object.

Public

Private/Protected Members

Update ()

Update is called once per frame.

Private
lastPlacedTime
Private