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

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

451. textInput的单行输入&多行输入(JavaScript-LayaAir基础篇(JS)-文本) [ 65%]

...性 y 的值,用于控制 textInput 对象的显示位置。 textInput.width = 300;//设置 textInput 的宽度。 textInput.height = 200;//设置 textInput 的高度。 textInput.bgColor = "#aabbcc"; Laya.stage.addChild(textInput);//将 textInput 添加到显示列表。 } function Text_InputMult...

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

452. 缓动动画(JavaScript-LayaAir基础篇(JS)-动画基础) [ 65%]

...右移运算符,相当于/2 用>>效率更高) var offsetX = Laya.stage.width - w >> 1; //显示的字符串 var demoString = "LayaBox"; var letterText; for(var i = 0,len = demoString.length;i(动图2) 结合实例代码,然后通过图2的运动效果,我们可以看出,文本"Layabox"...

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

453. 骨骼动画-换装 [ 65%]

....Sprite; // 不支持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 = "#ffffff"; Stat.show(); this.startFun(); } ...

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

454. js环境下使用Loader加载图片在Sprite对象的.on函数无效 [ 65%]

...被触发 //设置背景图片 this.bgimg = new Laya.Sprite(); this.bgimg.width=2*scronw; this.bgimg.height=2*scronh; //加载显示图片,坐标位于0,0 var temptexture=Loader.getRes(pic); if (typeof(temptexture)!="undefined"){ this.bgimg.texture=Loader.getRes(pic) }else{ this.bgimg.loadImage(pi...

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

455. Node类中getChildByName没有null容错 [ 65%]

...:对[Dialog]的texture属性赋值时遇错误:cannot read property 'width' of null TypeError: Cannot read property 'length' of null Laya.stage报null 问题状态 最新活动: 2017-03-23 19:56 浏览: 1347 关注: 2 人 palgerrard • 2017-03-23 20:31 ok,其实还是有可能出现空的。

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

456. LayaBox HelloWorld实战 [ 65%]

...nstance = this; } onBtnShowClick(){ var dialog = new Laya.Dialog(); dialog.width=300; dialog.height=600; //var bg = new Laya.Image('comp/img_bg.png'); //dialog.addChild(bg); var button = new Laya.Button('comp/button.png'); button.label='Hello World!'; button.name = Laya.Dialog.CLOSE; button.width=26...

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

457. 缓动动画(ActionScript-LayaAir基础篇(AS3)-动画基础) [ 64%]

...移运算符,相当于/2 用>>效率更高) var offsetX:int = Laya.stage.width - w >> 1; //显示的字符串 var demoString:String = "LayaBox"; var letterText:Text; //根据"LayaBox"字符串长度创建单个字符,并对每个单独字符使用缓动动画 for (var i:int = 0, len:int = demoSt...

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

458. drawToCanvas内存泄漏 [ 64%]

...加了    let htmlC: HTMLCanvas = Laya.stage.drawToCanvas(Laya.stage.width, Laya.stage.height, 00);         if (htmlC) {             htmlC.toBase64("image/jpeg", 0.3, (base64) => {                 htmlC.releaseResource(true);          ...

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

459. [LayaAir3]3.3.0.beta.3 2d物理RigidBody代码生成问题 [ 64%]

...      const shape = new Laya.BoxShape2D();         shape.x = object.width / 2;         shape.y = object.height / 2;         shape.width = 1;         shape.height = 1;         rigidBody.shapes = [shape];         return rigidBody;     } 附件 : --> 2025-04-03 添加评论...

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

460. 微信小游戏好友排行模糊 [ 64%]

...行依据游戏设计尺寸来调节。 Laya.Browser.window.sharedCanvas.width = 667; Laya.Browser.window.sharedCanvas.height = 1334;   2019-01-11 1 2 分享 微博 QZONE 微信 相识不弃 赞同来自: LayaAir 1.7.19.1 beta用最新版本的引擎 2019-01-09 0 0 分享 微博 QZONE 微信 什...

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