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

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

201. [Error] TypeError: null is not an object (evaluating 'this._style._tf') [ 59%]

...itDOMElementInArea(this.videoElement, this.reference, 0, 0, this.reference.width, this.reference.height) 第二: 加Event.RESIZE Laya.stage.on(Laya.Event.RESIZE, this, Laya.Utils.fitDOMElementInArea, [this.videoElement, this.reference, 0, 0, this.reference.width, this.reference.height]) 第三: ...

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

202. 为什么Laya.Panel的子节点在(0,0)位置会不显示呢? [ 59%]

...QZONE 微信 Devilsparta 赞同来自: var panel = new Laya.Panel(); panel.width = 800; panel.y = 30; panel.hScrollBarSkin = null; var sp = new Laya.Sprite(); panel.addChild(sp); sp.x = 0; sp.y = 0; // 用下面这组数据是可显示的 // sp.y = 1; // sp.x = 1; sp.graphics.drawRect(0, 0, 200, 200...

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

203. 超出文本区域的处理&滚动文本(TypeScript-LayaAir基础篇(TS)-文本) [ 59%]

...uctor(){ // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.createText(); } private cre...

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

204. 分享:Dragonbones/Spine的换肤操作 [ 59%]

...数,切换不同皮肤 public function LayaAirDemo() { Laya.init(Browser.width,Browser.height,WebGL);//初始化LayaAir引擎 Stat.show();//舞台左上角显示帧频信息 Laya.stage.bgColor='#EEFFCC';//设置舞台背景色 Laya.stage.alignH='center';//水平居中对齐 Laya.stage.alignV='midd...

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

205. 版本号:2.0.2 beta, 在sound文件夹下音乐播放不了,放入到res文件夹下可播放 [ 58%]

...n: Sprite = this.createButton("播放音效"); soundButton.x = (Laya.stage.width - soundButton.width * 2 + gap) / 2; soundButton.y = (Laya.stage.height - soundButton.height) / 2; Laya.stage.addChild(soundButton);  //创建一个Sprite充当音乐播放按钮 var musicButton: Sprite = this.createBut...

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

206. worker.js 使用问题 [ 58%]

...bGL){             /*__JS__ */bitmap=HTMLImage.create(imageData.width,imageData.height,1);             /*__JS__ */bitmap.loadImageSource(imageData);             /*__JS__ */bitmap._setCreateURL(data.url);         } else {             bitmap = new...

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

207. Laya事件不能添加给多边形吗? [ 58%]

...ickRect = new Laya.Sprite(); clickRect.graphics.drawRect( 0, 0, Laya.stage.width, Laya.stage.height-100, "#ffffff" ); Laya.stage.addChild( clickRect ); clickRect.on( Laya.Event.CLICK, this, function(){ console.log( 'adf' ) } );   我创建一个多边形,然后添加一个点击事件就没反应...

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

208. 微信关系链:LayaAir引擎针对微信小游戏好友关系链实现方案 [ 58%]

..., this, function():void{ //设置共享画布大小 __JS__('sharedCanvas').width = Laya.stage.width; __JS__('sharedCanvas').height = Laya.stage.height; //主域往子域透传消息 __JS__('wx').postMessage({type:"resizeShared",url:"",data:{width:Laya.stage.width,height:Laya.stage.height,matrix:Laya...

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

209. laya.d3.resource.TextureCube_API3.0 [ 58%]

...Memory height id maxMipmapLevel mipmap mipmapCount obsolute referenceCount width wrapModeU wrapModeV wrapModeW blackTexture cpuMemory gpuMemory grayTexture whiteTexture Methods _addReference _clearReference _getSource _removeReference _setCPUMemory _setCreateURL _setGPUMemory destroy event gpuCompre...

来源: Laya3.0_api 发布时间: 20231102

210. 字体切片组件 · LayaAir3.4 · 引擎文档 · LAYABOX [ 58%]

...,此方法只执行一次 onAwake(): void { this.fontclp.pos(Laya.stage.width >> 1, Laya.stage.height >> 1); //位置 this.fontclp.size(500, 60); //大小 this.fontclp.pivot(this.fontclp.width/2, this.fontclp.height/2); //轴心点 this.fontclp.skin = "atlas/comp/fontClip_num.png"; thi...

来源: Laya3.0_文档 发布时间: 20251010