ExecuteFunctionOnce
void ExecuteFunctionOnce(Action function);
Executes the provided function once within the next frame. The DisableMultithreading feature does not affect this function.
Parameters
function
Function to be added. Only takes functions with no parameters and no return value.
Example
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class PlayerController : ThreadHarmonizerEngine.MonoBehaviourMultithreaded
{
// Start is called before the first frame update
void Start()
{
ExecuteFunctionOnce(Greeting);
}
void Greeting()
{
Debug.Log("Hello World!");
}
}