Add Actor.HasStaticFlag
This commit is contained in:
@@ -367,6 +367,14 @@ public:
|
|||||||
/// <param name="value">The value to set.</param>
|
/// <param name="value">The value to set.</param>
|
||||||
API_PROPERTY() virtual void SetStaticFlags(StaticFlags value);
|
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>
|
/// <summary>
|
||||||
/// Adds the actor static flags.
|
/// Adds the actor static flags.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
Reference in New Issue
Block a user