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

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

171. 要做一个方形倒计时,请问该怎么实现,不知道该怎么做 [ 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

172. 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

173. 精灵 · 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

174. 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_示例 发布时间: 20251130

175. 动效问题,没有 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

176. 分享:销毁龙骨动画! [ 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

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

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

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

178. 自定义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_示例 发布时间: 20251130

179. Spine适配版(TypeScript-LayaAir基础篇(TS)-动画基础) [ 64%]

...aya.Browser.width / 2, Laya.Browser.height / 2 + 100); this.skeleton.scale(0.5, 0.5); this.skeleton.on(Laya.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.getAnim...

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

180. 官方LayaAir之灯光一节示例背景在微信里表现不一致 [ 63%]

..., 0); //设置灯光高光色 // light.specularColor = new Laya.Vector3(0, 0.5, 0.5); //添加灯光投影 light.shadow=true; //产生投影的范围(如过小将不会产生投影) light.shadowDistance=45; //生成阴影贴图数量 light.shadowPSSMCount = 1; //模糊等级,越大越高,效果...

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