大约有 1,613 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0127 秒)
Laya_社区(1206) Laya2.0_文档(194) Laya_示例(55) Laya3.0_api(49) Laya2.0_示例(43) Laya3.0_文档(41) Laya2.0_api(13) laya_api(12)
...5).png", "../../res/ui/checkbox (6).png"]; Laya.loader.load(skins, Handler.create(this, onCheckBoxSkinLoaded)); })(); function onCheckBoxSkinLoaded() { var cb; for (var i = 0; i ; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(800, 600, WebGL); Laya.stage.alignV = Stage.ALIGN_MI...
来源: Laya_示例 发布时间: 20251209
...平面 var plane = scene.addChild(new Laya.MeshSprite3D(Laya.PrimitiveMesh.createPlane(10, 10, 10, 10))) as Laya.MeshSprite3D; //新建材质 var planeMat:Laya.BlinnPhongMaterial = new Laya.BlinnPhongMaterial(); Laya.Texture2D.load("res/threeDimen/Physics/grass.png", Laya.Handler.create(this, functi...
来源: Laya2.0_文档 发布时间: 20210715
...面 var plane:MeshSprite3D = scene.addChild(new MeshSprite3D(PrimitiveMesh.createPlane(10, 10, 10, 10))) as MeshSprite3D; //新建材质 var planeMat:BlinnPhongMaterial = new BlinnPhongMaterial(); Texture2D.load("res/threeDimen/Physics/grass.png", Handler.create(null, function(tex:Texture2D):void { ...
来源: Laya2.0_文档 发布时间: 20210714
...ui.ShopDialogUI { constructor() { super(); this.popupEffect = Laya.Handler.create(this, this.showEffect); this.closeEffect = Laya.Handler.create(this, this.hideEffect); this.btnClose.on(Laya.Event.CLICK, this, this.closeDialog); } //关闭 closeDialog(): void { this.close(); } //关闭效果 hideEff...
来源: Laya_社区 发布时间: 20190121
...as context : Context[read-only] Canvas 渲染上下文。 HTMLCanvas create : Function[static] 根据指定的类型,创建一个 HTMLCanvas 实例。 HTMLCanvas getContext : Function 获取 Canvas 渲染上下文。 HTMLCanvasPublic Methods MethodDefined By HTMLCanvas(type:String) ...
来源: laya_api 发布时间: 20170929
...性的东西,比如说为啥教学视频里面都喜欢用Laya.Handler.create(this,this.xxx)来做事件;为啥不能直接this.xxx呢?有什么优点呢?文档是说是从对象池里取,这又是个什么玩意儿,好抽象额。。。。 作为新手,感觉不知道哪里入手...
来源: Laya_社区 发布时间: 20180403
...不出声音: Laya.SoundManager.playMusic("sounds/fish.mp3", 1, Handler.create(this, this.onComplete)); //Laya.SoundManager.playSound("sounds/fish.mp3", 1, Handler.create(this, this.onComplete),Laya.AudioSound); 后来在html里加了一个audio标签,看看原始的audio能不能播。 <audi...
来源: Laya_社区 发布时间: 20170823
...这不是个构造函数 "StartPage is not a constructor" StartPage: /**Created by the LayaAirIDE*/ var StartPage=(function(_super){ function StartPage(){ StartPage.__super.call(this); } Laya.class(StartPage,'view.StartPage',_super); return StartPage; })(StartPageUI) LayaSample: var LayaSample =...
来源: Laya_社区 发布时间: 20181029
... ResourceVersion.enable("version.json?"+Math.random(), Handler.create(this, beginLoad)); 熊猫大侠 • 2018-09-07 16:44 @155*****359:加载的时候 后面跟一个随机数 每次都会拉取最新的 155*****359 • 2018-09-07 17:00 嗯嗯,明白了。多谢朋友! 。。 • 2018...
来源: Laya_社区 发布时间: 20180518
...如下 Laya.Tween.to(spring2,{scaleX:1.0,scaleY:1.0},500,null,Laya.Handler.create(this,function(){ if(!spring2.destroyed){ // 添加判断后就不出bug了 Laya.Tween.to(spring2,{alpha:0},300,null,Laya.Handler.create(this,function(){ ...
来源: Laya_社区 发布时间: 20170217