AssetDatabase.OpenAsset
static
function
OpenAsset(instanceID:
int,
lineNumber:
int = -1):
bool;
static bool OpenAsset(int instanceID,
int lineNumber = -1);
static
def
OpenAsset(instanceID as int,
lineNumber as int = -1)
as bool
static
function
OpenAsset(target:
Object,
lineNumber:
int = -1):
bool;
static bool OpenAsset(Object target,
int lineNumber = -1);
static
def
OpenAsset(target as Object,
lineNumber as int = -1)
as bool
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.
Returns true if asset opened successfully.
static
function
OpenAsset(objects:
Object[]):
bool;
static bool OpenAsset(Object[] objects);
static
def
OpenAsset(objects as Object[])
as bool
Description
Opens the asset(s) with associated application(s).
Opens asset in an external editor, texture application or modelling tool depending on what type of asset it is.
Returns true if all assets opened successfully.