大约有 987 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0058 秒)
Laya_社区(609) Laya2.0_文档(80) Laya3.0_api(67) Laya2.0_api(60) laya_api(56) Laya2.0_示例(41) Laya_示例(37) Laya3.0_文档(37)
...g.on("click",this,this.switchImg); //设置图片坐标 this.img.pos(100,50); } private switchImg():void{ //清空绘制 this.img.graphics.clear(); //获得要切换的图片资源路径 var imgUrl:String = (this.flag = !this.flag)? this.monkey2:this.monkey1; //获取图片...
来源: Laya_社区 发布时间: 20180226
...Image = new Image("../../../../res/ui/dialog (3).png"); //设置位置 img.pos(165, 62.5); //加载到舞台 Laya.stage.addChild(img); } } } ```
来源: Laya2.0_文档 发布时间: 20210714
...置为粗体 txt.bold = true; //设置文本的显示起点位置X,Y txt.pos(60,100); //设置舞台背景色 Laya.stage.bgColor = '#23238E'; //将文本内容添加到舞台 Laya.stage.addChild(txt); 2017-10-19 0 0 分享 微博 QZONE 微信 keailuo 赞同来自: 这个是整个demo hello.rar 2017-...
来源: Laya_社区 发布时间: 20171019
...微信小程序报错window.focus is not a function Text类中竟然没有pos函数的api~ 编辑了图片 执行代码说加载不出来资源 这个是怎么回事? 关于shader中opengl函数问题 网络send 不回调?什么情况? 资源加载后的 回调 layaair2.0)请问js的Laya.Eve...
来源: Laya_社区 发布时间: 20170622
...ledMap.getLayerByIndex(1); console.info(mapLayer.layerName); this.sp.pos(0,0); mapLayer._childs[0].addChild(this.sp); } } new GameInfo(); 遇到的问题1 把精灵插入地图时 如果代码这样写就会报错 mapLayer.addChild(this.sp); 必须要这样写才可以 mapLayer...
来源: Laya_社区 发布时间: 20171125
... Laya.stage.addChild(bar); bar.pos(Browser.clientWidth/2,Browser.clientHeight/2); } 不要直接取数组,把数组里面的地址加载,就可以获取prefab,希望对你有所帮助 2018-11-08 0 2 分享 微博 QZONE 微信 建章...
来源: Laya_社区 发布时间: 20181108
...rDeserialize onAwake onDestroy onDisable onEnable once parentRepaint pivot pos reCache removeChild removeChildAt removeChildByName removeChildren removeSelf repaint replaceChild runCallLater scale setChildIndex setGraphics setSelfBounds set_anchorX set_anchorY set_height set_scaleX set_scaleY set_tr...
来源: Laya3.0_api 发布时间: 20231115
...该文件的 16065 行注释掉,注释后的代码如下: error(err, pos) { if (typeof err === 'string') err = { message: err }; if (pos) augmentCodeLocation(err, pos, curSource, id); err.id = id; err.hook = 'transform'; // return pluginContext.error(err); },该方法虽然可以解决 tslib 找...
来源: Laya_社区 发布时间: 20201223
... storeTxList.name = 'storeTxList'; storeTxList.width = 610; storeTxList.pos(0, 0); storeTxList.repeatX = repeatX; storeTxList.repeatY = repeatY; //y轴个数 // 使用但隐藏滚动条 storeTxList.vScrollBarSkin = "store/c.png"; let scrollBar = storeTxList.getChildByName('scrollBar'); scrollBar....
来源: Laya_社区 发布时间: 20190711
...个目标OBJ, 首先获得目标的坐标this.objPoint3D= OBJ.transform.position2. 从摄像机(透视)构造一条射线(参考官方3D鼠标点击案例),来得到一个鼠标点击坐标this.originRay = new Laya.Ray(this.sceneCamera.transform.position, new Laya.Vector3(0, 0, 0)) let p...
来源: Laya_社区 发布时间: 20200617