Creating your own variables.

loniek

New member
Hey everyone.
This might be easy solution but i try to create my own variables to set them via inspector later on and it seems to not work, i think i'm missing something.
To show you better i try to create MinDamageAmount and MaxDamageAmount to MyBody (hands) in MeleeWeapon.cs
1661336227656.png
I also created public fields like so
1661336324651.png
But they still doesen't appear to inspector.
1661336382978.png
I was trying to find answer and i think i have to map them somewhere as a new property but i can't find how and where.
Any help would be really good.

Cheers!
Loniek
 
Copy and paste the ability, rename it, all vars you add public or serialized will then show in editor. That's the easiest solution to not modifying UCC code base.
 
Top