大约有 2,789 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0073 秒)
Laya_社区(1162) Laya3.0_api(543) Laya2.0_api(297) laya_api(221) Laya2.0_文档(201) Laya_示例(139) Laya3.0_文档(117) Laya2.0_示例(109)
...reate(this, this.loadGame)); } private loadGame(): void { var resArray = [ { url: "res/atlas/lobby/create_room.atlas", type: Laya.Loader.ATLAS }, ....... ]; ...
来源: Laya_社区 发布时间: 20181208
...有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { this.light1Render = this.light1.getComponent(Laya.FreeformLight2D); this.mesh1Render = this.mesh1.getComponent(Laya.Mesh2DRender); this.mesh2Render = this.mesh2.getComponent(Laya.Mesh2DRender); //设置mesh1位于0层...
来源: Laya3.0_文档 发布时间: 20251010
.../LayaMonkey.lh",Laya.Handler.create(this,this.ok)); } ok(sp:Laya.Sprite3D):void{ //得到原始Sprite3D this.sp = sp; this.scene3d.addChild(sp); //克隆Sprite3D this.sp2 = Laya.Sprite3D.instantiate(this.sp,null,false); //错开点位置 this.sp2.transform.translate(new Laya.Vector3(-0.2, 0, 0)); th...
来源: Laya_社区 发布时间: 20190618
...s() export class VideoRuntime extends VideoRuntimeBase { onEnable(): void { Laya.stage.on(Laya.Event.MOUSE_DOWN, () => { //Laya.loader.load("resources/files/layaAir.mp4").then(() => { this.VideoNode.play(); //播放视频 ...
来源: Laya_社区 发布时间: 20251218
...ge; #ifdef ADDTIVEFOG #else uniform vec3 u_FogColor; #endif #endif void main() { #ifdef RENDERMODE_MESH gl_FragColor=v_MeshColor; #else gl_FragColor=vec4(1.0); #endif #ifdef DIFFUSEMAP if(v_Discard!=0.0) discard; #ifdef TINTCOLOR gl_FragColor*=tex...
来源: Laya_社区 发布时间: 20190802
...节点和组件均已创建完毕,此方法只执行一次 */ onAwake(): void { //小游戏加载分包 Laya.loader.loadPackage("sub1", this.printProgress).then(() => { Laya.loader.load("sub1/Cube.lh").then((res: Laya.PrefabImpl) => { let sp3: Laya.Sprite3D = res.create() as Laya.Sprite3D; t...
来源: Laya3.0_文档 发布时间: 20251010
...4个人 0 1 2 3 循环 this.nextTurn = NTE; } } public palayerfirst(i):void//当玩家第一个出牌 或者 玩家出的牌其他人都要不起 { var j = this.aaa.playerNameList[i].playerhandpoker.length - 1; var img: Laya.Image = this.aaa.playerNameList[i].playerhandpoker[j].img; img.skin = thi...
来源: Laya_社区 发布时间: 20180626
...有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { //支付宝小游戏 Laya.loader.loadPackage("sub1", this.printProgress).then(() => { Laya.loader.load("sub1/Cube.lh").then((res: Laya.PrefabImpl) => { let sp3: Laya.Sprite3D = res.create() as Laya.Sprite3D; this...
来源: Laya3.0_文档 发布时间: 20251010
...ite, target:Sprite):Event 设置事件数据。 Event stopPropagation():void 阻止对事件流中当前节点的后续节点中的所有事件侦听器进行处理。此方法不会影响当前节点 (currentTarget) 中的任何事件侦听器。 EventPublic Constants ConstantDefined By ADDE...
来源: Laya2.0_api 发布时间: 20190513
...//组件被启用后执行,例如节点被添加到舞台后 onEnable(): void { //需要先加载图集再使用,注意,图集要放到resources目录下或者在构建发布配置项里手动添加为始终包含的资源目录 Laya.loader.load("resources/aaa/test.atlas").then(() => {//更...
来源: Laya3.0_文档 发布时间: 20251128