class EditorSettings

Inherits: Settings

Contains various globally accessible editor preferences.

Public

Methods

SetMoveHandleSnapActive

void SetMoveHandleSnapActive(bool snapActive)

Enables/disables snapping for move handles in scene view.

GetMoveHandleSnapActive

bool GetMoveHandleSnapActive() const

SetRotateHandleSnapActive

void SetRotateHandleSnapActive(bool snapActive)

Enables/disables angle snapping for rotate handles in scene view.

GetRotateHandleSnapActive

bool GetRotateHandleSnapActive() const

SetMoveHandleSnap

void SetMoveHandleSnap(float value)

All move handles will move in multiples of this amount.

GetMoveHandleSnap

float GetMoveHandleSnap() const

SetRotationHandleSnap

void SetRotationHandleSnap(Degree value)

All rotate handles will rotate in multiples of this amount.

GetRotationHandleSnap

Degree GetRotationHandleSnap() const

SetGridSize

void SetGridSize(u32 value)

Total size of the scene view grid (its width and height).

GetGridSize

u32 GetGridSize() const

SetGridSpacing

void SetGridSpacing(float value)

Distance between scene view grid lines.

GetGridSpacing

float GetGridSpacing() const

SetHandleSize

void SetHandleSize(float value)

Default size of all scene view handles.

GetHandleSize

float GetHandleSize() const

SetActiveSceneTool

void SetActiveSceneTool(u32 value)

Currently active scene view tool (for example move, rotate, etc.).

GetActiveSceneTool

u32 GetActiveSceneTool() const

SetActiveCoordinateMode

void SetActiveCoordinateMode(u32 value)

Currently active coordinate mode for scene view (for example global/local).

GetActiveCoordinateMode

u32 GetActiveCoordinateMode() const

SetActivePivotMode

void SetActivePivotMode(u32 value)

Currently active pivot mode for scene view (for example pivot/center).

GetActivePivotMode

u32 GetActivePivotMode() const

SetLastOpenProject

void SetLastOpenProject(const Path &value)

Path to the last project open in the editor.

GetLastOpenProject

Path GetLastOpenProject() const

SetAutoLoadLastProject

void SetAutoLoadLastProject(bool value)

Determines whether the last open project should be automatically loaded on editor start up.

GetAutoLoadLastProject

bool GetAutoLoadLastProject() const

SetRecentProjects

void SetRecentProjects(const Vector<RecentProject> &value)

List of most recently loaded project paths and their last access times.

GetRecentProjects

const Vector<RecentProject> &GetRecentProjects() const

SetFpsLimit

void SetFpsLimit(u32 limit)

maximum number of frames per second the editor is allowed to execute.

Zero means infinite.

GetFpsLimit

u32 GetFpsLimit() const

SetMouseSensitivity

void SetMouseSensitivity(float value)

Controls sensitivity of mouse movements.

This doesn't apply to mouse cursor. Default value is 1.0f.

GetMouseSensitivity

float GetMouseSensitivity() const

staticGetRttiStatic

static RTTIType *GetRttiStatic()

GetRtti

RTTIType *GetRtti() const override

Returns an interface you can use to access class' Run Time Type Information.

Private

Fields

mMoveSnapActive

bool mMoveSnapActive

mRotateSnapActive

bool mRotateSnapActive

mMoveSnap

float mMoveSnap

mRotationSnap

Degree mRotationSnap

mGridSize

u32 mGridSize

mGridAxisSpacing

float mGridAxisSpacing

mActiveSceneTool

u32 mActiveSceneTool

mActiveCoordinateMode

u32 mActiveCoordinateMode

mActivePivotMode

u32 mActivePivotMode

mHandleSize

float mHandleSize

mFPSLimit

u32 mFPSLimit

mMouseSensitivity

float mMouseSensitivity

mLastOpenProject

Path mLastOpenProject

mAutoLoadLastProject

bool mAutoLoadLastProject

mRecentProjects

Vector<RecentProject> mRecentProjects