CodeSmile AssetDatabase 1.10
Unity's AssetDatabase in enjoyable, consistent, concise, convenient, comprehensible, safe, documented form.
Loading...
Searching...
No Matches

◆ OpenExternal() [3/3]

static void OpenExternal ( EntityId entityId,
Int32 lineNumber = -1,
Int32 columnNumber = -1 )
static

Opens the asset in the application associated with the file's extension.

Optional line and column numbers can be specified for text files and applications that support this.

Unity marked the AssetDatabase integer instance ID overloads obsolete as a warning on 6000.3.23f1 and 6000.4.11f1 and as an error on 6000.5.10f1, and Object.GetInstanceID as a warning on 6000.4.11f1 and an error on 6000.5.10f1. They still exist in the assemblies but can no longer be called, and no non-obsolete way to turn an integer instance ID into an EntityId remains, so from Unity 6000.4 on this method takes an EntityId.

Parameters
entityIdThe EntityId of the asset to open externally.
lineNumberOptional line number to highlight. Depends on application support.
columnNumberOptional column/character number to highlight. Depends on application support.
See also