Quick Start Guide
Get up and running with Function Player in just 3 minutes!
Video Tutorial
Watch this complete tutorial to see Function Player in action:
Step 1: Add Function Player Component
- Create a
GameObjectin your scene - Add the
Function Playercomponent to it - You will see a custom inspector with a
Create Itembutton
Step 2: Create Your First Method Call
- Click
Create Itemin the Function Player inspector - A new item will appear with these fields:
- Target: Select a
GameObject - Component: Choose a component from the dropdown
- Method: Pick a method to call
- Target: Select a
Step 3: Execute the Sequence
- Enter Play mode (sequences only run during Play)
- Click the “Play” button in the Function Player inspector
- Your method calls will execute in order
Example Setup
Here’s a complete example using a simple test script:
public class TestScript : MonoBehaviour
{
public void SayHello(string message)
{
Debug.Log("Hello: " + message);
}
}
Configuration:
- Target: Select the GameObject with the
TestScriptcomponent - Component: Choose
TestScriptcomponent - Method: Select
SayHellomethod - Parameter: Enter
"World"in the message field
Result: You’ll see “Hello: World” in the Console
Built-in Utility Methods
Target the Function Player GameObject itself to access:
Wait(float seconds)- Pause execution between method callsLog(string message)- Output debug messages
Creating Sequences
Add multiple items to create sequences:
- Item 1:
TestScript.SayHello("Starting") - Item 2:
FunctionPlayer.Wait(2.0) - Item 3:
TestScript.SayHello("Done")
Use the Up/Down arrows to reorder items.
Supported Parameter Types
Function Player automatically creates UI for:
- Basic:
bool,int,float,string,enum - Unity:
Vector3,Color,AnimationCurve,Gradient - Custom: Any
[System.Serializable]class
What’s Next?
- API Reference - Technical documentation and advanced features
- Experiment with coroutines for animations and timed sequences
- Try cross-GameObject method calls for complex interactions