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

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

441. 请问object层中添加的sprite怎么添加点击事件 [ 57%]

...aya_Aaron 赞同来自: 按格子区域来选择触发哪个事件,点击stage 然后看坐标对应哪个格子,然后再进行操作 2018-07-23 0 3 分享 微博 QZONE 微信 Laya_Aaron 赞同来自: 正常点地图可能是没效果的,加在容器中,stage中比较方便,你的项目...

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

442. laya.ui.Slider [ 57%]

...,设置为true后,会变灰并且禁用鼠标。Component displayedInStage : Boolean[read-only] 表示是否在显示列表中显示。Node displayHeight : Number[read-only] 对象的显示高度(以像素为单位)。 Component displayWidth : Number[read-only] 对象的显示宽度(以...

来源: laya_api 发布时间: 20170929

443. 微信小游戏分包实战(TypeScript-小游戏适配文档-微信小游戏) [ 57%]

...包名与分包路径的字段 ```json { ... "subpackages": [ { "name": "stage1", "root": "stage1/" // 可以指定一个目录,目录根目录下的 game.js 会作为入口文件,目录下所有资源将会统一打包 }, { "name": "stage2", "root": "stage2.js" // 也可以指定一个 JS 文...

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

444. sprite做的按钮点击无反应? [ 56%]

...击无反应? 代码如下: var dialog_mc:Sprite = new Sprite(); Laya.stage.addChild(dialog_mc); var w:int = 110; var h:int = 40; var btn:Sprite = new Sprite(); btn.size(w, h); btn.graphics.drawRect((stageWd - w) * 0.5, (stageHt - h) * 0.5-50, w, h, "#FF7F50"); btn.graphics.fillText("确 定", (...

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

445. laya.particle.Particle2D_API3.0 [ 56%]

...ponents customRenderEnable destroyed displayHeight displayWidth displayedInStage drawCallOptimize emitter filters globalRotation globalScaleX globalScaleY graphics height hideFlags hitArea is3D mask mouseEnabled mouseX mouseY numChildren parent pivotX pivotY rotation scaleX scaleY scene scrollRect s...

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

446. 请大家帮助优化一下这个抛物线的代码 [ 56%]

...aya.Loader.ATLAS); } private onLoaded():void{ this.ball = new Ball(); Laya.stage.addChild(this.ball); this.ball.x = Laya.stage.width / 2; this.ball.y = Laya.stage.height / 2; Laya.stage.on(Laya.Event.CLICK,this,this.onClick); Laya.timer.frameLoop(1,this,this.onEnterFrame); } private onEnterFrame():v...

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

447. laya.map.GridSprite_API3.0 [ 56%]

...ponents customRenderEnable destroyed displayHeight displayWidth displayedInStage drawCallOptimize filters globalRotation globalScaleX globalScaleY graphics height hideFlags hitArea is3D mask mouseEnabled mouseX mouseY numChildren parent pivotX pivotY rotation scaleX scaleY scene scrollRect skewX ske...

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

448. laya.display.EffectAnimation_API3.0 [ 56%]

...s count customRenderEnable destroyed displayHeight displayWidth displayedInStage drawCallOptimize effectClass effectData filters globalRotation globalScaleX globalScaleY graphics height hideFlags hitArea index interval is3D isPlaying mask mouseEnabled mouseX mouseY numChildren parent pivotX pivotY p...

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

449. laya.ui.ColorPicker [ 56%]

...设置为true后,会变灰并且禁用鼠标。UIComponent displayedInStage : Boolean[read-only] 表示是否在显示列表中显示。Node displayHeight : Number[read-only] 对象的显示高度(以像素为单位)。 Sprite displayWidth : Number[read-only] 对象的显示宽度(以像...

来源: Laya2.0_api 发布时间: 20190513

450. 无法清除指定定时器 [ 56%]

...            trace("______________________");         } this.stage.on(Event.MOUSE_UP, this, onB); private function onB():void          {             Laya.timer.clear(this, this.looppp);             SoundManager.playSound("res/sound/onClick.wav");         ...

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