コード例 #1
0
ファイル: AssetTools.cs プロジェクト: jcoder58/Plugins
            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));
            }
        }
コード例 #2
0
ファイル: AssetTools.cs プロジェクト: jcoder58/Plugins
 ///<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);