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

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

1. Tween.to 执行失败 [ 100%]

...te.x) ; console.log(sprite.y) ; var hDir = Laya.stage.mouseX>sprite.x? "right" : "left" ; var vDir = Laya.stage.mouseY>sprite.y? "down" : "up" ; //先横着走,走完之后调用竖着走的函数 Tween.to(sprite,{x:Laya.stage.mouseX,y:sprite.y,update:new Handler(this,onWalk(hDir)),complete:...

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

2. 缓动-时间线 [ 89%]

...target.pos(100,100); } function createTimerLine() { timeLine.addLabel("turnRight",0).to(target,{x:450, y:100, scaleX:0.5, scaleY:0.5},2000,null,0) .addLabel("turnDown",0).to(target,{x:450, y:300, scaleX:0.2, scaleY:1, alpha:1},2000,null,0) .addLabel("turnLeft",0).to(target,{x:100, y:300, scaleX:1, s...

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

3. 缓动-时间线 [ 88%]

...上个动画的偏移时间(单位:毫秒) this.timeLine.addLabel("turnRight", 0).to(this.target, {x:450, y:100, scaleX:0.5, scaleY:0.5}, 2000, null, 0) .addLabel("turnDown", 0).to(this.target, {x:450, y:300, scaleX:0.2, scaleY:1, alpha:1}, 2000, null, 0) .addLabel("turnLeft", 0).to(this.target, {...

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

4. APP打包后运行效果与调试效果不一致(sprite,child) [ 80%]

...    childs.sort(this.sortHandler); } public sortHandler(left:Laya.Sprite,right:Laya.Sprite):number{    return left.y-right.y; }   这样实现 当前Sprite里面的可移动sprite元素Y轴小的永远被Y轴大的遮挡,在IDE调试没有问题,但是打包APP(单机)在安卓机器上...

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

5. 3D物体检测到碰撞后,被碰撞物被移除的时候过30秒再次出现?并添加到舞台 [ 80%]

...0, 0); var move2 = new Laya.Vector3(-0.02, 0, 0); Laya.timer.once(0, null, Right); Laya.timer.once(50, null, Left); function Right() { other.owner.transform.translate(move1, true, false); } function Left() { other.owner.transform.translate(move2, true, false); } } } } } 2018-10-17 添加评论 免...

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

6. 【分享】遮罩 的使用及应用 [ 67%]

... lyjkensou1 • 2018-01-31 14:06 请问一下遮罩可以使用left, top, right, bottom属性吗 https://ask.layabox.com/question/11412

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

7. 自己写了个label继承官方的label,出现了问题,求指导~ [ 63%]

...ng = String(_textFormat._leftMargin); // leftMargin = value.leftMargin; // rightMargin = value.rightMargin; // indent = value.indent; // leading = value.leading; } public function get txt():String { return _txt; } public function set txt(value:String):void { _txt = value; text = _txt; } public funct...

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

8. UI-RefreshList [ 54%]

...ructor(){ super(); this.width = 443; this.height = 86; this.left = 0; this.right = 0; this.zOrder = 2; this.initItem(); } /** 初始化列表子项内容 * */ public function initItem(){ // 列表item的背景图 this.msgBG = new Image("res/ui/refreshList/img_bg22.png"); this.addChild(this.msgBG); t...

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

9. laya.ui.Clip_API3.0 [ 38%]

...ying left mask mouseEnabled mouseX mouseY numChildren parent pivotX pivotY right rotation scaleX scaleY scene scrollRect sizeGrid skewX skewY skin sources stage staticCache texture timer toolTip top total transform url viewport visible width x y zOrder Methods _initialize _processActive _setHeight _...

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

10. laya.ui.FontClip_API3.0 [ 38%]

...ying left mask mouseEnabled mouseX mouseY numChildren parent pivotX pivotY right rotation scaleX scaleY scene scrollRect sheet sizeGrid skewX skewY skin sources spaceX spaceY stage staticCache texture timer toolTip top total transform url value viewport visible width x y zOrder Methods _initialize _...

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