/// <summary> /// Sets asset path of this reference. /// </summary> /// <param name="path">The path to the asset.</param> public void SetPath(string path) { using (FStringUnsafe pathUnsafe = new FStringUnsafe(path)) { Native_FSoftObjectPath.SetPath(ref this, ref pathUnsafe.Array); } }
/// <summary> /// Resets reference to point to NULL /// </summary> public void Reset() { Native_FSoftObjectPath.Reset(ref this); }
/// <summary> /// Attempts to find a currently loaded object that matches this object ID /// </summary> /// <returns>Found UObject, or NULL if not currently loaded</returns> public UObject ResolveObject() { return(GCHelper.Find(Native_FSoftObjectPath.ResolveObject(ref this))); }
/// <summary> /// Attempts to load the asset. /// </summary> /// <returns>Loaded UObject, or null if the asset fails to load, or if the reference is not valid.</returns> public UObject TryLoad() { return(GCHelper.Find(Native_FSoftObjectPath.TryLoad(ref this))); }