Skip to content

Play on Viewport -> Changes the Actual Scene (It happens in Lua, i dont know the others) #86

Description

@UmutFarukDilli

Description

If you select Viewport for Play mode, it changes the actual scene. This happens for both, 2d and 3d.
Image

Steps to Reproduce

  1. Select Viewport on Play mode.
  2. Put a sphere on the scene
  3. Move it with Lua script.
    script:
function on_update(delta)
    translate(0.1,0.1,0.1)
end
  1. Stop the game

Expected Behavior

Scene should saved before the run, than load back maybe. I dont know the other engines how solved this problem.

Actual Behavior

Scene changed with the runtime game.

Environment

  • OS: (e.g., Windows 11, Ubuntu 24.04, macOS 15)
  • GPU: (e.g., NVIDIA RTX 4070, AMD RX 7800 XT, Intel Arc)
  • Rust version: (output of rustc --version)
  • Cargo features: (e.g., editor, editor,solari)

Logs / Screenshots

Paste any relevant console output, error messages, or screenshots.

If the engine crashed, include the contents of crash.log.

Console output
(paste logs here)

Additional Context

Any other relevant information (related issues, workarounds you've tried, etc.).

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions