大约有 1,210 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0076 秒)
Laya_社区(874) Laya2.0_文档(85) Laya3.0_api(61) Laya2.0_api(58) laya_api(55) Laya_示例(32) Laya2.0_示例(27) Laya3.0_文档(18)
... __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
...果可以当作图片源,再次绘制到其他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
...果可以当作图片源,再次绘制到其他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
...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
...链接 提交 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
...么查到它的用法? this.lastMouseX = NaN;为什么用this,而不是var lastMouseX = NaN; CameraMoveScript.prototype._update = function (state){...}像这句,prototype是什么,_update 又是什么,这些都可以直接点出来的,但又查不到API,怎么学?还有state这参数...
来源: Laya_社区 发布时间: 20170315
...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
...Dialog組建 在 .as文件中 继承 这个UI 写入代码 Dialog组件的 var 值 a ; a.popup(); 就会在控制台输出 Can not create :Dialog;
来源: Laya_社区 发布时间: 20180423
...现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
...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