Show / Hide Table of Contents

Class RetroKitEditorGUI

Inheritance
System.Object
RetroKitEditorGUI
Namespace: InsaneScatterbrain.RetroKit.Editor
Syntax
public class RetroKitEditorGUI

Constructors

RetroKitEditorGUI(RepositoryContainer, ISampleProvider)

Declaration
public RetroKitEditorGUI(RepositoryContainer repositories, ISampleProvider noiseSampleProvider)
Parameters
Type Name Description
RepositoryContainer repositories
ISampleProvider noiseSampleProvider

Methods

PopupNewDeleteScriptableObjectAsset<T>(T, T[], String, Func<T>, Action<T>, String)

Handles a popup for a scriptable object type that are stored as assets. It also shows buttons to create and delete new ones.

Declaration
public T PopupNewDeleteScriptableObjectAsset<T>(T selectedObject, T[] options, string emptyValue, Func<T> createFunc, Action<T> deleteAction = null, string newButtonText = "New")
    where T : ScriptableObject
Parameters
Type Name Description
T selectedObject

The selected object.

T[] options

The objects that can be selected.

System.String emptyValue

The string used for an empty value. If null, empty values are not allowed.

System.Func<T> createFunc

The function used to create a new object.

System.Action<T> deleteAction

The action performed, right before the object is deleted.

System.String newButtonText

The button text, for the button used to create new objects. If null, the button is not displayed.

Returns
Type Description
T
Type Parameters
Name Description
T

SampleProviderSelection(ISampleProvider, Single)

Sample provider selection popup.

Declaration
public ISampleProvider SampleProviderSelection(ISampleProvider sampleProvider, float curveFieldHeight = 114F)
Parameters
Type Name Description
ISampleProvider sampleProvider

The previous sample provider.

System.Single curveFieldHeight

The height of the curve field.

Returns
Type Description
ISampleProvider

The new sample provider.

SetupCheck()

Checks if the RetroKit is setup properly. If not, it shows a warning and a button that opens the RetroKit Settings in the inspector.

Declaration
public bool SetupCheck()
Returns
Type Description
System.Boolean

True if RetroKit is setup properly, false otherwise.

Back to top Generated by DocFX