- Home /
Question by
Nathan Bennett · Mar 05, 2011 at 02:53 PM ·
javascriptobjectdatacustomtype
Is it possible to use a custom object in java (my WeaponObject) as a data type (like Vector3)
alright.i don't know how n00bish this sounds but... i need a Custom object (my WeaponObject), so i can store values and send them to my GUI handler. only problem is...i don't know how to use that as a data type (like int, floats and Vector2/3). is it possible? i hear i could use structs on C#, but I'm really not comfortable coding with it.and also how would i access the struct globally? could i? i dunno...
thanks for you time...and thanks for any of your replies, you guys are Great! :D
Comment
Best Answer
Answer by Jessy · Mar 05, 2011 at 03:21 PM
Yes.
Value types (structs) can be defined as classes inheriting from System.ValueType:
http://unity3d.com/support/documentation/Manual/MonoUpgradeDetails.html