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

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

951. 请问如何给所有按钮点击事件增加一个音效 [ 69%]

...(toggle === false && _selected) return;             if (e.type === Event.CLICK) {                 toggle && (selected = !_selected);                 _clickHandler && _clickHandler.run();                 return;            ...

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

952. 照着官方文档写的 Dialog 报错? [ 69%]

...写的 Dialog 报错? var LoadResource = function () { LoadResource.prototype.init = function () { this._container = new Sprite(); Laya.stage.addChild(this._container); Laya.loader.load(["../bin/res/ui/progressBar.png", "../bin/res/ui/progressBar$bar.png"], Handler.create(this, this.onPreloaded));...

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

953. 释放资源报错 [ 69%]

... 释放unity导入的骨骼动画模型时报错 laya.d3.js:41972 Uncaught TypeError: Cannot read property 'off' of null     at SkinnedMeshRenderer.__proto._destroy (laya.d3.js:41972)     at SkinnedMeshSprite3D.__proto.destroy (laya.d3.js:34884)     at SkinnedMeshSprite3D.__proto.destroy (laya...

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

954. 二进制图片(JavaScript-2D进阶篇(JS)-游戏加载策略) [ 69%]

...XMLHttpRequest(); xhr.open("get", "res/atlas/comp.png", true); xhr.responseType = "arraybuffer"; xhr.onload = function () { if (this.status == 200) { var blob = new Blob([this.response], { type: "image/png" }); var img = document.createElement("img"); img.onload = function (e) { window.URL.revokeObj...

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

955. 使用createFrames创建的图集动画。如何单独修改这个缓存动画播放速度 [ 69%]

...的播放速度了!/** * 角色创建 */ public function init(interval,type:String,hp:Number,speed:Number,hitRadius:Number,camp:Number,heroType:Number = 0):void { //初始化属性 this.type = type; this.hp = hp; this.speed = speed; this.hitRadius = hitRadius; this.camp = camp; this.heroType = her...

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

956. laya.d3.component.PostProcess_API3.0 [ 69%]

...nable addEffect clearEffect getEffect removeEffect Legend Class Class with type parameter Constructor Method Accessor Object literal Variable Function Type alias Enumeration Interface

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

957. laya.ui.UIGroup [ 69%]

...域的属性为:width、height、hitArea,优先级顺序为:hitArea(type:HitArea)>hitArea(type:Rectangle)>width/height。 Sprite mouseX : Number[read-only] 返回鼠标在此对象坐标系上的 X 轴坐标信息。 Sprite mouseY : Number[read-only] 返回鼠标在此对象坐标系...

来源: laya_api 发布时间: 20170929

958. laya.net.LocalStorage_API3.0 [ 69%]

...getJSON removeItem setItem setJSON Legend Object literal Variable Function Type alias Class Class with type parameter Static property Static method Enumeration Interface

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

959. laya.media.SoundNode [ 69%]

...片base64信息,可以发给服务器或者保存为图片 Sprite event(type:String, data:* = null):Boolean 派发事件。 EventDispatcher frameLoop(delay:int, caller:*, method:Function, args:Array = null, coverBefore:Boolean = true):void 定时重复执行某函数(基于帧率)。功能同Lay...

来源: laya_api 发布时间: 20170422

960. laya.ui.RadioGroup [ 69%]

...域的属性为:width、height、hitArea,优先级顺序为:hitArea(type:HitArea)>hitArea(type:Rectangle)>width/height。 Sprite mouseX : Number[read-only] 返回鼠标在此对象坐标系上的 X 轴坐标信息。 Sprite mouseY : Number[read-only] 返回鼠标在此对象坐标系...

来源: laya_api 发布时间: 20170929