Hello,
I’m currently working with custom enums in my project and I was wondering what is the difference between two ways of declaring them. Is one better/easier to use than the other one ?
For example :
UENUM()
namespace ETransitionGetter
{
enum Type
{
AnimationAsset_GetCurrentTime,
AnimationAsset_GetLength,
AnimationAsset_GetCurrentTimeFraction,
AnimationAsset_GetTimeFromEnd,
AnimationAsset_GetTimeFromEndFraction,
CurrentState_ElapsedTime,
CurrentState_GetBlendWeight,
CurrentTransitionDuration,
ArbitraryState_GetBlendWeight
};
}
and
UENUM()
enum ERadialImpulseFalloff
{
/** Impulse is a constant strength, up to the limit of its range. */
RIF_Constant,
/** Impulse should get linearly weaker the further from origin. */
RIF_Linear,
RIF_MAX,
};
What is the purpose of the “namespace” keyword here ? What does mean the “Type” keyword then ?