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

大约有 3,582 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0077 秒)

381. rigidBody.applyForce 物体不会移动 [ 86%]

...z: number = 0; private yaw: number = 0; private pitch: number = 0; private animator: Laya.Animator; private point: Laya.Vector2 = new Laya.Vector2(); private _ray: Laya.Ray; private _outHitResult: Laya.HitResult; private text: Laya.Text = new Laya.Text(); constructor() { //初始化引擎 Laya3D.ini...

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

382. 动画-新版骨骼动画 [ 86%]

...h")); zombie.once(Laya.Event.HIERARCHY_LOADED, this, function () { //获取Animator动画组件 zombieAnimator = zombie.getChildAt(0).getComponentByType(Laya.Animator); loadUI(); }); function loadUI() { var clipName = ["walk","attack","left_fall","right_fall","back_fall"]; var curStateIndex = 0; Lay...

来源: Laya_示例 发布时间: 20241001

383. View下编辑的动画如何正确播放 [ 86%]

...的动画如何正确播放 新建一个空View,然后组件->2D->Animation托入View下。通过时间轴,编辑一个简单的透明度变化动画。在View下的Animation组件下加入一个文本节点。在动画编辑模式下,可以正常播放透明动画。导出该UI,代码...

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

384. Sprite-旋转缩放 [ 86%]

...ge.width / 2; ape.y = Laya.stage.height / 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_示例 发布时间: 20241001

385. laya.d3.animation.AnimationClip_API3.0 [ 86%]

...blic/Protected All Inherited Externals Only exported Menu Globals "laya/d3/animation/AnimationClip" AnimationClip Class AnimationClip AnimationClip 类用于动画片段资源。 Hierarchy Resource AnimationClip Index Constructors constructor Properties _id destroyedImmediately islooping lock name u...

来源: Laya3.0_api 发布时间: 20231115

386. 图集动画响应区域问题 [ 85%]

...是500x500的,其中大部分是空的 打包成图集动画之后, 将Animation添加到Sprite并对Sprite添加了事件 鼠标响应区域大小好像是500x500, 怎么设置精确到具体的可视区域 附件 : --> 2017-03-24 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有...

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

387. Sprite-旋转缩放 [ 85%]

....stage.height / 2; this.scaleDelta = 0; Laya.timer.frameLoop(1, this, this.animate); } animate() { this.ape.rotation += 2; //心跳缩放 this.scaleDelta += 0.02; let scaleValue = Math.sin(this.scaleDelta); this.ape.scale(scaleValue, scaleValue); } } new Sprite_RoateAndScale();module laya { import S...

来源: Laya2.0_示例 发布时间: 20241001

388. 加载-销毁Texture使用的图片资源 [ 85%]

...高效。var leo; (function (leo) { var Sprite = laya.display.Sprite; var Animation = laya.display.Animation; var Text = laya.display.Text; var Stage = laya.display.Stage; var Browser = laya.utils.Browser; var Stat = laya.utils.Stat; var WebGL = laya.webgl.WebGL; var Event = laya.events.Event; /** *...

来源: Laya_示例 发布时间: 20241001

389. 清理动画模板,内存不降 [ 85%]

清理动画模板,内存不降 let obj:Object = Laya.Animation.framesMap; for(let key in obj) { Laya.Animation.clearCache(key); }  然后断点  Laya.Animation.framesMap  里确实空了 但是内存仍然是180多M  一点点都没降 这是为何呢? 2017-12-25 添加评论 免费帖 -->...

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

390. 【BUG】加载的url中有错误url时,laya偶现加载complete不回调 [ 85%]

...为false。 var res3DArr = [ { url: this.error_PATH }, { url: this.zombie_anim_path1 }, { url: this.zombie_anim_path2 }, { url: this.zombie_anim_path3 }, { url: this.zombie_anim_path4 }, { url: this.zombie_anim_path5 }, ]; Laya.loader.retryNum = 0; Laya.loader.create(res3DArr, Laya.Handler.create(th...

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