• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 4,373 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0098 秒)

1951. 节点的visible在初始化的时候生效,但是在Event的方法里面不生效 为什么呢? [ 69%]

...= 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

1952. 3D模型无法用Tween类吗 [ 69%]

...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

1953. WebGLContext2D arcTo方法如果设置了setPathId 无法绘制 [ 69%]

...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

1954. ios load后 声音播放问题 [ 69%]

...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

1955. h5 js项目打包发布后报错 [ 69%]

...本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

1956. htmlCanvas 像素级操作 [ 69%]

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

1957. HTMLDivElement如何设置文本区域内可以上下拖动的效果 [ 69%]

...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

1958. 发现一个问题Laya.Animation()创建后移除,再创建,位置会变 [ 69%]

... 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

1959. 销毁资源并释放内存(JavaScript-3D基础(JS)-LayaAir3D的内存管理) [ 69%]

...ey2/Assets/LayaMonkey/LayaMonkey-LayaMonkey.lm", Laya.Handler.create(this, function(mesh) { ........ //上面省略,我们再网格加载完成3秒后对该网格进行销毁 Laya.timer.once(3000,this,function() { //销毁了使用了该网格的精灵 layaMonkey.destroy(); //对网格进行销毁...

来源: Laya2.0_文档 发布时间: 20210715

1960. 3D物理引擎有没有什么办法可以像unity的constraint那样锁住某些轴的旋转与位移么? [ 69%]

...节点上的,会报 Uncaught TypeError: this.owner.localToGlobal is not a function TypeError: this.owner.localToGlobal is not a function 这个错误. 如果可以用2D引擎挂载到3D物体上,也是可以解决我现在的问题,如果这个方面可以有解决方案,也可以提供一下思路....

来源: Laya_社区 发布时间: 20190714