Example #1
0
 /// <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()
 {
     using (FSoftObjectPathUnsafe objectPathUnsafe = new FSoftObjectPathUnsafe(AssetPathName, SubPathString))
     {
         return(objectPathUnsafe.ResolveObject());
     }
 }
Example #2
0
 /// <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()
 {
     using (FSoftObjectPathUnsafe objectPathUnsafe = new FSoftObjectPathUnsafe(AssetPathName, SubPathString))
     {
         return(objectPathUnsafe.TryLoad());
     }
 }
Example #3
0
 public void Reset()
 {
     using (FSoftObjectPathUnsafe objectPathUnsafe = new FSoftObjectPathUnsafe(AssetPathName, SubPathString))
     {
         objectPathUnsafe.Reset();
         AssetPathName = objectPathUnsafe.AssetPathName;
         SubPathString = objectPathUnsafe.SubPathString;
     }
 }
Example #4
0
 /// <summary>
 /// Sets asset path of this reference.
 /// </summary>
 /// <param name="path">The path to the asset.</param>
 public void SetPath(string path)
 {
     using (FSoftObjectPathUnsafe objectPathUnsafe = new FSoftObjectPathUnsafe(AssetPathName, SubPathString))
     {
         objectPathUnsafe.SetPath(path);
         AssetPathName = objectPathUnsafe.AssetPathName;
         SubPathString = objectPathUnsafe.SubPathString;
     }
 }
Example #5
0
 public FSoftClassPath(FSoftObjectPathUnsafe softObjectPath)
 {
     ObjectPath = new FSoftObjectPath(softObjectPath);
 }
Example #6
0
 public FSoftObjectPath(FSoftObjectPathUnsafe softObjectPath)
 {
     AssetPathName = softObjectPath.AssetPathName;
     SubPathString = softObjectPath.SubPathString;
 }
Example #7
0
 public FSoftObjectPtrUnsafe(FSoftObjectPathUnsafe assetRefUnsafe)
     : this(assetRefUnsafe.ToSafe())
 {
 }