Page 1 of 1

Entity Property Types

Posted: Sat Jun 10, 2017 8:26 pm
by miravista

I set up entities the same way that the official tutorials shows
The videos did not show how to set a property to a certain type, like a dropdown.
How would you make a property a dropdown?
How about making a range from 0 to 100?

Thanks for any answers

Re: Entity Property Types

Posted: Sat Jun 24, 2017 5:19 am
by arcticlion
Hi, you may use decorators for various types in entity properties panel
there is my example of range decorator (#include <CrySerialization/Decorators/Range.h>) for mass: ... om.cpp#L65
and for drop down list with various values I suppose need to use Yasli enumeration. I saw some example of it before, in engine's sources...

Re: Entity Property Types

Posted: Wed Jun 28, 2017 12:37 am
by miravista
Thanks Arctic! Haven't seen you since early answers board days.
This is exactly what I'm looking