Skip to content
Snippets Groups Projects
Commit 1871ec97 authored by Johannes Büttner's avatar Johannes Büttner
Browse files

Added OnConfigureUI

parent c31986c4
No related branches found
No related tags found
No related merge requests found
......@@ -30,6 +30,13 @@ public virtual void OnConfigureScene(){}
/// </summary>
public virtual void OnConfigureLogic(){}
/// <summary>
/// Called once for every scene in the Unity project. At the time of
/// execution the scene is loaded. Use this method to add UI of the logic engine variables
/// after all logic is configured. All changes to the scene are saved after execution.
/// </summary>
public virtual void OnConfigureUI(){}
/// <summary>
/// Called once when all previous configuration methods have been called.
/// </summary>
......
......@@ -10,6 +10,7 @@ public static void ExecuteAll() {
SetupScene();
OnConfigureScene();
OnConfigureLogic();
OnConfigureUI();
OnPostConfiguration();
}
......@@ -21,6 +22,8 @@ public static void ExecuteAll() {
public static void OnConfigureLogic() => CallMethodsPerScene(nameof(PackageConfigurator.OnConfigureLogic));
public static void OnConfigureUI() => CallMethodsPerScene(nameof(PackageConfigurator.OnConfigureUI));
public static void OnPostConfiguration() => CallMethods(nameof(PackageConfigurator.OnPostConfiguration));
private static void CallMethodsPerScene(string methodName) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment