AssetDatabase.OpenAsset Manual     Reference     Scripting  
Scripting > Editor Classes > AssetDatabase
AssetDatabase.OpenAsset

static function OpenAsset (instanceID : int, lineNumber : int = -1) : boolean

static function OpenAsset (target : Object, lineNumber : int = -1) : boolean

Description

Opens the asset with associated application.

Opens asset in an external editor, texture application or modelling tool depending on what type of asset it is. If it is a text file, lineNumber instructs the text editor to go to that line.