大约有 731 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0043 秒)
Laya_社区(333) Laya3.0_api(99) Laya2.0_api(82) laya_api(76) Laya2.0_文档(63) Laya_示例(46) Laya3.0_文档(20) Laya2.0_示例(12)
...(); text.fontSize = 20; text.text = (Math.random() * 100).toFixed(0); text.rotation = Math.random() * 360; text.color = "#CCCCCC"; text.x = Math.random() * Laya.stage.width; text.y = Math.random() * Laya.stage.height; textBox.addChild(text); } //缓存为静态图像 textBox.cacheAsBitmap = true; La...
来源: Laya_示例 发布时间: 20251130
...ies _lastXRPose gamepadAxis gamepadButton handness lastXRPose position ray rotation EVENT_FRAMEUPDATA_WEBXRINPUT HANDNESS_LEFT HANDNESS_RIGHT Methods addAxisEvent addButtonEvent destroy event hasListener off offAll offAllCaller offAxisEvent offButtonEvent on once Constructors constructor new WebXRIn...
来源: Laya3.0_api 发布时间: 20231115
...t / 2; Laya.timer.frameLoop(1, this, animate); } function animate(e) { ape.rotation += 2; //心跳缩放 scaleDelta += 0.02; var scaleValue = Math.sin(scaleDelta); ape.scale(scaleValue, scaleValue); } })();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import Event = Laya.Even...
来源: Laya_示例 发布时间: 20251130
...house1/warehouse1.lh"); scene.addChild(modelSprite); modelSprite.transform.rotate(new Laya.Vector3(0, 90, 0), false, false);无法实现旋转效果 也不会报任何错误,打断点是确定这个modelSprite是sprite3D对象 附件上传了我的工程文件。 如果是使用Laya.loader.crea...
来源: Laya_社区 发布时间: 20180104
...": 0, "y": 0, "w": 300, "h": 300 }, "sourceSize": { "w": 300, "h": 300 }, "rotated": false, "trimed": true }, "sg2.png": { "frame": { "x": 302, "y": 0, "w": 290, "h": 300, "idx": 0 }, "spriteSourceSize": { "x": 10, "y": 0, "w": 290, "h": 300 }, "sourceSize": { "w": 300, "h": 300 }, "rotated": false,...
来源: Laya_社区 发布时间: 20170329
...的链接 提交 1 个回复 Monica - 知识达人 赞同来自: 可以用rotation对图片进行旋转,可以参考下这个例子旋转缩放 2017-05-31 0 3 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 jison_ailin 相关问题 sprite...
来源: Laya_社区 发布时间: 20170531
....addChild(new Laya.DirectionLight) as Laya.DirectionLight; light.transform.rotate(new Laya.Vector3(-120, 0, 0), false, false); light.shadow = true; light.shadowDistance = 150; light.shadowResolution = 2048; light.shadowPSSMCount = 1; light.shadowPCFType = 3; let plane: Laya.MeshSprite3D = scene.ad...
来源: Laya_社区 发布时间: 20191030
...效呢? A.transform.translate(B.transform.position,false); A.transform.rotate(B.transform.rotation,false,false) ; 2017-12-27 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 183*****755 赞同来自: Vector3 有 c...
来源: Laya_社区 发布时间: 20171227
...t); text.fontSize = 20; text.text = (Math.random() * 100).toFixed(0); text.rotation = Math.random() * 360; text.color = "#ccc"; text.x = Math.random() * Laya.stage.width; text.y = Math.random() * Laya.stage.height; } //缓存为静态图像 textBox.cacheAs = "bitmap"; } } new Sprite_Cache();module l...
来源: Laya2.0_示例 发布时间: 20251130
...注: 2 人 sogetsu • 2018-04-19 17:49 比如TexturePacker里勾选allow rotate,就是图集json里有rotate字段,我试了一下好像加载错了,没有按旋转来
来源: Laya_社区 发布时间: 20180419