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

大约有 279 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0066 秒)

171. 2.2.0beta2中,ui使用相对布局时初始化会报错 [ 61%]

...._widget没有值,   和以前的版本对比,是因为this._widget和super()的位置对调了,导致在createChildren()时_widget还没有进行初始化   2.2.0beta2   以前的版本   附件 : --> LayoutTest2.zip 2019-08-08 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有...

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

172. tiledmap 可以在图块层的指定格子上添加Sprite吗 [ 61%]

...信 nazgul 赞同来自: constructor(mapname:string, x:number, y:number){ super(); //显示登陆界面 this.tMap = new Laya.TiledMap() this.tMap.antiCrack = true //创建Rectangle实例,视口区域 var viewRect:Laya.Rectangle = new Laya.Rectangle(0, 0, Conf.App_Width, Conf.App_Height); //创建T...

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

173. 2.3.0beta 各种bug [ 61%]

...canCollideWith = Physics3DUtils.COLLISIONFILTERGROUP_ALLFILTER) {      super(collisionGroup, canCollideWith);        // this._enableProcessCollisions = false;      }   拖尾重置   拖尾提供重置方法       TrailFilter       resetGeometry(){ var render = this._owner._rend...

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

174. dialog里面的内容怎么不能添加到舞台 [ 61%]

...txt} // console.log(); } } console.log('+++++++++++++++++++') console.log(_super); console.log(fooddata); self.foodList.dataSource = fooddata; console.log(self.foodList.dataSource); console.log(self.foodList._array[0].food); //实例化角色容器 var foodBox = new Laya.Sprite(); //添加到舞台...

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

175. 关于要自定shader的同学 [ 61%]

...ds Laya.Value2D {class ShaderValue extends Laya.Value2D { constructor () { super(0, 0) var _vlen = 8 * Laya.CONST3D2D.BYTES_PE this.position = [2, Laya.WebGLContext.FLOAT, false, _vlen, 0] this.texcoord = [2, Laya.WebGLContext.FLOAT, false, _vlen, 2 * Laya.CONST3D2D.BYTES_PE] this.color = [4, Laya.W...

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

176. 2.0版本可用的CameraMoveScript.ts [ 61%]

... protected scene: Laya.Scene3D;      constructor() {         super();      }      /**      * @private      */     protected _updateRotation(): void {         if (Math.abs(this.yawPitchRoll.y) < 1.50) {             Laya.Quaternion.createFromY...

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

177. ScrollRect设置会引起其他的UI资源无法正在显示 [ 60%]

...e = new Sprite(); private var arr:Array = []; public function TestView() { super(); _path.pivot(0,0); _path.pos(a.x,a.y); this.addChild(_path); _path.rotation = Math.atan2(b.y - a.y, b.x - a.x) / Math.PI * 180; var len:int = Math.floor(GetPathLen()/PATH_LEN)+2; var p:Image; for(var i:int = 0;i<le...

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

178. 如何自定义Shader(ActionScript-3D基础(AS3)-LayaAir3D之shader) [ 60%]

... CustomMaterial extends Laya.Material { public function CustomMaterial() { super(); //设置本材质使用的shader名字 this.setShaderName("CustomShader"); } } ``` #### 4.使用自定义材质 ​ 在使用自定义材质之前,一定要记得初始化自己的Shader。LayaAir中自带的材质...

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

179. 微信小游戏加载资源问题 [ 60%]

...niSoundChannel extends Laya.SoundChannel { constructor(audio, miniSound) { super(); this._audio = audio; this._miniSound = miniSound; this._onEnd = MiniSoundChannel.bindToThis(this.__onEnd, this); audio.onEnded(this._onEnd); } static bindToThis(fun, scope) { var rst = fun; rst = fun.bind(scope); ret...

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

180. 我在Layasample主类中,检测键盘按下并输出一切正常,可是放到其他类里面则能检测到按键按下,却一直输出undefined [ 60%]

...测到按键按下,却一直输出undefined var GameStart = (function (_super) {     function GameStart() {         GameStart.super(this);         Laya.stage.on(Laya.Event.KEY_DOWN,LayaSample,Test);     }     function Test(e){         console.log(e.keycode);     ...

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