Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Roles added in editor mode disappear when exiting play mode on beta #323

Closed
saikyun opened this issue Dec 1, 2018 · 1 comment
Closed
Milestone

Comments

@saikyun
Copy link
Contributor

saikyun commented Dec 1, 2018

Be me. Am on branch beta, commit ce84e89

Open an arcadia project. Open the file <project path>/Assets/game/test.clj. Add the following:

(ns game.test
  (:require [arcadia.core :refer :all]))

(defrole dumb-role
  (update
   [obj k]
   (log "hej")))

Be in editing mode, open the repl. Write the following:

user=> (load-file "Assets/game/test.clj")
;; #'game.test/dumb-role
user=> (in-ns 'game.test)
;; #object[Namespace 0xd44a0600 "game.test"]
game.test=> (role+ (object-named "Main Camera") :random/wat dumb-role)
;; #<Main Camera (UnityEngine.GameObject)>

So far, looking good.
Yes
Then enter play mode. And everything is the same. A lot of "hej" appears in the chat.
Only Monika is missing.

Then exit play mode.

Sadness.
Sadness

If you follow the same steps on develop, commit dbfbd78
Then everything will work as expected.

@timsgardner
Copy link
Contributor

Fixed as of e05ffe5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants