Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "YourProjectName.h"
- #include "UtilityNode.h"
- UUtilityNode::UUtilityNode(const class FPostConstructInitializeProperties& PCIP)
- : Super(PCIP)
- {
- }
- // Load Static Mesh From Path
- UStaticMesh* UUtilityNode::LoadStaticMeshFromPath(const FName& Path)
- {
- if (Path == NAME_None) return NULL;
- //~
- FString SMPath = "Static Mesh'" + Path.ToString() + "'";
- return Cast<UStaticMesh>(StaticLoadObject(UStaticMesh::StaticClass(), NULL, *SMPath));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement