Setup and attachment
- Install PHP CLI on
PATHand restart the editor. Check the Project Manager’s Settings and the editor Console for PHP discovery errors. - Open the scene that should run the behavior. Add a Part named
Moverat the scene root for the movement example. - Choose Programming → Scene Startup Script → PHP. For an existing
.phpfile underui/, right-click it in Explorer and choose Set As → Scene Startup Script. - Save the source from the complete behavior example
and save the scene. Press Play, focus the embedded viewport, and hold W.
Moveradvances along positive Z and the Console logs Behavior started when the scene loads. Stop Play to restore the authored scene.
If the script is missing from the scene menu, check that it is registered under
ui/, or attach it through Explorer. If Mover stays still, check its
name, that PHP CLI is available, and that the correct scene is active.