大约有 203 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0040 秒)
...ew Laya.Image("res/layabox.png")); Laya.timer.frameLoop(1, this, functionname); function functionname() { camera.viewport.project(warehouse1.transform.position, camera.projectionViewMatrix, _outPos); 2dname.pos(_outPos.x / Laya.stage.clientScaleX, _outPos.y / Laya.stage.clientScaleY); } bi...
来源: Laya_社区 发布时间: 20180102
...来自: qihei Laya.loader.load("res/atlas/test0.png", Handler.create(this, function():void { var t:Texture = Laya.loader.getRes("res/atlas/test0.png"); ape = new Sprite(); var matrix:Matrix = new Matrix(); matrix.a = -1; matrix.tx = 2*100+ t.width; ...
来源: Laya_社区 发布时间: 20170221
... page2._list.renderHandler = new Handler(this, onRender); function onRender(cell,index){ //如果索引不再可索引范围,则终止该函数 if(index > json.length)return; //获取当前渲染条目的...
来源: Laya_社区 发布时间: 20180717
... * @param e Event 对象。 */ protected function onMouse(e:Event):void { if (toggle === false && _selected) return; if (e.type === Event.CLICK) { toggle && (selected = !_selected)...
来源: Laya_社区 发布时间: 20170926
...oader.load(getModuleJSPath("abc.js"), Handler.create(this,loadedHandler)); function loadedHandler(data:*):void{ //加载完回调 __JS__('window.eval(data + "//# sourceURL=" + "abc.js")'); //new需要的类 var loginView:* = __JS__('new com.modules.login.view.LoginVi...
来源: Laya_社区 发布时间: 20180507
...ani.play("attack"); //等待动画播放完成 Laya.timer.frameLoop(1,this,function(){ //如果当前播放state已经播放完了一次 if(ani.getCurrentAnimatorPlayState().normalizedTime >= 1){ //回到站立状态 ani.play("stand"); } }); } ``` (图6)
来源: Laya2.0_文档 发布时间: 20210715
...from "../script/base/BaseScene"; import BaseScene=base.BaseScene; var REG: Function = Laya.ClassUtils.regClass; export module ui { export class CustomSceneUI extends BaseScene { public txt_hello:Laya.Label; constructor(){ super()} createChildren():void { super.createChildren(); this.loadScene("Custo...
来源: Laya_社区 发布时间: 20200827
...加参数吗 prefab添加runtime脚本 comp._addComponentInstance is not a function 2.0 Beta3版本中,runtime脚本的的问题 看腾讯课程碰到的runtime无效问题 IDE界面编辑中最顶层view设置runtime无效 Cannot connect to runtime process, timeout after 10000 ms 自动关闭 问...
来源: Laya_社区 发布时间: 20170613
...ani.play("attack"); //等待动画播放完成 Laya.timer.frameLoop(1,this,function(){ //如果当前播放state已经播放完了一次 if(ani.getCurrentAnimatorPlayState().normalizedTime >= 1){ //回到站立状态 ani.play("stand"); } }); } ``` (图6)
来源: Laya2.0_文档 发布时间: 20210715
...物模型动画播放的速度慢一些 qian • 2018-01-25 17:01 public function play(name:String = null, playbackRate:Number = 1.0):void playbackRate : Number播放速率 你去看看animator的api LM20081991 • 2018-01-25 17:07 @qian: 好的谢谢
来源: Laya_社区 发布时间: 20180125