大约有 2,033 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0061 秒)
Laya_社区(1424) Laya2.0_文档(233) Laya_示例(141) Laya2.0_示例(117) Laya3.0_api(61) Laya3.0_文档(44) Laya2.0_api(7) laya_api(6)
...建为Sprite3D类型Laya.loader.create("res/room.lh",Laya.Handler.create(this,this.onCreateComplete));//预加载完成后回调private onCreateComplete():void{//实例化加载并创建好的3D对象var sprite3D:Laya.Sprite3D = Laya.loader.getRes("res/room.lh");this.scene.addChild(sprite3D);} 2018-...
来源: Laya_社区 发布时间: 20180817
...x 赋值 var nodeMap = animator._avatarNodeMap; for(var attachPointName in this.m_AttachPointNodeMap){ var node = this.m_AttachPointNodeMap[attachPointName]; var srcNode = nodeMap[attachPointName]; node.transform.localMatrix = srcNode.transform().localMatrix; } zfree • 2017-08-21 17:55 我这边...
来源: Laya_社区 发布时间: 20170821
...ed回调方法 Laya.loader.load("res/atlas/comp.atlas",Laya.Handler.create(this,onLoaded)); function onLoaded(){ //创建一个UI实例 this.comp = new ui.ComponentDemoUI(); //添加到舞台上显示 Laya.stage.addChild(this.comp); //点击Tab选择按钮的处理 this.comp.tab.selectHandler = new ...
来源: Laya2.0_文档 发布时间: 20210714
....load([{ url: "res/atlas/comp.json", type: Loader.ATLAS }], Handler.create(this, this.onLoaded)); function onLoaded(): void { var hbox: laya.ui.HBox = new laya.ui.HBox(); for (var i: number = 0; i < 10; i++) { var skin: string; switch (i) { case 0: skin = "comp/bg.png"; break; case 1: skin = "com...
来源: Laya_社区 发布时间: 20170607
...,同时光照区域边缘也有衰减现象。 ```typescript //聚光灯 this.spotLight = this.scene.addChild(new Laya.SpotLight()); //设置聚光灯颜色 this.spotLight.color = new Laya.Vector3(1, 1, 0); //设置聚光灯位置 this.spotLight.transform.position = new Laya.Vector3(0.0, 1.2, 0.0)...
来源: Laya2.0_文档 发布时间: 20210715
...-09-11 0 0 分享 微博 QZONE 微信 youxin 赞同来自: this.box.dataSource = {slider: 50, scroll: 80, progress: 0.2, input: "This is a input", label: {color: "#ff0000", text: "Hello LayaAir"}}; this.TestLablel.text = "测试测试"; 官网提供...
来源: Laya_社区 发布时间: 20170911
...位置,对齐的位置和refence重合 Laya.stage.on(Laya.Event.RESIZE, this, Laya.Utils.fitDOMElementInArea, [videoElement, reference, 0, 0, reference.width, reference.height]); } } new DOM_Video();class DOM_Video { constructor() { Laya.init(800, 600); Laya.stage.bgColor = "#FFFFFF"; Laya.stage.a...
来源: Laya2.0_示例 发布时间: 20251209
...eMaterial { static DIFFUSETEXTURE_ID: number = 1; constructor() { super(); this.setShaderName("CustomShader"); } public getDiffuseTexture(): Laya.BaseTexture { return this._getTexture(CustomMaterial.DIFFUSETEXTURE_ID); } public setDiffuseTexture(value: Laya.BaseTexture): void { this._setTexture(Cust...
来源: Laya_社区 发布时间: 20170815
...y = Laya.Node.prototype.destroy; Laya.Node.prototype.destroy = function(){ this.event('destroy'); oldDestroy.call(this); } } 2017-11-20 0 0 分享 微博 QZONE 微信 Monica - 知识达人 赞同来自: 你直接在销毁的时候派发一个自定义事件,然后把销毁页面之后的逻辑写...
来源: Laya_社区 发布时间: 20171120
...力的数值,球和地面都设置了弹力 TestScript2 onAwake this.scene3D = this.owner as Scene3D; this.basketballCourt = this.scene3D.getChildByName("BasketballCourt") as Sprite3D; var collision:PhysicsCollider = this.basketballCourt.getChildByName("BasketballCourt1").getComponent(Phy...
来源: Laya_社区 发布时间: 20200515