private void OnInvalidDelegate(TDelegate evnt) { string objPath = "null"; string funcName = "null"; Delegate del = evnt as Delegate; if (del != null) { UObject obj = del.Target as UObject; if (obj != null) { objPath = obj.GetPathName(); } else { objPath = "null"; } if (del.Method != null) { funcName = del.Method.DeclaringType != null ? del.Method.DeclaringType.FullName + "." + del.Method.Name : del.Method.Name; } else { funcName = evnt.ToString(); } } else { funcName = evnt.ToString(); } FMessage.Log(ELogVerbosity.Error, "Failed to find UFunction for delegate / dispatcher - UObject(" + objPath + ") Func(" + funcName + ")"); }
public FSoftObjectPath(UObject obj) { this = default(FSoftObjectPath); if (obj != null) { SetPath(obj.GetPathName()); } }