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

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

401. Sprite-旋转缩放 [ 80%]

...a.Stage; // 不支持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.showApe(); } showApe() { th...

来源: Laya2.0_示例 发布时间: 20251209

402. IFlash的扩展功能有哪些呢? [ 80%]

...链接 提交 1 个回复 cuixueying 赞同来自: (1)Iflash.setSize(width:int,height:int); 设置浏览器舞台的宽高。该值一般同步SWF(width="width",height="height") IFlash.setSize (600,600);//设置舞台宽为600,高为600; (2)IFlash. setBgcolor(value:String); 设...

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

403. 十几秒以后动画渲染时间变长,帧率变慢,是怎么回事? [ 80%]

...area.w; this._doll_area.h = doll_area.h; }  // 设置容器的宽高 this.width = Math.max( this._blood_area.w, this._demon_area.w, this._doll_area.w );  this.height = this._blood_area.h + this._demon_area.h + this._doll_area.h;  this.graphics.drawRect( 0, 0, this.width, this.height, null, "#ff00...

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

404. 解决fitDOMElementInArea在ios下不能正常显示 [ 80%]

...显示     Utils.fitDOMElementInArea=function(dom,coordinateSpace,x,y,width,height){         if (!dom._fitLayaAirInitialized){             dom._fitLayaAirInitialized=true;             dom.style.transformOrigin=dom.style.webKittransformOrigin="left top"; 修改为...

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

405. 寻路系统(JavaScript-3D基础(JS)-LayaAir3D之高级应用) [ 80%]

...据计算得到AStar网格 */ createGridFromAStarMap(texture) { var textureWidth = texture.width; var textureHeight = texture.height; //读取图片像素 var pixelsInfo = texture.getPixels(); var aStarArr = []; var index = 0; //像素值为黑色不可通行,白色部分可以通行 for (var w = ...

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

406. 1.7.11 Sprite.loadimage [ 80%]

...版本) (64 位)  应该是目前最新的了 一 关于Sprite 的 width height 1. sp.loadImage('xxx.png',0,0,0,0,callback)调用方式 能否获取 立即调用宽高属性 no 回调 yes 延时(能够确保load的时间) yes没毛病 2. sp.loadImage('xxx.png',0,0,100,100,callback)调用方...

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

407. 计时器-延迟执行 [ 80%]

...tion() { // 不支持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"; setup(); })(); function setup() ...

来源: Laya_示例 发布时间: 20251209

408. UI-RefreshList [ 80%]

...加场景中需要使用的资源 this.baseBox = new Box(); this.baseBox.width = 443; this.baseBox.height = 622; this.baseBox.pos(30, 28); this.baseBox.bgColor = "#ffffff"; // 加载进度条 this.refreshLoading = new Box(); this.refreshLoading.pos(133, 0); this.refreshLoading.bottom = 10; this.refr...

来源: Laya2.0_示例 发布时间: 20251209

409. laya.resource.RenderTexture2D_API3.0 [ 80%]

...apCount obsolute offsetX offsetY referenceCount samples sourceHeight sourceWidth width wrapModeU wrapModeV wrapModeW cpuMemory currentActive gpuMemory Methods _addReference _clearReference _removeReference _setCPUMemory _setCreateURL _setGPUMemory clear destroy end event getData getIsReady gpuCompre...

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

410. bitmapFont.loadFont()加载多个地址导致位图输出重 [ 80%]

...FontLoaded(bitmapFont: BitmapFont,value1:string):void { bitmapFont.setSpaceWidth(10); Text.registerBitmapFont(this.fontName, bitmapFont); var txt: Text = new Text(); txt.width = 250; txt.wordWrap = true; txt.text=value1; txt.font =this.fontName; txt.leading = 30; txt.pos(Laya.stage.width - txt.width...

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