Quantcast
Channel: Questions in topic: "build"
Viewing all articles
Browse latest Browse all 4084

Keep a value set in pre-playmode by going to playmode

$
0
0
Hi, I'm making an editor for the design of online board games. I assumed I could put it in the various games of paper-type objects. I have a problem I can not solve. By a check-box each user of my application before entering playmode can select whether the cards can be double face. When I start the application but in configuration mode I can set this option to true, but when switching to playmode, this option is set to false. I tried using a serializable field, but I could not fix it. The code used is the following: [CODE] EditorGUILayout.Space(); secondFace = GUILayout.Toggle(secondFace, " Double Side"); [/CODE] Someone has some suggestions to give me. Thank you.

Viewing all articles
Browse latest Browse all 4084

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>