Commit 52485bd2 authored by rockyl's avatar rockyl

增加getAssetByName方法

parent 2ab6ba47
......@@ -150,6 +150,9 @@ var module = {
function getAssetByUUID(uuid){
return engine.resolveCustomAsset('${id}', uuid);
}
function getAssetByName(name){
return getAssetByUUID(engine.getAssetByName(name).uuid);
}
function getProps(){
return engine.getProps('${id}');
}
......
This diff is collapsed.
......@@ -156,6 +156,9 @@ var module = {
function getAssetByUUID(uuid){
return engine.resolveCustomAsset('${id}', uuid);
}
function getAssetByName(name){
return getAssetByUUID(engine.getAssetByName(name).uuid);
}
function getProps(){
return engine.getProps('${id}');
}
......
This diff is collapsed.
......@@ -155,6 +155,9 @@ var module = {
function getAssetByUUID(uuid){
return engine.resolveCustomAsset('${id}', uuid);
}
function getAssetByName(name){
return getAssetByUUID(engine.getAssetByName(name).uuid);
}
function getProps(){
return engine.getProps('${id}');
}
......
This diff is collapsed.
......@@ -23,6 +23,9 @@ var module = {
function getAssetByUUID(uuid){
return engine.resolveCustomAsset('${id}', uuid);
}
function getAssetByName(name){
return getAssetByUUID(engine.getAssetByName(name).uuid);
}
function getProps(){
return engine.getProps('${id}');
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment