Skip to content

Commit

Permalink
Minor script commenting and docs cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
Synthoid committed Sep 10, 2023
1 parent d9ddfef commit ff1d619
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 3 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,9 @@ public UnityEvent onEnginePostShutdown
set { m_OnEnginePostShutdown = value; }
}

/// <summary>
/// Initialize the substance engine. Note: This will do nothing if the engine is already initialized.
/// </summary>
public void InitializeEngine()
{
if(IsInitialized)
Expand Down Expand Up @@ -157,7 +160,9 @@ public void InitializeEngine()
onEngineInitialized.Invoke();
}


/// <summary>
/// Shutdown the substance engine. Note: This will do nothing if the engine is not currently initialized.
/// </summary>
public void ShutdownEngine()
{
if(!IsInitialized) return;
Expand Down
4 changes: 2 additions & 2 deletions docs/scripting/Engine/SubstanceEngineManager.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,5 +55,5 @@ public class SubstanceParameterExample : MonoBehaviour

| Method | Returns | Description |
| ------ | ------- | ----------- |
| InitializeEngine() | void | Set the input values on the graph asset to match the inputs on the given native graph. |
| ShutdownEngine() | void | Displose all cached runtime native graphs and clear the dictionary cache. |
| InitializeEngine() | void | Initialize the substance engine. Note: This will do nothing if the engine is already initialized. |
| ShutdownEngine() | void | Shutdown the substance engine. Note: This will do nothing if the engine is not currently initialized. |

0 comments on commit ff1d619

Please sign in to comment.