Python_8.タイプ、ネーム、パスの取得
# -*- coding: utf-8 -*-
import engine.cmds as cmds
import engine.wpf as wpf
texture = cmds.findAsset( 'assets:/systems/rendering/ColorCubeLinear.dds' )
behavior = cmds.findAsset( 'assets:/systems/script/Behavior.template.cs' )
print texture.Type
print behavior.Type
# TextureAsset
# ScriptTemplateAsset
#findAsset Uri, FilePathからAssetを探査して取得する
--------------------------------------
# -*- coding: utf-8 -*-
import engine.cmds as cmds
path = 'systems/rendering/ColorCubeLinear.dds';
dds = cmds.findAsset( path );
print dds.Name
print dds.ResourcePath
print dds.Type
"""
# Result
ColorCubeLinear
systems/rendering/ColorCubeLinear.tex
TextureAsset
"""