Tanoda
GILES.pb_ObjectEditor Class Reference
Inheritance diagram for GILES.pb_ObjectEditor:
GILES.pb_SceneEditor

Public Member Functions

override void OnEnable ()
 
override void OnHandleBegin (pb_Transform transform)
 
override void OnHandleMove (pb_Transform transform)
 
override void OnGUI ()
 
override void OnMouseMove ()
 
override void OnMouseDown ()
 
override void OnMouseUp ()
 
override void OnKeyDown ()
 
override void OnSelectionChange (IEnumerable< GameObject > added)
 
override void OnFrameSelection ()
 
override bool EnableCameraControls ()
 
- Public Member Functions inherited from GILES.pb_SceneEditor
void OnKeyDownBase ()
 
virtual void Update ()
 
virtual void OnGUI ()
 
virtual void OnMouseDown ()
 
virtual void OnMouseMove ()
 
virtual void OnMouseUp ()
 
virtual void OnHandleBegin (pb_Transform transform)
 
virtual void OnHandleMove (pb_Transform transform)
 
virtual void OnHandleFinish ()
 
virtual void OnKeyDown ()
 
virtual void OnFrameSelection ()
 
virtual void OnEnable ()
 
virtual void OnDisabled ()
 
virtual void OnSelectionChange (IEnumerable< GameObject > added)
 
virtual bool EnableCameraControls ()
 
virtual bool IsMouseInUse ()
 

Public Attributes

Color dragRectColor = new Color(0f, .75f, 1f, .6f)
 
- Public Attributes inherited from GILES.pb_SceneEditor
bool skipOnGUI = false
 

Detailed Description

A generic editor that allows selecting and moving around GameObjects.

Definition at line 11 of file pb_ObjectEditor.cs.

Member Function Documentation

◆ EnableCameraControls()

override bool GILES.pb_ObjectEditor.EnableCameraControls ( )
virtual

Override this to determine when the camera receives full control.

Reimplemented from GILES.pb_SceneEditor.

Definition at line 289 of file pb_ObjectEditor.cs.

◆ OnEnable()

override void GILES.pb_ObjectEditor.OnEnable ( )
virtual

Called when an editor is first enabled in the scene. Initialize temporary resources here.

Reimplemented from GILES.pb_SceneEditor.

Definition at line 44 of file pb_ObjectEditor.cs.

◆ OnFrameSelection()

override void GILES.pb_ObjectEditor.OnFrameSelection ( )
virtual

Called when the user presses the F key to frame the current selection. pb_ObjectEditor forwards this to the scene camera to enable zooming to the current selection.

Reimplemented from GILES.pb_SceneEditor.

Definition at line 281 of file pb_ObjectEditor.cs.

◆ OnGUI()

override void GILES.pb_ObjectEditor.OnGUI ( )
virtual

OnGUI forwarded from MonoBehaviour.

draw a selection rect

Reimplemented from GILES.pb_SceneEditor.

Definition at line 121 of file pb_ObjectEditor.cs.

◆ OnHandleBegin()

override void GILES.pb_ObjectEditor.OnHandleBegin ( pb_Transform  transform)
virtual

OnHandleBegin is called at the start of a handle interaction. transform is the handle's transform prior to any movement.

Reimplemented from GILES.pb_SceneEditor.

Definition at line 52 of file pb_ObjectEditor.cs.

◆ OnHandleMove()

override void GILES.pb_ObjectEditor.OnHandleMove ( pb_Transform  transform)
virtual

Called any time a handle is moved. OnHandleBegin will always be called prior, and OnHandleFinish will be called post.

Reimplemented from GILES.pb_SceneEditor.

Definition at line 61 of file pb_ObjectEditor.cs.

◆ OnKeyDown()

override void GILES.pb_ObjectEditor.OnKeyDown ( )
virtual

Called when a user presses a key. Fired once.

duplicate

Reimplemented from GILES.pb_SceneEditor.

Definition at line 235 of file pb_ObjectEditor.cs.

◆ OnMouseDown()

override void GILES.pb_ObjectEditor.OnMouseDown ( )
virtual

Called when a valid mouse down event is raised. This is passed down from pb_InputManager, which first checks that the interface doesn't need to intercept this click.

Reimplemented from GILES.pb_SceneEditor.

Definition at line 169 of file pb_ObjectEditor.cs.

◆ OnMouseMove()

override void GILES.pb_ObjectEditor.OnMouseMove ( )
virtual

Called on any mouse movement. If OnMouseDown was intercepted by pb_InputManager, no movement events will be called until the next valid mouse down event.

Reimplemented from GILES.pb_SceneEditor.

Definition at line 133 of file pb_ObjectEditor.cs.

◆ OnMouseUp()

override void GILES.pb_ObjectEditor.OnMouseUp ( )
virtual

Called when a valid mouse up event is raised. This is passed down from pb_InputManager, which first checks that the interface doesn't need to intercept this click.

Reimplemented from GILES.pb_SceneEditor.

Definition at line 179 of file pb_ObjectEditor.cs.

◆ OnSelectionChange()

override void GILES.pb_ObjectEditor.OnSelectionChange ( IEnumerable< GameObject >  added)
virtual

Called when the current selection is modified, either through a new selection or a change in the inspector. This is the same as subscribing to pb_Selection.onSelectionChange.

Reimplemented from GILES.pb_SceneEditor.

Definition at line 265 of file pb_ObjectEditor.cs.

Member Data Documentation

◆ dragRectColor

Color GILES.pb_ObjectEditor.dragRectColor = new Color(0f, .75f, 1f, .6f)

Definition at line 119 of file pb_ObjectEditor.cs.


The documentation for this class was generated from the following file: