Setup and attachment
- Install PHP CLI on PATH; create assets under ui/. Restart the editor after changing PATH.
Check the Project Manager’s Settings language tools and the editor Console for discovery errors. Contributors with a source checkout can optionally run
cargo xtask doctorfromEngine/. - Open your game project and scene. Select a Part object for this movement example.
- Use Programming > Object Component Script and select PHP. Save the asset, then attach it to the selected object using Programming > Attach Existing Script or + Add Component in the Inspector. Create global or scene scripts through their corresponding Programming commands. Keep the editor-assigned Asset ID; do not edit the registry or scene files by hand.
- Paste the complete behavior example. Press Play, then hover or click the embedded Play viewport and hold W. The owner moves along positive Z at one unit per second. The Console shows Behavior started once. Stop Play to restore the authored scene. Attach to an object with a transform to see movement.
See Complete behavior for the source to paste after attaching the script.