Fix spelling and comment description wording for GetAssetVirtualProxy

This commit is contained in:
Chandler Cox
2024-09-01 14:00:50 -05:00
parent fc9aa5c184
commit fd7e04fd8c

View File

@@ -198,12 +198,11 @@ namespace FlaxEditor.Modules
}
/// <summary>
/// Gets the virtual proxy object from given path.
/// <br></br>use case if the asset u trying to display is not a flax asset but u like to add custom functionality
/// <br></br>to context menu,or display it the asset
/// <br></br>Useful if the asset that needs to be displayed is not a Flax asset but needs custom functionality.
/// </summary>
/// <param name="path">The asset path.</param>
/// <returns>Asset proxy or null if cannot find.</returns>
public AssetProxy GetAssetVirtuallProxy(string path)
/// <returns>Asset proxy or null if not found.</returns>
public AssetProxy GetAssetVirtualProxy(string path)
{
for (int i = 0; i < Proxy.Count; i++)
{
@@ -1019,7 +1018,7 @@ namespace FlaxEditor.Modules
}
if (item == null)
{
var proxy = GetAssetVirtuallProxy(path);
var proxy = GetAssetVirtualProxy(path);
item = proxy?.ConstructItem(path, assetInfo.TypeName, ref assetInfo.ID);
if (item == null)
{