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

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

41. PBR标准材质实时阴影渲染问题 [ 70%]

...om "./ModelViewer"; import Scene = Laya.Scene; export default class Game3D extends Scene { constructor() { super(); //初始化引擎 Laya3D.init(0, 0); var scene_360 = Laya.loader.getRes("LayaScene_PUCHENG3D/Conventional/PUCHENG3D.ls") as Laya.Scene3D; Laya.stage.addChildAt(scene_360, 0); var camer...

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

42. FontChip不能显示 [ 70%]

...ue = "a1326";//显示"a1326"文字      */     public class FontClip extends Clip {         /**数值*/         protected var _valueArr:String;         /**文字内容数组**/         protected var _indexMap:Object;         /**位图字体内容**/         ...

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

43. 微信小游戏,实现监听前后台切换 [ 70%]

...ntroller.js  import wxHelper from 'wxhelper' export default class welcome extends Laya.Script { constructor() { super() } onEnable() { wxHelper.onShow(this.resumeGame) wxHelper.onHide(this.pauseGame) } resumeGame () { console.log('resumeGame') } pauseGame () { console.log('pauseGame') } onDestroy (...

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

44. 实体组件系统 · LayaAir3.0文档 · LAYABOX [ 69%]

...逻辑及对象池回收机制 */ @regClass() export default class Bullet extends Laya.Script { constructor() { super(); } onEnable(): void { //设置初始速度 let rig: Laya.RigidBody = this.owner.getComponent(Laya.RigidBody); rig.setVelocity({ x: 0, y: -10 }); } onTriggerEnter(other: any, self: ...

来源: Laya3.0_文档 发布时间: 20240528

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

...性 官方的2d物理引擎文档都是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_close.png'); let box:l...

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

46. 类未找到方法 [ 69%]

类未找到方法 public class Welcome extends welcomeUI { public function Welcome() { requestData(); } private function requestData():void{ RequestConfig.instance.getRequestConfig(String(0), requestCallback); } private function requestCallback(success:Boolean):void { if(success) { loadingRes(); }...

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

47. 动画状态脚本(JavaScript-3D基础(JS)-LayaAir3D之Animator动画) [ 69%]

...ateScript(动画状态脚本) export default class AnimatorStateScriptTest extends Laya.AnimatorStateScript { constructor() { super(); this._text = null; } get text() { return this._text; } set text(value) { this._text = value; } /** * 动画状态开始时执行。 */ onStateEnter() { console.log("...

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

48. 动画状态脚本(TypeScript-3D基础(TS)-LayaAir3D之Animator动画) [ 69%]

...ateScript(动画状态脚本) export default class AnimatorStateScriptTest extends Laya.AnimatorStateScript { private _text:Laya.Text; constructor() { super(); } get text():Laya.Text { return this._text; } set text(value) { this._text = value; } /** * 动画状态开始时执行。 */ onStateEnter()...

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

49. 版本管理swf找同名的Json文件发现找不到 [ 69%]

...06db1ff.json MovieClip类是找Map192622077fd.json export class MMovieClip extends Laya.MovieClip{         constructor(){             super();         }         //初始化预加载数据         public m_initData(url:string,atlas:boolean,atlasPath?:string...

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

50. IDE时间轴动画帧数乱序导致的bug [ 68%]

IDE时间轴动画帧数乱序导致的bug class FrameAnimation extends AnimationBase { constructor() { super(); if (FrameAnimation._sortIndexFun === null) { FrameAnimation._sortIndexFun = MathUtil.sortByKey("index", false, true); } }   FrameAnimation初始化时_sortIndexFun 方法没有被赋值...

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