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

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

2381. 当使用Image作为一个对象的遮罩时,设置Image的ScaleX为0时遮罩失效! [ 47%]

...的遮罩时,设置Image的ScaleX为0时遮罩失效! // 程序入口 class GameMain{ constructor() { Laya.init(1280,720); Laya.loader.load([{url:"res/atlas/comp.json",type:Laya.Loader.ATLAS}],Laya.Handler.create(this,this.loaded,null)); } private loaded():void{ var img:Laya.Image = new Laya.Ima...

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

2382. 为什么pannel里显示两张同样的图片显示不出来,只能显示一张 [ 47%]

...pannel里显示两张同样的图片显示不出来,只能显示一张 class LevelScrollUI extends ui.LevelUI { private panel:Laya.Panel; constructor() { super(); this.panel = new Laya.Panel(); this.panel.size(720, 1136); this.panel.vScrollBarSkin = "comp/vscroll.png"; Laya.stage.addChild(this.pan...

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

2383. 【求助】怎么在自定义对象进行实例化的时候,给它绑定监听事件 [ 47%]

...是这样的:因为图标里有几个自定义属性,我定义了一个Class,继承自Box。我用List对其进行渲染,在list渲染的时候,执行renderHandler监听函数,对即将渲染的图标进行事件绑定操作。我测试的时候,想让他在鼠标点击的时候打印...

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

2384. 不规则热区的实现 [ 47%]

...(≧▽≦)/~ 2016-11-16 0 0 分享 微博 QZONE 微信 popo 赞同来自: class a extends sprite { function test():void { var t:Texture = datas; m_hitAreaSprite.graphics.drawRect(t.offsetX,t.offsetY,t.width, t.height,'#FFFFFF'); m_hitAreaSprite.width = t.width; m_hitAreaSprite.height = t.height; } ...

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

2385. laya.d3.math.Quaternion [ 47%]

API DocumentationAll Packages | All Classes | Index | Frames No Frames QuaternionProperties | Methods | Constants Packagelaya.d3.mathClasspublic class QuaternionInheritanceQuaternion ObjectImplements laya.d3.core.IClone Quaternion 类用于创建四元数。 Public Properties PropertyDefi...

来源: laya_api 发布时间: 20170929

2386. laya.ani.GraphicsAni_API3.0 [ 47%]

...ed Externals Only exported Menu Globals "laya/ani/GraphicsAni" GraphicsAni Class GraphicsAni Graphic动画 Hierarchy Graphics GraphicsAni Index Constructors constructor Accessors cmds Methods addCmd alpha clear clipRect destroy drawCircle drawCurves drawEllipse drawImage drawLine drawLines drawPath ...

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

2387. 升级2.0以后,部分浏览器的兼容性很差 [ 47%]

...想放弃,就用2.2以下的引擎版本。 vincent • 2019-08-28 18:27 class TestSceneUI extends Scene { constructor() { super(); } createChildren() { super.createChildren(); this.loadScene("test/TestScene"); } } UC指这行报错,这个都是编译后的代码 addScore(value = 1) { ...

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

2388. 如何在游戏入口处获取对象的子对象 [ 47%]

...ap = (function (_super) { function loadMap() { loadMap.super(this); } Laya.class(loadMap,"loadMap",_super); var _proto = loadMap.prototype; _proto.init = function() { this.num = ""; this.map = new TiledMap(); } _proto.showMap = function(num) { this.num = num; this.map.createMap("map/level/mota_map" ...

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

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

...aya.utils.Ease; import laya.utils.Handler; import laya.utils.Tween; public class LayaAirDemo { private var sp:Sprite; private var num:int; public function LayaAirDemo() { Laya.init(550,400); sp=new Sprite(); sp.graphics.drawCircle(0,0,50,"#00FFFF"); Laya.stage.addChild(sp); sp.pos(100,100); Tween.to...

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

2390. 自定义组件时,设置组件子节点的image的skin时,路径为layaIde的路径而非项目路径 [ 47%]

...I.Button; import laya.ui.Image; /** * ... * @author Caixiansheng */ public class HProgressSlider extends HSlider { /**@private */ protected var _progress:Image protected var _proMask:Sprite; public function HProgressSlider(skin:String=null) { super(skin); } override protected function initialize():v...

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