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

大约有 6,579 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0110 秒)

361. StaticModel_MeshSample例子运行不起来 [ 87%]

...      Laya.Stat.show();         var scene = Laya.stage.addChild(new Laya.Scene()) as Laya.Scene;         var camera = scene.addChild(new Laya.Camera(0, 0.1, 100)) as Laya.Camera;         camera.transform.translate(new Laya.Vector3(0, 0.8, 1.5));         camera.transform.r...

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

362. HTMLCanvas Laya.stage.addChild(HTMLCanvas); 挂载到舞台报错 [ 87%]

...加入舞台时报错   示例代码:   var div=Laya.HTMLCanvas.create=new HTMLCanvas("2D");      div.size(600,400);      Laya.stage.addChild(div);      console.log(div);  var myChart = echarts.init(div.getCanvas());  // 指定图表的配置项和数据 var option = { title: { tex...

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

363. 网络和格式-POST [ 87%]

...connect() { const HttpRequest = Laya.HttpRequest, Event = Laya.Event; hr = new HttpRequest(); hr.once(Event.PROGRESS, this, this.onHttpRequestProgress); hr.once(Event.COMPLETE, this, this.onHttpRequestComplete); hr.once(Event.ERROR, this, this.onHttpRequestError); hr.send('http://xkxz.zhonghao.huo.i...

来源: Laya2.0_示例 发布时间: 20251130

364. 一个3D正方体模型,想给它六个面贴不同的贴图,该如何处理? [ 87%]

...六个面贴不同的贴图,该如何处理? var box = scene.addChild(new Laya.MeshSprite3D(new Laya.BoxMesh(1, 1, 1))); box.transform.rotate(new Laya.Vector3(0, 45, 0), false, false); box.transform.translate(new Laya.Vector3(10, 10, 10)); var material = new Laya.StandardMaterial(); material.dif...

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

365. 网络和格式-GET [ 87%]

...connect() { const HttpRequest = Laya.HttpRequest, Event = Laya.Event; hr = new HttpRequest(); hr.once(Event.PROGRESS, this, this.onHttpRequestProgress); hr.once(Event.COMPLETE, this, this.onHttpRequestComplete); hr.once(Event.ERROR, this, this.onHttpRequestError); hr.send('http://xkxz.zhonghao.huo.i...

来源: Laya2.0_示例 发布时间: 20251130

366. UI-Tab [ 87%]

... createTab(skin) { const Tab = Laya.Tab, Handler = Laya.Handler; let tab = new Tab(); tab.skin = skin; tab.labelBold = true; tab.labelSize = 20; tab.labelStrokeColor = "#000000"; tab.labels = "Tab Control 1,Tab Control 2,Tab Control 3"; tab.labelPadding = "0,0,0,0"; tab.selectedIndex = 1; this.onSel...

来源: Laya2.0_示例 发布时间: 20251130

367. Uncaught TypeError: Cannot read property '_tf' of null [ 87%]

...e var _guideImage:Image;   public function main():void {   _guideImage = new Image();   _guideImage.source = Loader.getRes("source/png/ui/1/guideImg.png");     tweenGuide1(_guideImage );     Tween.clearAll(_guideImage);   _guideImage.destroy(true);   _guideImage.dispose();   _guideImage =...

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

368. 关于graphics镂空的问题https://ask.layabox.com/question/139 [ 87%]

...两次draw镂空可点击穿透完全一致的效果。var redBox:Sprite = new Sprite(); redBox.pos(250,200); redBox.autoSize = true; redBox.graphics.drawRect(0,0,100,100,'#ff0000'); Laya.stage.addChild(redBox); redBox.on("click",this,function(){ trace("click redbox"); }); redBox.on("mouseover",this...

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

369. 滤镜-发光滤镜 [ 87%]

...tion setup() { createApe(); applayFilter(); } function createApe() { ape = new Sprite(); ape.loadImage(apePath); var texture = Laya.loader.getRes(apePath); ape.x = (Laya.stage.width - texture.width) / 2; ape.y = (Laya.stage.height - texture.height) / 2; Laya.stage.addChild(ape); } function applayFil...

来源: Laya_示例 发布时间: 20251130

370. UI-ComboBox [ 87%]

...00); cb.autoSize = false; } function createComboBox(skin) { var comboBox = new ComboBox(skin, "item0,item1,item2,item3,item4,item5"); comboBox.labelSize = 30; comboBox.itemSize = 25; comboBox.selectHandler = new Handler(this, onSelect, [comboBox]); Laya.stage.addChild(comboBox); return comboBox; } f...

来源: Laya_示例 发布时间: 20251130