How to access UProperty (meta) from an UObject class?
I've tried to search, read source, but can't wrap my head around.
Now, I want to make sure that VaribleA still in the range, how to reference the ClampMin/ClampMax values?
And it seems does what I want, but have no clue how to access it from my class.
I should say that I'm not looking for:
From what I can see there is no such reusable function available. The clamping metadata is apparently intended just for the UI input stage (there is no metadata in a packaged build after all).
The only two places I could see in the engine code that used it to clamp were when setting up a a widget for the property (not applicable to your case) and in the property handle implementation. Property handles are also used specifically within the details panel/property editor code. I've looked into creating one myself before as they have some useful functionality, but I gave up; they're just buried very deep in non-exposed code and it's pretty clear they're not intended to be created outside of that area of the engine code.
If you want to use those values, I think you'll need to extract them yourself with the function you mentioned, convert (see
answered Jul 29 '17 at 10:11 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here