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

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

731. 新人求教!!! [ 50%]

...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

732. Image属性详解(ActionScript-IDE篇(AS3)-IDE组件属性详解) [ 50%]

...Image = new Image("../../../../res/ui/dialog (3).png"); //设置位置 img.pos(165, 62.5); //加载到舞台 Laya.stage.addChild(img); } } } ```

来源: Laya2.0_文档 发布时间: 20210714

733. 运行第一个hello,一直黑屏,没有东西显示出来 如何解决? [ 50%]

...置为粗体 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

734. 执行回调函数时报is not a function [ 50%]

...微信小程序报错window.focus is not a function Text类中竟然没有pos函数的api~ 编辑了图片 执行代码说加载不出来资源 这个是怎么回事? 关于shader中opengl函数问题 网络send 不回调?什么情况? 资源加载后的 回调 layaair2.0)请问js的Laya.Eve...

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

735. 在 tiledmap 插入一个精灵在上面 [ 50%]

...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

736. 在脚本里自定义IDE属性预制体数组类型获取的结果不对 [ 50%]

...          Laya.stage.addChild(bar);             bar.pos(Browser.clientWidth/2,Browser.clientHeight/2);         } 不要直接取数组,把数组里面的地址加载,就可以获取prefab,希望对你有所帮助   2018-11-08 0 2 分享 微博 QZONE 微信 建章...

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

737. laya.physics.PhysicsDebugDraw_API3.0 [ 50%]

...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

738. 【经验分享】如何让ts项目支持装饰器语法,以及自动化发布相关的一些东西 [ 50%]

...该文件的 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

739. Laya List给子元素添加事件后,滚动事件被劫持了 [ 50%]

...   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

740. PixelLineSprite3D 绘制线段问题 [ 50%]

...个目标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