大约有 4,111 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0106 秒)
Laya_社区(3330) Laya2.0_文档(296) Laya_示例(141) Laya3.0_文档(118) Laya2.0_示例(117) Laya3.0_api(94) Laya2.0_api(9) laya_api(6)
...t还有loop参数,控制台就会报错,但是动画能正常播放。 this.ani.play(0,true,'XiuXian');控制台报错:ani not found: BlueEmoji.ani#XiuXian。但是游戏中动画正常播放了~~不知道是不是我那里姿势不对。但是如果this.ani.play('Normal'); Normal是默认动...
来源: Laya_社区 发布时间: 20180204
...件上监听mouseDown、mouseOut 就能复现 Enheng • 2022-05-05 17:24 this.sp.on(Laya.Event.MOUSE_DOWN, this, this.text) this.sp.on(Laya.Event.MOUSE_OUT, this,this.text) Enheng • 2022-05-05 17:26 按道理来说,我未移出只做点击动作,应该只执行一遍text(),但是它执行...
来源: Laya_社区 发布时间: 20220424
陀螺仪接口无效呢?Gyroscope.instance.on(Event.CHANGE, this, onOrientationChange); 什么原因呢 2017-10-15 1 条评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 3 个回复 game4d 赞同来自: var firstTime = true; laya....
来源: Laya_社区 发布时间: 20171015
...VIVO Tween动画抖动闪烁 public DoFlash ():void { Laya.timer.once(700, this, this.FlashTween); } private FlashTween ():void { this.hand.scale(2, 2); this.hand.alpha = 1 Tween.to(this.hand, {scaleX:1, scaleY:1, alpha:1}, 300, null, Laya.Handler.create(this, this.DoFlash)); } 循环Tween 缩放一...
来源: Laya_社区 发布时间: 20211109
....Image; var WID = 373, HEI = 85; function Item() { Item.__super.call(this); this.size(WID, HEI); this.img = new Image(); this.addChild(this.img); this.setImg = function(src) { this.img.skin = src; } } Laya.class(Item, "Item", Box); // 主要逻辑代码 var Stage = Laya.Stage; var Li...
来源: Laya_社区 发布时间: 20180731
...做到第二次点击color的时候lable背景颜色变回原来的颜色 this.label.bgColor = "#ff0400"; start(): void { this.color_btn.on(Laya.Event.CLICK, this, this.onTipClick); } if(tipBtn == this.color_btn){ this.label.bgColor = "#ffffff"; 2019-07-22 添加评论 免费帖 --> 分享 微博...
来源: Laya_社区 发布时间: 20190722
... @return 漫反射贴图。 */ public function get albedoTexture(){ return this._shaderValues.getTexture(MultiplePassOutlineMaterial.ALBEDOTEXTURE); } /** * 设置漫反射贴图。 * @param value 漫反射贴图。 */ public function set albedoTexture(value) { if (value) this._defineDatas.add(Multi...
来源: Laya2.0_文档 发布时间: 20210715
...tateScriptTest extends Laya.AnimatorStateScript { constructor() { super(); this._text = null; } get text() { return this._text; } set text(value) { this._text = value; } /** * 动画状态开始时执行。 */ onStateEnter() { console.log("动画开始播放了"); this._text.text = "动画状态:...
来源: Laya2.0_文档 发布时间: 20210715
Laya.Image怎么获取图片的真实大小 随便举个栗子 this.bgImage = new Laya.Image("../laya/assets/comp/bg.jpg") 然后怎么获取那张图片的大小? 试了很多方法,也一顿搜索,但是没有答案 2018-07-30 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找...
来源: Laya_社区 发布时间: 20180730
...射线初始化(必须初始化) //获取鼠标在屏幕空间位置 this.pointRay.x = Laya.MouseManager.instance.mouseX; this.pointRay.y = Laya.MouseManager.instance.mouseY; //详设计产生射线方法,通过2D坐标获取与屏幕垂直的一条射线 console.log( PanelMgr.mainCamera); P...
来源: Laya_社区 发布时间: 20190416