RUSTICDOCSSearch documentation

Setup and attachment

Back to PHP.

  1. Install PHP CLI on PATH and restart the editor. Check the Project Manager’s Settings and the editor Console for PHP discovery errors.
  2. Open the scene that should run the behavior. Add a Part named Mover at the scene root for the movement example.
  3. Choose Programming → Scene Startup Script → PHP. For an existing .php file under ui/, right-click it in Explorer and choose Set As → Scene Startup Script.
  4. Save the source from the complete behavior example and save the scene. Press Play, focus the embedded viewport, and hold W. Mover advances 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.