Guest User

Untitled

a guest
Aug 14th, 2014
418
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. #include "YourProjectName.h"
  3. #include "UtilityNode.h"
  4.  
  5.  
  6. UUtilityNode::UUtilityNode(const class FPostConstructInitializeProperties& PCIP)
  7.     : Super(PCIP)
  8. {
  9.  
  10. }
  11.  
  12. // Load Static Mesh From Path
  13. UStaticMesh* UUtilityNode::LoadStaticMeshFromPath(const FName& Path)
  14. {
  15.     if (Path == NAME_None) return NULL;
  16.     //~
  17.  
  18.     FString SMPath = "Static Mesh'" + Path.ToString() + "'";
  19.  
  20.     return Cast<UStaticMesh>(StaticLoadObject(UStaticMesh::StaticClass(), NULL, *SMPath));
  21. }
RAW Paste Data