大约有 6,579 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0110 秒)
Laya_社区(5232) Laya3.0_api(482) Laya2.0_文档(363) Laya_示例(154) Laya2.0_示例(116) Laya3.0_文档(101) Laya2.0_api(67) laya_api(64)
... 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
...加入舞台时报错 示例代码: 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
...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
...六个面贴不同的贴图,该如何处理? 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
...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
... 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
...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
...两次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
...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
...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