🚀 Quick Start Guide
Opening the Demo Scene
Follow these steps to explore the Common Stat Pro demonstration:
Step 1: Navigate to the Demo Scene
Open the example scene located at:
Pro Tip: You can quickly navigate to this path by using Unity's search bar (Ctrl+K / Cmd+K) and typing "StatTest"
Step 2: TextMeshPro Setup (If Required)
If the scene displays incorrectly or shows missing text elements, you'll need to import TextMeshPro:
{% tabs %} {% tab title="Automatic Import" %}
Unity will typically prompt you automatically when opening the scene
Click "Import TMP Essentials" in the popup dialog
Wait for the import process to complete {% endtab %}
Manual Import
Go to Window → TextMeshPro → Import TMP Essential Resources
Click "Import" in the dialog that appears
Wait for Unity to finish importing the resources
Important: After importing TextMeshPro, you must reopen the StatTest scene. Do not save the scene during this process to avoid any configuration conflicts.
🔧 Troubleshooting
Ready to integrate? Once you've explored the demo, check out our Integration Guide to start using Common Stat Pro in your own project!
Stat Setting
Create -> RGame -> Value -> ValueConfig.
You can edit your desired stat here.
Create -> RGame -> Value -> Runtime Values.
This is your entity's Stat Data Manager. You can drag and drop the ValueConfig you want into it.
Drag and drop the created Runtime Value SO into the Value SO to use it. You can use the ValueName, get Value, and MaxValue you want to look up by dragging and dropping them into the Value SO.
The following is the UI code for displaying the properties in the example, and the effect at runtime.
Formula
Create -> RGame-> Formula .You can enter the formula here again, or you can test the formula below to see if it's correct, and if it's not, you'll get the appropriate error message. The format is @{parameter} ${variable} variable is the ValueName in your stat.
You can use it via the Evaluate method, In order to support multiple parameters, you need to pass in the parameter names and values used in a dictionary.
Last updated