Quantcast
Channel: Questions in topic: "javascipt"
Viewing all articles
Browse latest Browse all 1875

how to save a GameObject with different properties multiple times

$
0
0
My situation: I am making an app which is supposed to save events like: an activity, from when, to when, additional notes (for now only that), those are my inputs. I already saved those onto variables. After that i have to display them in certain ways which is pretty easy. Now i am wondering, When i press the "save" button it saves it onto the variables then displays those: e.g.: Sport from 14:30 to 15:30 additional Notes: I love sport My problem is if i go in and try to make a new entry ofc it overrides the old one meaning it will display a different thing now once i press the "save" button again.
Here some screenshots: ![alt text][1] ![alt text][2] The bar displays how many hours of the day are "used" by an event (in this case 1h of 24h) It's pretty much just to test. But it will end up looking/working a bit like that. I was thinking of making an instance of my GameObject that displays those variables. Is that a possibilty? If so how do i do that? I have to be able to change those values again as well. E.g. pressing on the displayed entry and then editing the time or name (activity) It's very hard to phrase this question but i tryed my best. If you take some time to answer my question i would appreciate this so much since i need this project to succeed for school (It's a project) using javascript! Thanks in advance! (also, sorry for the bad text, It has been a while since i have asked something here on the forums) [1]: /storage/temp/110278-view1.png [2]: /storage/temp/110279-view2.png

Viewing all articles
Browse latest Browse all 1875

Trending Articles



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