大约有 4,373 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0098 秒)
Laya_社区(2475) Laya3.0_api(673) Laya2.0_api(357) laya_api(289) Laya2.0_文档(271) Laya_示例(157) Laya2.0_示例(116) Laya3.0_文档(35)
...= trainItem; 后续有一个事件 option.on(Laya.Event.MOUSE_DOWN, null, function(e){ option.startDrag({}, false, 1) }) option.on(Laya.Event.MOUSE_MOVE, null, function(){ questionNode.answers.visible = true; //这个不生效 }); 2017-09-22 0 0 分享 微博 QZONE 微信 为什么被折...
来源: Laya_社区 发布时间: 20170921
...en.to(box.potOld,{ x:1 ,y:2 ,update:new Laya.Handler(box,function(){ this.transform.position = this.potOld; }) }, ConstValue.animationTime,Laya.Ease.elasticOut,Laya.Handler.create(this, function(){ console.log("complete"); }),ConstValue.animationDelay); ...
来源: Laya_社区 发布时间: 20180112
...arcTo方法如果设置了setPathId 无法绘制。 源码 override public function arcTo(x1:Number, y1:Number, x2:Number, y2:Number, r:Number):void { if (mId != -1) { var tShape:IShape = VectorGraphManager.getInstance().shapeDic[this.mId]; if (mHaveKey ) { ...
来源: Laya_社区 发布时间: 20190708
...ler.create(this, onLoaded), Handler.create(this, onLoading, null, false)); function onLoaded(){ console.log(Laya.loader.getRes(src)); } 在chrome,安卓下都是正常的,在ios和mac Safari下是undefined 放在一个sprite的click事件里 同样也是undefined 2017-08-11 添加评论 ...
来源: Laya_社区 发布时间: 20170811
...本1.7.6laya.ui.min.js:1 Uncaught TypeError: this.preinitialize is not a function at i (laya.ui.min.js:1) at i (laya.ui.min.js:1) at i (laya.ui.min.js:2) at mainUI (layaUI.max.all.js:14) at Function.<anonymous> (laya.core.min.js:1) at e (main.min.js:1) ...
来源: Laya_社区 发布时间: 20170809
htmlCanvas 像素级操作 function showSprite() { Laya.loader.load("../src/img/testImg.png",Laya.Handler.create(this,graphicsImg)); } function graphicsImg() { //临时sprite var img = new Laya.Sprite(); //img.graphics.drawTexture(Laya.loader.getRes(("../src/img/testImg.png"),0,0)); //获取图片...
来源: Laya_社区 发布时间: 20180413
...gl.WebGL; public class HelloLaya { private var html:HTMLDivElement; public function HelloLaya() { Laya.init(600, 600,WebGL); Laya.stage.bgColor="#eeffcc"; var sp:Sprite=new Sprite(); sp.graphics.drawRect(50,50,300,300,null,"#0000FF",2); Laya.stage.addChild(sp); html=new HTMLDivElement(); html.innerH...
来源: Laya_社区 发布时间: 20170905
... zjwytqm 赞同来自: 重复执行创建移除,加两个按钮 function btn1(){//创建这行代码全没有变化的 cAnimation("jx10","dzb/shan10.json",100,100,327,22,200,game,false,1,1,0,null,true,null); } function btn2(){//移除 game.r...
来源: Laya_社区 发布时间: 20180411
...ey2/Assets/LayaMonkey/LayaMonkey-LayaMonkey.lm", Laya.Handler.create(this, function(mesh) { ........ //上面省略,我们再网格加载完成3秒后对该网格进行销毁 Laya.timer.once(3000,this,function() { //销毁了使用了该网格的精灵 layaMonkey.destroy(); //对网格进行销毁...
来源: Laya2.0_文档 发布时间: 20210715
...节点上的,会报 Uncaught TypeError: this.owner.localToGlobal is not a function TypeError: this.owner.localToGlobal is not a function 这个错误. 如果可以用2D引擎挂载到3D物体上,也是可以解决我现在的问题,如果这个方面可以有解决方案,也可以提供一下思路....
来源: Laya_社区 发布时间: 20190714