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

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

131. Sprite-缓存为静态图像 [ 75%]

...(); 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

132. laya.d3.webxr.core.WebXRInput_API3.0 [ 75%]

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

133. Sprite-旋转缩放 [ 75%]

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

134. 3D模型旋转定位问题 [ 75%]

...house1/warehouse1.lh"); scene.addChild(modelSprite); modelSprite.transform.rotate(new Laya.Vector3(0, 90, 0), false, false);无法实现旋转效果 也不会报任何错误,打断点是确定这个modelSprite是sprite3D对象 附件上传了我的工程文件。   如果是使用Laya.loader.crea...

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

135. 图集打包后使用Texture不显示啊 [ 75%]

...": 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

136. 2D图片可以做y轴旋转吗? [ 75%]

...的链接 提交 1 个回复 Monica - 知识达人 赞同来自: 可以用rotation对图片进行旋转,可以参考下这个例子旋转缩放 2017-05-31 0 3 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 jison_ailin 相关问题 sprite...

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

137. unity导出的场景不显示实时阴影 [ 75%]

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

138. 3d模型位置设置 [ 75%]

...效呢? 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

139. Sprite-缓存为静态图像 [ 75%]

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

140. laya能加载带旋转的图集吗 [ 75%]

...注: 2 人 sogetsu • 2018-04-19 17:49 比如TexturePacker里勾选allow rotate,就是图集json里有rotate字段,我试了一下好像加载错了,没有按旋转来

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