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

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

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

...h.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, "#ff0000", 1);  if( ! DollGunRole._ani_cached ) { DollGunRole._ani_cached = true; Laya.Anim...

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

952. 多行输入文本组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 62%]

...onAwake(): void { this.txtarea.pos(Laya.stage.width >> 1, Laya.stage.height >> 1); //位置 this.txtarea.size(500, 200); //大小 this.txtarea.pivot(this.txtarea.width/2, this.txtarea.height/2); //轴心点 this.txtarea.text = "大家好,欢迎各位开发者使用LayaAir IDE,这里...

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

953. 加载-销毁Texture使用的图片资源 [ 62%]

...ter.atlas"; //初始化引擎 Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = "showall"; Laya.stage.bgColor = "#232628"; this.init(); //显示性能统计信息 Stat.show(); } /** * ...

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

954. 关于2d内的坐标转换问题 [ 62%]

... 绿色框的坐标 -- 舞台中央坐标(Laya.stage.width*.5,Laya.stage.height*.5) localSp:黑框容器对象 直接带入上面方法即可,中央的坐标你只知道相对于绿色框的坐标,则需要转换一下,很简单: globalPoint = greenBox.localToGlobal(new Laya.Point(x,y));...

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

955. laya.ui.FontClip_API3.0 [ 62%]

...url autoSize hitTestPrior mouseThrough name tag drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy align alpha anchorX anchorY autoPlay blendMode bottom cacheAs centerX centerY clipHeight clipWidth clipX clipY components customRenderEnable dataSource destroyed direction disabl...

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

956. 人物行走图动画 [ 62%]

...var bounds = ani.getGraphicBounds();  ani.pivot(bounds.width / 2, bounds.height / 2);    ani.pos(Laya.stage.width / 2, Laya.stage.height / 2);  console.log(ani.index);  Laya.stage.addChild(ani);  console.log(ani.index); }   json代码如下 {"frames": [ {  "filename": "walk_01.png",  "frame...

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

957. viewportPointToRay产生的射线始终有偏差,是为什么? [ 62%]

... ratioX = (input.x / Laya.stage.width); let ratioY = (input.y / Laya.stage.height); let clientWidth = Laya.stage.clientScaleX * Laya.stage.width let clientHeight = Laya.stage.clientScaleY * Laya.stage.height   // let singleX = (Laya.Browser.width - clientWidth)/2; // let singleY = (Laya.Browser.hei...

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

958. laya.d3.core.scene.BaseScene [ 62%]

...口,Sprite所有的绘图操作都通过Graphics来实现的。Sprite height : Number 表示显示对象的高度,以像素为单位。 高度默认为0,可以手动设置,或者通过getbounds获取实际宽度。设置此高度只用来做鼠标碰撞使用,改变后并不影响显示...

来源: laya_api 发布时间: 20170422

959. 关于微信小游戏渲染子域图的问题 [ 62%]

...成true sprite.graphics.drawTexture(texture, 0, 0, texture.width, texture.height); Laya.stage.addChild(sprite);   }); 2018-11-23 添加评论 已悬赏5元 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 阿噗 赞同来自: if(Browser....

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

960. laya.particle.Particle2D [ 62%]

...e : Boolean[read-only] 表示是否在显示列表中显示。Node displayHeight : Number[read-only] 对象的显示高度(以像素为单位)。 Sprite displayWidth : Number[read-only] 对象的显示宽度(以像素为单位)。 Sprite drawCallOptimize : BooleanSprite  emitter : Emitt...

来源: Laya2.0_api 发布时间: 20190513