大约有 5 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0018 秒)
... = Laya.Label; import Handler = Laya.Handler; import Loader = Laya.Loader; class TestUI extends game.ui.test.TestPageUI { constructor() { super(); //btn是编辑器界面设定的,代码里面能直接使用,并且有代码提示 this.btn.on(Laya.CLICK, this, this.onBtnClick); this.btn2.on(Laya....
来源: Laya_示例 发布时间: 20241117
...ader; import Browser = Laya.Browser; import Handler = Laya.Handler; export class Network_ProtocolBuffer { private ProtoBuf:any = Browser.window.protobuf; constructor() { Laya.init(550, 400); this.ProtoBuf.load("../../res/protobuf/user.proto", this.onAssetsLoaded); } private onAssetsLoaded(err:any, r...
来源: Laya_示例 发布时间: 20241117
...= 0; i < spirit3D._childs.length; i++) setMaterials(spirit3D._childs[i]); }class RenderTextureDemo { private scene: Laya.Scene; private renderTargetCamera: Laya.Camera; private layaPlane: Laya.Sprite3D; constructor() { Laya3D.init(0, 0, true); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage...
来源: Laya_示例 发布时间: 20241117
....utils.Stat; import common.CameraMoveScript; /** * ... * @author */ public class SkinAnimation_Old { private var zombie:Sprite3D; private var changeActionButton:Button; private var curStateIndex:int = 0; private var skinAniUrl:Array = [ "../../../../res/threeDimen/skinModel/Zombie/old/Assets/Zombie/...
来源: Laya_示例 发布时间: 20241117
...HTMAP = customTerrainCompile3D.registerMaterialDefine("CUSTOM_LIGHTMAP"); }class Shader_Terrain { constructor() { Laya3D.init(0, 0, true); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; Laya.Stat.show(); this.initShader(); var scene: Laya.Scene = Laya.s...
来源: Laya_示例 发布时间: 20241117