大约有 1,873 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0060 秒)
Laya_社区(617) Laya3.0_api(529) Laya2.0_api(242) laya_api(178) Laya2.0_文档(88) Laya_示例(78) Laya3.0_文档(73) Laya2.0_示例(68)
...: Sprite = new Sprite(); // 随机摆放文本 var text: Text; for (var i: number = 0; i < 1000; i++) { text = new Text(); text.fontSize = 20; text.text = (Math.random() * 100).toFixed(0); text.rotation = Math.random() * 360; text.color = "#CCCCCC"; text.x = Math.random() * Laya.stage.width; text.y ...
来源: Laya2.0_示例 发布时间: 20260303
.../LayaUISampl ... annot read property 'start' of null this.sp.emitter.start(Number.MAX_VALUE); TypeError: Cannot read property 'start' of null at LayaUISample.__proto.onAssetsLoaded (http://www.xxx.com/LayaUISample.max.js:440) at EventHandler.__proto.run (http://www.xxx.com/LayaUISample.m...
来源: Laya_社区 发布时间: 20170522
...ya.Sprite3D.WORLDMATRIX, Laya.Shader3D.PERIOD_SPRITE] }; var customShader: number = Laya.Shader3D.nameKey.add("CustomShader"); var vs: string = "attribute vec4 a_Position;\n" + "uniform mat4 u_MvpMatrix;\n" + "uniform mat4 u_WorldMat;\n" + "attribute vec3 a_Normal;\n" + "varying vec3 v_Normal;\n" + ...
来源: Laya_社区 发布时间: 20180904
... 代码如下:public function Food(dishName:String, type:String, index:Number){ this.dishName = dishName; this.type = type; this.index = index; this.setPath(); this.on(Event.MOUSE_DOWN, Food, test); } private function test():void{ trace("test"); }求高手指点啊,有没有好的办法完成这...
来源: Laya_社区 发布时间: 20180407
...otected function createChildren():void { super.createChildren(); var index:Number = getChildIndex(_bg); addChildAt(_progress = new Image(),index + 1); } override protected function changeValue():void{ super.changeValue(); _proMask.scaleX = _value / _max; _proMask.repaint(); console.log("改变值: "...
来源: Laya_社区 发布时间: 20170327
...URL, id, data) { // private completeHandler(data: Object, URL: string, id: number): void { //加载完成返回的data是arraybuffer; //......这里处理我们加密的图片数据,假设我们的图片加密数据是在图片的前面写入了四个字节的数据 //......解密逻辑开始处...
来源: Laya_社区 发布时间: 20180629
... } // 加载进度侦听器 private onLoading(progress: number): void { console.log("加载进度: " + progress); } private onError(err: string): void { console.log("加载失败: " + err); } 运行后得到的结...
来源: Laya_社区 发布时间: 20240705
...ath.random()); let tex:Laya.Texture = Laya.Loader.getRes(this.bUrl); let x:number = this._testStatus == true ? 0:50;//Math.random()>0.5 ? 50 : 0; this._testStatus = !this._testStatus; // let canvasInfo = this.getCanvasWidthHeight(); let ctx = new Laya.Context(); // let w = canvasInfo.w//tex.width...
来源: Laya_社区 发布时间: 20230328
...fnt内容格式也可以,谢谢! 我这个使用不了{"file":"st_number.png","frames":{ "0":{"x":50,"y":184,"w":47,"h":58,"offX":0,"offY":0,"sourceW":47,"sourceH":58}, "1":{"x":99,"y":115,"w":32,"h":57,"offX":0,"offY":0,"sourceW":32,"sourceH":57}, "2":{"x":97,"y":58,"w":48,"h":55,"offX":0,...
来源: Laya_社区 发布时间: 20170830
...nitureList); } private __renderFurnitureItem(cell:FurnitureItemCell, index:number):void { cell.furnitureInfo = cell.dataSource; } http://layaair.ldc.layabox.com ... DList 官方例子也有。 你不写逻辑,代码它自己怎么知道你要显示图片呢~~~~~ z624697 • 2018-03-21 16:55 恩恩...
来源: Laya_社区 发布时间: 20180321