Fix Float/Double meta data options not showing up. #6
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Unreal Engine Version:
5.3
I didn't test in other engine versions.
Bug
Metadata keys which explicitly supported Float/Double/Real types do not show up. (i.e.
SliderExponent
,Delta
,Multiple
,NoSpinbox
)Cause
In
UE 5.3
Floats and Doubles are actually Reals, with the subtype of Float/Double. These keys were failing to be supported becauseKey.DoesSupportProperty(Property)
would return false. Because it requires the type and subtype to match.Fix
{ UEdGraphSchema_K2::PC_Real, UEdGraphSchema_K2::PC_Float }
{ UEdGraphSchema_K2::PC_Real, UEdGraphSchema_K2::PC_Double }
{ UEdGraphSchema_K2::PC_Real }
FixUp()
the values if they are being initialized incorrectly by code.FixUp()
onPostInitProperties()
so that configurations which were saved with previous versions would be fixed also.Tested
TSet
).