大约有 4,034 项符合查询结果, 库内数据总量为 30,910 项。 (搜索耗时: 0.0079 秒)
Laya_社区(3264) Laya2.0_文档(296) Laya_示例(141) Laya2.0_示例(117) Laya3.0_文档(107) Laya3.0_api(94) Laya2.0_api(9) laya_api(6)
...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
...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
... @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
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
Sprite loadImage 的时候出现多张图片同时显示 this.img.graphics.clear(); var imgUrl = (this.flag = !this.flag)? this.imgUrl1 :this.imgUrl2; this.img.loadImage(imgUrl,100,50); 简单的点击sprite切换图片,结果会出现两张图片同时显示的情况 附件 : --> 2018-04-04 添...
来源: Laya_社区 发布时间: 20180404
AS版本生成的js中出现了this.Buffer() 源代码:var voiceBase64:* = new Buffer(voice); js文件:new /*no*/ this.Buffer(voice); 我每次还需要手动去替换掉·· 2018-08-01 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关...
来源: Laya_社区 发布时间: 20180801
....7 版的 一个list }, _render_bigList: function (cell, idx) { var data = this.bigList.array; if (idx >= data.length) { return; } cell.removeChildren(); var root = cell.getChildByName('root'); if (!root) { root = new Sprite(); root.pos(0, 0); root.name = "root"; cell.addChild(root); } 。。。...
来源: Laya_社区 发布时间: 20170324