Add Actor.HasStaticFlag

This commit is contained in:
Wojtek Figat
2021-01-18 15:07:01 +01:00
parent 2bfcc15f66
commit f80c33f381

View File

@@ -367,6 +367,14 @@ public:
/// <param name="value">The value to set.</param>
API_PROPERTY() virtual void SetStaticFlags(StaticFlags value);
/// <summary>
/// Returns true if object has given flag(s) set.
/// </summary>
FORCE_INLINE bool HasStaticFlag(StaticFlags flag) const
{
return (_staticFlags & flag) == (int)flag;
}
/// <summary>
/// Adds the actor static flags.
/// </summary>