大约有 486 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0046 秒)
Laya_社区(338) Laya2.0_文档(56) Laya3.0_文档(33) Laya_示例(23) Laya3.0_api(14) Laya2.0_示例(10) Laya2.0_api(8) laya_api(4)
... 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
...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
...轴心点 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
... 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
...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
...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
...数组元素与列的对应顺序。 Ratio 设置比例。假设设置为0.5,则表示对应的列在水平方向占50%的宽度。 Piority 设置优先级。在运行时,这个值会被标准化为(-1, 0, 1)三个值之一。当item的宽度超出或者不足列的宽度时,会先调整优先...
来源: Laya3.0_文档 发布时间: 20251010
... 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
...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
..., 0); //设置灯光高光色 // light.specularColor = new Laya.Vector3(0, 0.5, 0.5); //添加灯光投影 light.shadow=true; //产生投影的范围(如过小将不会产生投影) light.shadowDistance=45; //生成阴影贴图数量 light.shadowPSSMCount = 1; //模糊等级,越大越高,效果...
来源: Laya_社区 发布时间: 20180307