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

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

171. 在安卓手机上drawToTexture不能正确返回纹理对象,是HTMLCanvas [ 66%]

...phics.drawTexture(this._agentTexture, (this._agent.width - bounds.width) * 0.5, (this._agent.height - bounds.height) * 0.5);   }   附件 : --> 2021-09-11 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 3 个回复 Laya_Fred...

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

172. Sprite-新手引导 [ 66%]

...skArea = new Sprite(); guideContainer.addChild(maskArea); maskArea.alpha = 0.5; maskArea.graphics.drawRect(0, 0, Laya.stage.width, Laya.stage.height, "#000"); // 绘制一个圆形区域,利用叠加模式,从遮罩区域抠出可交互区 interactionArea = new Sprite(); guideContainer.addChild(...

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

173. 要做一个方形倒计时,请问该怎么实现,不知道该怎么做 [ 66%]

... Rectangle(0,0,BarCell.WID,BarCell.WID); private var pos:int = BarCell.WID*0.5; private var endTime:int; private var cdTime:int; public var isCd:Boolean = false; public function CdSprite() { super(); this.scrollRect = rect; this.alpha = 0.85; } public function setSize(bian:int):void{ r = bian / Math...

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

174. Spine适配版(JavaScript-LayaAir基础篇(JS)-动画基础) [ 66%]

...eton.pos(Browser.width / 2, Browser.height / 2 + 100); this.skeleton.scale(0.5, 0.5); this.skeleton.on(Event.STOPPED, this, this.play) this.play(); } private onError(): void{ console.log("parse error"); } private play(): void { console.log("1111111111"); if(++this.index >= this.skeleton.getAnimNum()...

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

175. 精灵 · LayaAir3.3 · 引擎文档 · LAYABOX [ 66%]

...轴心点 this.sprite.pivotY = this.sprite.height/2; this.sprite.anchorX = 0.5; //锚点:sprite的中心 this.sprite.anchorY = 0.5; this.sprite.scale(0.5, 0.5); //缩放大小 this.sprite.scaleX = 2; //x、y分别设置缩放 this.sprite.scaleY = 2; this.sprite.skew(5, 5); //倾斜度 this.sprite.sk...

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

176. Sprite3D-Sprite3D变换 [ 65%]

... Laya.Camera(0, 0.1, 100)); camera.transform.translate(new Laya.Vector3(0, 0.5, 1)); camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); Laya.loader.create("../../res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh", Laya.Handler.create(this, onComplete)); function onComplete() { layaMo...

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

177. 动效问题,没有 ui.TestPUI,官方文档是错的,几年了至今无解答 [ 65%]

...d":"linearNone","tween":true,"target":3,"key":"scaleY","index":0},{"value":0.5,"tweenMethod":"linearNone","tween":true,"target":3,"key":"scaleY","index":2},{"value":1,"tweenMethod":"linearNone","tween":true,"target":3,"key":"scaleY","index":10}],"scaleX":[{"value":1,"tweenMethod":"linearNone","tween...

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

178. 分享:销毁龙骨动画! [ 65%]

...ry.buildArmature(0); mArmature.x = 400; mArmature.y = 500; mArmature.scale(0.5, 0.5); Laya.stage.addChild(mArmature); mArmature.on(Event.STOPPED, this, completeHandler); play(); } private function completeHandler():void { play(); } private function play():void { mCurrIndex++; if (mCurrIndex >= mA...

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

179. 布局容器 · LayaAir3.3 · 引擎文档 · LAYABOX [ 64%]

...数组元素与列的对应顺序。 Ratio 设置比例。假设设置为0.5,则表示对应的列在水平方向占50%的宽度。 Piority 设置优先级。在运行时,这个值会被标准化为(-1, 0, 1)三个值之一。当item的宽度超出或者不足列的宽度时,会先调整优先...

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

180. 自定义shader-简单shader [ 64%]

... Laya.Camera(0, 0.1, 100)); camera.transform.translate(new Laya.Vector3(0, 0.5, 1.5)); camera.addComponent(CameraMoveScript); var layaMonkey = scene.addChild(new Laya.MeshSprite3D(Laya.Mesh.load("../../res/threeDimen/skinModel/LayaMonkey/Assets/LayaMonkey/LayaMonkey-LayaMonkey.lm"))); layaMonkey.tra...

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