Skip to content

Commit

Permalink
Merge pull request ALEXTANGXIAO#88 from kenkinky/main
Browse files Browse the repository at this point in the history
[fixed]选中ResourceModule时进入Play模式抛出异常
  • Loading branch information
ALEXTANGXIAO committed Aug 3, 2024
2 parents f2c69d5 + 79c1026 commit 5a883bc
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -176,12 +176,12 @@ public bool UseSystemUnloadUnusedAssets
/// <summary>
/// 获取资源只读路径。
/// </summary>
public string ReadOnlyPath => m_ResourceManager.ReadOnlyPath;
public string ReadOnlyPath => m_ResourceManager?.ReadOnlyPath;

/// <summary>
/// 获取资源读写路径。
/// </summary>
public string ReadWritePath => m_ResourceManager.ReadWritePath;
public string ReadWritePath => m_ResourceManager?.ReadWritePath;

[SerializeField]
private float m_AssetAutoReleaseInterval = 60f;
Expand Down Expand Up @@ -710,4 +710,4 @@ private void Update()

#endregion
}
}
}

0 comments on commit 5a883bc

Please sign in to comment.