I keep getting the following warning in my console when editing my data asset which is haulting performance greatly whenever the asset is open.
LogClass: Warning: Short type name “ERoutineActionFlags” provided for TryFindType. Please convert it to a path name (suggested: “/Script/Hermit.ERoutineActionFlags”). Callstack:
[] Unknown Function (this shows up about 10 times)
I’ve tested with the following code and have determined the issue is ONLY coming from the “FoodAmount” property which i used to find the source of the issue. Whenever this property is present and trying to read the action flag enum it creates an enormous callstack that nearly freezes the editor. It’s quite frustrating.
UPROPERTY(EditAnywhere, BlueprintReadOnly, meta = (Bitmask, BitmaskEnum = "/Script/Hermit.ERoutineActionFlags"))
int32 ActionType = 0;
UPROPERTY(EditAnywhere, BlueprintReadWrite, meta = (EditCondition = "ActionType & ERoutineActionFlags::SearchLocation", EditConditionHides))
int32 FoodAmount = 1;
Changing the segment to the below formatting causes the metadata to break citing an issue with the “/” character as the cause. Does anyone know any way i can set it so that my Bitmasks can be used to hide and show Properties so my designers aren’t bogged down with unnecessary data?
UPROPERTY(EditAnywhere, BlueprintReadWrite, meta = (EditCondition = "ActionType & /Script/Hermit.ERoutineActionFlags::SearchLocation", EditConditionHides))
int32 FoodAmount = 1;
I can’t find anything anywhere on how to resolve this, any help would be greatly appreciated.