Quantum 3 3.0.14

Classes | Public Types | Public Member Functions | Static Public Member Functions | Static Public Attributes | List of all members
Quantum.Editor.QuantumEditorShortcutsWindow Class Reference

A utility window to quickly access Quantum global configs. More...

Inherits EditorWindow.

Classes

class  GridScope
 A grid scope for the Quantum global config window. More...
 

Public Types

enum  SelectMode
 Different selection modes for SearchAndSelect methods. More...
 

Public Member Functions

virtual void OnGUI ()
 OnGUI override to draw the Quantum global config window. More...
 

Static Public Member Functions

static Rect DrawIcon (string iconName, bool hasDarkIcon)
 Draw an icon. More...
 
static IEnumerable< T > SearchAndSelect< T > (SelectMode selectMode=SelectMode.All)
 Search and select any type. More...
 
static IEnumerable< T > SearchAndSelect< T > (string name)
 Search and select any type by name. More...
 
static void SearchDefaultConfigs ()
 Search and select the Quantum default config asset. More...
 
static void SearchPhotonServerSettings ()
 Search and select PhotonServerSettings. More...
 
static void SearchQuantumDotnetBuildSettings ()
 Search and select the Quantum .net build settings. More...
 
static void SearchQuantumDotnetProjectSettings ()
 Search and select the Quantum .net project settings. More...
 
static void SearchQuantumEditorSettings ()
 Search and select QuantumEditorSettings. More...
 
static void SearchQuantumGizmoSettings ()
 Search and select game gizmo settings. More...
 
static void SearchSessionConfig ()
 Search and select the session config. More...
 
static void SearchSimulationConfig ()
 Search and select simulation config assets. More...
 
static void SearchUnityDB ()
 Search and select the Quantum Unity DB file. More...
 
static void ShowWindow ()
 Open the global config shortcut window. More...
 

Static Public Attributes

static float ButtonWidth = 200.0f
 Configure the button width. More...
 

Detailed Description

A utility window to quickly access Quantum global configs.

Member Enumeration Documentation

◆ SelectMode

Different selection modes for SearchAndSelect methods.

Enumerator
All 

Select all

First 

Select the first asset found

Steps 

Select the next asset using Selection.activeObject

Member Function Documentation

◆ SearchPhotonServerSettings()

static void Quantum.Editor.QuantumEditorShortcutsWindow.SearchPhotonServerSettings ( )
static

Search and select PhotonServerSettings.

◆ SearchQuantumEditorSettings()

static void Quantum.Editor.QuantumEditorShortcutsWindow.SearchQuantumEditorSettings ( )
static

Search and select QuantumEditorSettings.

◆ SearchQuantumGizmoSettings()

static void Quantum.Editor.QuantumEditorShortcutsWindow.SearchQuantumGizmoSettings ( )
static

Search and select game gizmo settings.

◆ SearchDefaultConfigs()

static void Quantum.Editor.QuantumEditorShortcutsWindow.SearchDefaultConfigs ( )
static

Search and select the Quantum default config asset.

◆ SearchSessionConfig()

static void Quantum.Editor.QuantumEditorShortcutsWindow.SearchSessionConfig ( )
static

Search and select the session config.

◆ SearchSimulationConfig()

static void Quantum.Editor.QuantumEditorShortcutsWindow.SearchSimulationConfig ( )
static

Search and select simulation config assets.

◆ SearchUnityDB()

static void Quantum.Editor.QuantumEditorShortcutsWindow.SearchUnityDB ( )
static

Search and select the Quantum Unity DB file.

◆ SearchQuantumDotnetBuildSettings()

static void Quantum.Editor.QuantumEditorShortcutsWindow.SearchQuantumDotnetBuildSettings ( )
static

Search and select the Quantum .net build settings.

◆ SearchQuantumDotnetProjectSettings()

static void Quantum.Editor.QuantumEditorShortcutsWindow.SearchQuantumDotnetProjectSettings ( )
static

Search and select the Quantum .net project settings.

◆ ShowWindow()

static void Quantum.Editor.QuantumEditorShortcutsWindow.ShowWindow ( )
static

Open the global config shortcut window.

◆ OnGUI()

virtual void Quantum.Editor.QuantumEditorShortcutsWindow.OnGUI ( )
inlinevirtual

OnGUI override to draw the Quantum global config window.

◆ DrawIcon()

static Rect Quantum.Editor.QuantumEditorShortcutsWindow.DrawIcon ( string  iconName,
bool  hasDarkIcon 
)
inlinestatic

Draw an icon.

Parameters
iconNameIcon name that is found by EditorGUIUtility.IconContent()
Returns
Control rect

◆ SearchAndSelect< T >() [1/2]

static IEnumerable<T> Quantum.Editor.QuantumEditorShortcutsWindow.SearchAndSelect< T > ( SelectMode  selectMode = SelectMode.All)
inlinestatic

Search and select any type.

Template Parameters
TType to search
Parameters
selectModeToggle the selection mode
Returns
The first asset of the type found
Type Constraints
T :UnityEngine.Object 

◆ SearchAndSelect< T >() [2/2]

static IEnumerable<T> Quantum.Editor.QuantumEditorShortcutsWindow.SearchAndSelect< T > ( string  name)
inlinestatic

Search and select any type by name.

Template Parameters
TAsset type
Parameters
nameAsset name
Returns
The asset matching the type and name
Type Constraints
T :UnityEngine.Object 

Member Data Documentation

◆ ButtonWidth

float Quantum.Editor.QuantumEditorShortcutsWindow.ButtonWidth = 200.0f
static

Configure the button width.