Merge branch 'Tryibion-fix-spelling-virtual'
This commit is contained in:
@@ -198,12 +198,11 @@ namespace FlaxEditor.Modules
|
|||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets the virtual proxy object from given path.
|
/// 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>Useful if the asset that needs to be displayed is not a Flax asset but needs custom functionality.
|
||||||
/// <br></br>to context menu,or display it the asset
|
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="path">The asset path.</param>
|
/// <param name="path">The asset path.</param>
|
||||||
/// <returns>Asset proxy or null if cannot find.</returns>
|
/// <returns>Asset proxy or null if not found.</returns>
|
||||||
public AssetProxy GetAssetVirtuallProxy(string path)
|
public AssetProxy GetAssetVirtualProxy(string path)
|
||||||
{
|
{
|
||||||
for (int i = 0; i < Proxy.Count; i++)
|
for (int i = 0; i < Proxy.Count; i++)
|
||||||
{
|
{
|
||||||
@@ -1019,7 +1018,7 @@ namespace FlaxEditor.Modules
|
|||||||
}
|
}
|
||||||
if (item == null)
|
if (item == null)
|
||||||
{
|
{
|
||||||
var proxy = GetAssetVirtuallProxy(path);
|
var proxy = GetAssetVirtualProxy(path);
|
||||||
item = proxy?.ConstructItem(path, assetInfo.TypeName, ref assetInfo.ID);
|
item = proxy?.ConstructItem(path, assetInfo.TypeName, ref assetInfo.ID);
|
||||||
if (item == null)
|
if (item == null)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user