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

大约有 1,764 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0055 秒)

971. [LayaAir 2.0] 如何用代码为Spirte添加2d物理特性 [ 60%]

...理引擎文档都是IDE篇的。   我试着用代码实现物理效果class CollisionBoll extends Laya.Sprite { private _boll1:Laya.Sprite; constructor() { super(); //物理模块 this._boll1 = new Laya.Sprite(); this.addChild(this._boll1); this._boll1.x = 20; this._boll1.loadImage('comp/btn_clos...

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

972. 分享个资源加载的方法,类似白鹭的加载方式 [ 60%]

...法,类似白鹭的加载方式 第一次发,不足之处还请见谅 class RES extends Laya.EventDispatcher{ // 资源组 public static groups: any; // 资源 public static resources: any; // 完成加载资源配置文件 public static ONLOADEDRESJSON: string = "onLoadedResJson"; // 资源配...

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

973. 继承Ui类得时候报的错 [ 60%]

...个UI的基类那不就无法继承了 laya 1.7.5 为什么不能用 Laya.class 继承类了 问题状态 最新活动: 2017-11-17 11:37 浏览: 839 关注: 2 人

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

974. Animation的createFrames为何加载不了有的图集资源 [ 60%]

...ort laya.ui.Image; import laya.utils.Handler; import view.TestView; public class LayaUISample { public function LayaUISample() { //初始化引擎 Laya.init(600, 400); //Laya.loader.load([{url: "res/atlas/char_wudang01.json", type: Loader.ATLAS}], Handler.create(this, onLoaded)); this.onLoaded(); } ...

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

975. laya.maths.Quaternion_API3.0 [ 60%]

...ed Externals Only exported Menu Globals "laya/maths/Quaternion" Quaternion Class Quaternion Quaternion 类用于创建四元数。 Hierarchy Quaternion Implements IClone Index Constructors constructor Properties w x y z DEFAULT NAN Methods clone cloneTo equals forNativeElement fromArray getYawPitchR...

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

976. 碰撞检测 outHitInfo.distance 一直等于 -1 ?(TS代码) [ 60%]

...s.outHitInfo.distance 一直等于-1?  -------------------------------- class RoleControlScript extends Laya.Script{ /*角色模型*/ public roleModel:Laya.Sprite3D; /*角色动画组件*/ public roleAni:Laya.Animator; /*角色当前动作*/ public currentAction:string = "stand"; /*角色动画...

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

977. 在微信小游戏中使用list,兼听不到mouseHandler跟selectHandler。 [ 60%]

...(this.img);   this.setImg = function(src) { this.img.skin = src; } } Laya.class(Item, "Item", Box);   // 主要逻辑代码 var Stage   = Laya.Stage; var List    = Laya.List; var Handler = Laya.Handler; var WebGL   = Laya.WebGL;     (function() { // 不支持WebGL时自动切换至Canvas L...

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

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

...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

979. "Background is not defined"怎么会没定义呢???求救 [ 60%]

... this.bg1.loadImage("res/background.png"); this.addChild(this.bg1); } Laya.class(Background,"Background",_super); window.Background=Background; return Background; })(Laya.Sprite); 2017-04-20 0 2 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人...

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

980. layaNative测试运行原生app时,laya3D解析动画处报错 [ 60%]

...叫apploader.js的类中定义的apploader.js关于该类的定义如下 class conchFloatArrayKeyframe {     constructor() {         this._nativeObj = new _conchFloatArrayKeyframe();     }     set time(value) {         this._nativeObj.setTime(value);     }     get time()...

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