Skip to content

Commit

Permalink
Escape <Texture2D>
Browse files Browse the repository at this point in the history
  • Loading branch information
esainane committed Aug 18, 2024
1 parent d7f2dbf commit 0c42a36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/classes/EditorImportPlugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@
}

// Load exported image as a Texture2D.
Texture2D exportImageTex = ResourceLoader.Load<Texture2D>(exportPath, nameof(Texture2D), ResourceLoader.CacheMode.Replace);
Texture2D exportImageTex = ResourceLoader.Load&lt;Texture2D&gt;(exportPath, nameof(Texture2D), ResourceLoader.CacheMode.Replace);
if (exportImageTex == null)
{
return Error.ScriptFailed;
Expand Down

0 comments on commit 0c42a36

Please sign in to comment.