大约有 486 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0041 秒)
Laya_社区(338) Laya2.0_文档(56) Laya3.0_文档(33) Laya_示例(23) Laya3.0_api(14) Laya2.0_示例(10) Laya2.0_api(8) laya_api(4)
... let point = { x: collider.owner.x - collider.width * 0.5 * local.x, y: collider.owner.y - collider.height * 0.5 * local.y } 2021-01-23 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 176*****556...
来源: Laya_社区 发布时间: 20201114
...():void { timeLine.addLabel("turnRight",0).to(target,{x:450, y:100, scaleX:0.5, scaleY:0.5},2000,null,0) .addLabel("turnDown",0).to(target,{x:450, y:300, scaleX:0.2, scaleY:1, alpha:1},2000,null,0) .addLabel("turnLeft",0).to(target,{x:100, y:300, scaleX:1, scaleY:0.2, alpha:0.1},2000,null,0) // .add...
来源: Laya_社区 发布时间: 20170327
...100000 var str = styleStr.format((laya.utils.Browser.width - frameWidth) * 0.5, (laya.utils.Browser.height - frameHeight) * 0.5); this.iframe.setAttribute('width', frameWidth); this.iframe.setAttribute('height', frameHeight); this.iframe.setAttribute('style', str); 2017-04-15 添加评论 免费帖 ...
来源: Laya_社区 发布时间: 20170415
...Laya.Tween.to(sp1,{x:100,y:200},500); Laya.Tween.to(sp2,{x:300,y:400,alpha:0.5},500); 与下面的效果是一样的 let origin: any = {x1:sp1.x,y1:sp1.y,x2:sp2.x,y2:sp2.y,alpha2:sp2.alpha}; let target: any = {x1:100,y1:200,x2:300,y2:400,alpha2:0.5}; Laya.Tween.to(origin,target,500).update ...
来源: Laya_社区 发布时间: 20200817
...设置颜色、亮度、对比度、饱和度、色调 colorEffect2D.color(0.5, 0.5, 0.5, 1); colorEffect2D.adjustBrightness(30); colorEffect2D.adjustContrast(8); colorEffect2D.adjustSaturation(30); colorEffect2D.adjustHue(-15); } } 三、 变灰效果 变灰效果是变色效果的一种特殊用...
来源: Laya3.0_文档 发布时间: 20251010
...ild(pointLight); //点光源的颜色 pointCom.color = new Laya.Color(1.0, 0.5, 0.0, 1); //设置点光源的范围 pointCom.range = 3.0; pointLight.transform.position = new Laya.Vector3(0.0, 1, 0.0); 三、DirectionLight Direction Light(平行光)与点光区别较大,它有固定的一个方...
来源: Laya3.0_文档 发布时间: 20251010
...代码如下: this.capsule = new Laya.MeshSprite3D(new Laya.CapsuleMesh(0.5, 1)); var capsuleCollider:Laya.PhysicsCollider = this.capsule.addComponent(Laya.PhysicsCollider);//网格触发器 var capsuleShape:Laya.CapsuleColliderShape = new Laya.CapsuleColliderShape(0.5,1); capsuleCollider.collider...
来源: Laya_社区 发布时间: 20181128
...le: "#00ffff" }); sp.x = 800; sp.scale(0.5,0.5); } })(); 2017-07-12 0 0 分享 微博 QZONE 微信 cuixueying 赞同来自: 这个问题已经确认有问题,正在修复,谢谢反馈! 2017-07-17 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个...
来源: Laya_社区 发布时间: 20170711
... raidius:int = Math.random() * 0.2 + 0.2; var height:int = Math.random() * 0.5 + 0.8; //创建胶囊MeshSprite3D var capsule:MeshSprite3D = scene.addChild(new MeshSprite3D(PrimitiveMesh.createCapsule(raidius, height))) as MeshSprite3D; //创建刚体碰撞器 var rigidBody:Rigidbody3D = capsule.addC...
来源: Laya2.0_文档 发布时间: 20210714
... let o:Matrix4x4 = new Matrix4x4( 0.50000 ,0.00000,0.00000,0.50000, 0.00000,0.50000,0.00000,0.50000, 0.00000 ,0.00000,0.50000,0.50000, 0.00000 ,0.00000,0.00000,1.00000 ...
来源: Laya_社区 发布时间: 20200229