UAnimNotify::GetWorld

We don't instance [UAnimNotify](API\Runtime\Engine\Animation\AnimNotifies\UAnimNotify) objects along with the animations they belong to, but we still need a way to see which world this [UAnimNotify](API\Runtime\Engine\Animation\AnimNotifies\UAnimNotify) is currently operating on.

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Animation/AnimNotifies/AnimNotify.h

Include

#include "Animation/AnimNotifies/AnimNotify.h"

Source

/Engine/Source/Runtime/Engine/Private/Animation/AnimNotify.cpp

Syntax

virtual UWorld * GetWorld() const

Remarks

We don't instance UAnimNotify objects along with the animations they belong to, but we still need a way to see which world this UAnimNotify is currently operating on. So this retrieves a contextual world pointer, from the triggering animation/mesh.

Returns

NULL if this isn't in the middle of a Received_Notify(), otherwise it's the world belonging to the Mesh passed to Received_Notify()

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss