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

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

701. 百度小游戏 内存不断增大的情况 [ 63%]

... __proto.onLoaded=function(){ if(this.isOpen){ return; } this.isOpen=true; var testView=new TestView(); Laya.stage.addChild(testView); Laya.timer.once(200,this,this.removeUi,[testView]); } __proto.removeUi=function(ui){ if(ui!=null){ ui.destroy(); this.isOpen=false; } }  代码主要是做了重复...

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

702. laya.ui.FrameClip [ 63%]

...果可以当作图片源,再次绘制到其他Sprite里面,示例: var htmlCanvas:HTMLCanvas = sprite.drawToCanvas(100, 100, 0, 0);//把精灵绘制到canvas上面 var texture:Texture = new Texture(htmlCanvas);//使用htmlCanvas创建Texture var sp:Sprite = new Sprite().pos(0, 200);//创建精...

来源: laya_api 发布时间: 20170422

703. laya.ui.DialogManager [ 63%]

...果可以当作图片源,再次绘制到其他Sprite里面,示例: var htmlCanvas:HTMLCanvas = sprite.drawToCanvas(100, 100, 0, 0);//把精灵绘制到canvas上面 var sp:Sprite = new Sprite();//创建精灵 sp.graphics.drawTexture(htmlCanvas.getTexture());//把截图绘制到精灵上 Laya.st...

来源: Laya2.0_api 发布时间: 20190513

704. 分享:简单聊天室 [ 63%]

...rt ui.test.HtmlPageUI; public class HtmlView1 extends HtmlPageUI { private var str:String; private var str2:String; private var isSend:Boolean=false; public function HtmlView1() { super(); // 文本样式一 str="<span color='blue' style=' font" + ":18px 华文琥珀' href='http://ask.layabox.com...

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

705. HTMLDivElement img 标签问题 [ 63%]

...链接 提交 3 个回复 cuixueying 赞同来自: 改下你的代码: var html:HTMLDivElement=new HTMLDivElement(); html.innerHTML="<img src='head3.png' style='width:100px;height:100px'></img>"; Laya.stage.addChild(html);用style下的width和height就好了! 2017-03-29 0 0 分享 ...

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

706. 新手,如何看懂官方代码? [ 63%]

...么查到它的用法? this.lastMouseX = NaN;为什么用this,而不是var lastMouseX = NaN; CameraMoveScript.prototype._update = function (state){...}像这句,prototype是什么,_update 又是什么,这些都可以直接点出来的,但又查不到API,怎么学?还有state这参数...

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

707. 3D物体检测到碰撞后,被碰撞物被移除的时候过30秒再次出现?并添加到舞台 [ 63%]

...if(this.tsizex > this.osizex && this.tsizez > this.osizez) { var eat = new Laya.Vector3(0, 0.5, 0);//龙卷风方法直接上升 other.owner.transform.translate(eat,true,false); //0.1秒后删除 Laya.timer.once(100, null, Wipe); function Wipe() { console.log(other._owner); //移除自...

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

708. View嵌套Dialog组件 ? [ 63%]

...Dialog組建 在 .as文件中 继承 这个UI 写入代码 Dialog组件的 var 值 a ; a.popup(); 就会在控制台输出 Can not create :Dialog;

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

709. 调用ui,new的时候出现Uncaught TypeError: Cannot read property 'call' of undefined [ 63%]

...现Uncaught TypeError: Cannot read property 'call' of undefined 代码: var Test = (function(_surper){    function Test(){         Test.super(this);     };     Laya.class(Test, "Test", _surper);     return Test;      })(ui.TestUI);     报错Uncaught TypeError: Cannot read propert...

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

710. 使用多个时间轴动画 demo.ani(0,true,'name')失效 [ 63%]

...his, onLoaded)); function onLoaded() { // //创建一个Animation实例 // var tl = new Laya.Animation(); // //加载动画文件 // tl.loadAnimation("test.ani"); // //添加到舞台 // Laya.stage.addChild(tl); // //播放Animation动画 // tl.play(); //创建一个新的Animation实例 var tl2 = n...

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