|
so, i have a script (js) like that:
after i attach this script to an object, i wonder if there is any way in that if i change the values of a or b, to see the new "c" in inspector... some kind of input text for a and b and dynamic text for c.
(comments are locked)
|
|
Try playing around with ExecuteInEditMode. So like this:
(I haven't tested this.)
(comments are locked)
|
|
As unity does not display properties with getters/setters, your best bet would be writing a custom inspector.
(comments are locked)
|
|
yep, this is working! thanks! i just added the var types for a,b,c, i get some errors if not... here is the javascript version:
(comments are locked)
|
