A Unity ID allows you to buy and/or subscribe to Unity products and services, shop in the Asset Store and participate in the Unity community.
Separate names with a comma.
Wow you went considerably out of your way in my estimation :-) I believe there is a "think like a coder" mentality (probably akin to "think like a...
I don't quite get it (I think) but are you saying if you have the class (as we see it) with the code commented out you still see the problem?...
That is the side-effect of doing it the way you have chosen. You are "removing" the word rather than just transforming the word. So you are stuck...
I assume the basics work but you can see a side-effect (you have to check for double semi-colons also). So what about toggling between two values?...
You've made a few errors and a couple of atypical coding style choices. The crux of the problem is that this is not a test of the property value....
Since I could have some effect which could change the size or the weight of an item, I just have to find a way to tell to the backpack, "hey, this...
I wasn't approaching this i so much as a "review my design" thread as I was a "let's discuss design" one :-) So my replies may not apply to you...
This is done in apps all the time... While game development introduces the need for slightly better response times that isn't absent from the...
Concrete examples can go a long way (of course) but they often run the risk of being uniquely contrived to demonstrate an advantage/disadvantage...
Only two options? :-) I am guessing but it would seem that nobody would know the last part you mentioned if we were not discussing solutions. I...
It is just a conversation about modeling. You do what you need to accomplish your goals at the time. Your needs will evolve over time as will your...
Interesting read but I'd tend towards a completely different structure. These "seem" to be modeling how one suspects things work in the real world...
This is the subtlety of "good code" :-) No difference seems hard to believe surely you can see differences. You have a GetTotalWeight() method,...
A blueprint for a house is not a house. A prefab is essentially a blueprint until you create an object using it. It should become apparent with a...
Not at all :-) Check the example you posted for the Inventory class and compare it to what I posted. You have a private method that isn't needed...
Pardon my saying so but the code is needlessly complicated in many places. That makes it more likely that bugs can hide. It doesn't have to be...
I'm having to read between the lines somewhat but it sounds as though you believe you can drag a prefab into the Inspector and assign it to a...
Plus 1 for trying for hours it is the only tried and true way forward. You are referencing a class "Name" not an object created of that type. A...
Turns out that Presets are just the solution I was looking for.
Perhaps there is some sort of solution (I doubt it though) but while I like the Inspector for setting values they are not "documented" in any way....