Add Actor.HasStaticFlag
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user