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

大约有 2,033 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0064 秒)

771. 如何实现3d遮罩效果? [ 77%]

...a1.addComponent(CameraMoveScript); } private function loadUI():void { var _this:D3Base_TargetTexture = this; Laya.loader.load(["../../../../res/threeDimen/ui/button.png"], Handler.create(null, function():void { var btn:Button = new Button(); btn.skin = "../../../../res/threeDimen/ui/b...

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

772. 微信飞机大战报错 [ 77%]

...= (function(_super){     function GameInfo(){         GameInfo.super(this);         this.pauseBtn.on(Laya.Event.CLICK, this, this.onPauseBtnClick);         this.reset();     }     Laya.class(GameInfo, "GameInfo", _super);     var _proto = GameInfo.prototype;     _proto.reset = ...

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

773. 为什么说没有​ playByFrame方法 [ 77%]

...){ anifish.player.playByFrame(0,1.0,0,40,72,30); anifish.on(Event.COMPLETE,this,complete) function complete(){ alert(1) } Monica • 2017-09-27 14:22 @haiboannacom:Event前边加个Laya.看看 haiboannacom • 2017-09-27 14:25 @Monica:第三条鱼我加了这个了。也不行。anifish2那个。那...

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

774. 我看到这段话后,我 [ 77%]

...    __getset(0,__proto,'dataSource',function(){         return this._dataSource;         },function(value){         this._dataSource=value;         for (var prop in this._dataSource){             if (this.hasOwnProperty(prop)&& !((typeof (this[...

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

775. discard property,please use transform's property instead [ 77%]

...,             "res/LayaMonkey.lh"         ], Laya.Handler.create(this, onComplete));         var _quaternion = new Laya.Quaternion();         Laya.timer.frameLoop(1, null, function () {             Laya.Quaternion.createFromYawPitchRoll(0.025, 0, 0, _quaternion);         ...

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

776. 子弹添加了colliderShape后onUpdate移动,destroy会报错“Cannot read property 'getWorldTransform' of null” [ 77%]

...rty 'getWorldTransform' of null” 发射时生成子弹: onFire() { if (this.isFire) { Laya.Mesh.load("fly2/fly3-bullet.lm", Laya.Handler.create(this, function (m) { let bullet = new Laya.MeshSprite3D(m); this.Sn.addChild(bullet); bullet.addComponent(BulletScript); var bulletCollider = bullet.add...

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

777. 树状列表组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 77%]

...签 treeData += "</data>"; //把字符串解析为xml对象并返回 this.tree.xml = new Laya.XML(treeData); } } 这里给Tree列表赋的值,是写死的模拟数据。其中,拼接模拟数据,最多只能是二层结构,不支持层级很深的结构。 上述代码中,<dir>...

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

778. 描边Shader,使用了两个Pass [ 77%]

...Pass(outline_vs, outline_ps) outlineShader.addShaderPass(base_vs, base_ps) this.setShaderName("OutlineShader") this.getRenderState(0).cull = 1 } set diffuseTexture (value) { this._shaderValues.setTexture(OutlineMaterial.DIFFUSETEXTURE, value) } }   附件 : --> shaderBasic.zip 2018-09-25 添加评...

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

779. LayaBox HelloWorld实战 [ 77%]

...oWorld extends Laya.Scene { constructor() { super(); HelloWorld.instance = this; } onBtnShowClick(){ var dialog = new Laya.Dialog(); dialog.width=300; dialog.height=600; //var bg = new Laya.Image('comp/img_bg.png'); //dialog.addChild(bg); var button = new Laya.Button('comp/button.png'); button.label...

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

780. 关于Pivot和Mask联合使用时的显示问题再次提交 [ 77%]

...32628";         Laya.loader.load("../../res/bg2.png", Handler.create(this, setup));     })();     function setup()     {         var bg = new Sprite();         bg.loadImage("../../res/bg2.png");         Laya.stage.addChild(bg);         bg2 = new Sprite();    ...

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