internal static unsafe IReadOnlyCollection <UObject> Invoke(IntPtr obj, SoftObjectPath TargetObject) { long *p = stackalloc long[] { 0L, 0L, 0L, 0L, 0L, 0L, 0L }; byte *b = (byte *)p; *((SoftObjectPath *)(b + 0)) = TargetObject; Main.GetProcessEvent(obj, FindSoftReferencesToObject_ptr, new IntPtr(p));; //TODO: array TArray ReferencingObjects return(UObject.ToUObjectCollection <UObject>(b + 32)); } }
///<summary>Returns list of objects that soft reference the given soft object path. This will load assets into memory to verify</summary> public IReadOnlyCollection <UObject> FindSoftReferencesToObject(SoftObjectPath TargetObject) => AssetTools_methods.FindSoftReferencesToObject_method.Invoke(ObjPointer, TargetObject);