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

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

361. 灯光-点光 [ 66%]

.../LayaMonkey/LayaMonkey.lh")); layaMonkey.once(Laya.Event.HIERARCHY_LOADED, this, function () { var aniSprite3d = layaMonkey.getChildAt(0); var animator = aniSprite3d.getComponentByType(Laya.Animator); animator.play(null, 1.0, 75, 110); }); var _position = new Laya.Vector3(); var _quaternion = new La...

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

362. Sprite3D-Sprite3D克隆 [ 66%]

...../res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh", Laya.Handler.create(this, onComplete)); function onComplete() { var layaMonkey = scene.addChild(Laya.Sprite3D.load("../../res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh")); //克隆sprite3d var layaMonkey_clone1 = Laya.Sprite3D.instantiate(la...

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

363. 输入设备-贪吃蛇(重力感应) [ 66%]

...r; var WebGL = Laya.WebGL; function Segment(width, height) { Segment.super(this); Segment.prototype.init = function() { this.graphics.drawRect(-height / 2, -height / 2, width + height, height, "#FF7F50"); } // 获取关节另一头位置 Segment.prototype.getPinPosition = function() { var radian = t...

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

364. 滤镜-颜色滤镜 [ 66%]

...; Laya.stage.bgColor = "#232628"; Laya.loader.load(ApePath, Handler.create(this, setup)); })(); function setup() { normalizeApe(); makeRedApe(); grayingApe(); } function normalizeApe() { var originalApe = createApe(); apeTexture = Laya.loader.getRes(ApePath); originalApe.x = (Laya.stage.width - apeT...

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

365. 输入设备-贪吃蛇(重力感应) [ 66%]

...ode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; // 初始化蛇 this.initSnake(); // 监视加速器状态 Accelerator.instance.on(Event.CHANGE, this, this.monitorAccelerator); // 游戏循环 Laya.timer.frameLoop(1, this, this.animate); // 食物生产 Laya.timer.loop(3000, this, this.pr...

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

366. 问一下tween的一些参数怎么设置 [ 66%]

问一下tween的一些参数怎么设置 比如 Laya.Tween.from(this,{scaleX:0.5,scaleY:0.5},1000,Laya.Ease.elasticOut); 我可以修改elasticOut的回弹次数和回弹时间么? 2016-09-13 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相...

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

367. CheckBox属性详解(ActionScript-IDE篇(AS3)-IDE组件属性详解) [ 66%]

...,执行onLoad回调方法 Laya.loader.load([skin1,skin2], Handler.create(this, onLoaded)); } private function onLoaded():void { //创建一个CheckBox实例cb1 var cb1:CheckBox = new CheckBox(skin1); //添加到舞台上显示 Laya.stage.addChild(cb1); //设置checkbox的坐标位置 cb1.pos(300,2...

来源: Laya2.0_文档 发布时间: 20210714

368. 动画-新版骨骼动画 [ 66%]

...kinModel/Zombie/new/Zombie.lh")); 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"]...

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

369. 加载图片显示为黑屏(附代码),为什么? [ 66%]

...e_ct); rule_ct.loadImage("rule_txt.png", 0, 0, 460, 0, Handler.create(this, function(){ panel.addChild(rule_ct); })); } } }    现象截图(设备是 iPhone6sPlus):   长图路径:长图片 生产地址(PC端浏览沒问题/手机端浏览则黑屏):H5 手机浏览二维码: ...

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

370. 使用Laya.loader.create加载3d资源,如果出错次数超过最大线程数将无法继续加载资源 [ 66%]

...Manager 则也无法时LoaderManager中的_loaderCount数值减小,如果this._loaderCount >=this.maxLoader,则无法再下载文件 附件 : --> 2017-06-07 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Mo...

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