大约有 396 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0048 秒)
...: 4231 关注: 2 人 Recovery • 2021-11-15 18:42 改成这样试试看 onEnable(): void { Laya.loader.load("comp/image.png", Laya.Handler.create(this, this.onResReady)); } private onResReady() { let panel = new Laya.Panel(); Laya.stage.addChild(panel); panel.graphics.drawRect(0, 0, 300, ...
来源: Laya_社区 发布时间: 20211108
...H= Laya.Stage.ALIGN_CENTER; Laya.stage.alignV = Laya.Stage.ALIGN_MIDDLE; } onEnable(){ this.playerUnit = []; this.enemyUnit = []; this.playerUnit.push(new Laya.Animation()); this.enemyUnit.push(new Laya.Animation()); this.loadUnit(); } loadUnit(){ for(let i of this.playerUnit ){ i.loadAtlas("./...
来源: Laya_社区 发布时间: 20200910
...做缓动呢?比如position或者scale 使用3D时候,Property 'getComponentByType' does not exist on type 'Node'. 微信小游戏:HTMLDivElement的使用 微信小游戏如何使用ttf字体? LayaAirIDE下如何使用mask? 预设怎么在代码中使用 求高人分享使用protobuff框...
来源: Laya_社区 发布时间: 20181106
...spublic class CharacterControllerInheritanceCharacterController PhysicsComponent Component Object CharacterController 类用于创建角色控制器。 Public Properties Hide Inherited Public Properties Show Inherited Public Properties PropertyDefined By canCollideWith : int 获取可碰撞的碰...
来源: Laya2.0_api 发布时间: 20190513
...ectRatio boundFrustum canblitDepth clearColor clientHeight clientWidth components cullingMask depthTextureFormat depthTextureMode destroyed displayedInStage enableBlitDepth enableBuiltInRenderTexture enableHDR farPlane fieldOfView fxaa hideFlags id is3D layer maxlocalYDistance msaa nearPlane normali...
来源: Laya3.0_api 发布时间: 20231115
...ive activeInHierarchy aspectRatio boundFrustum canblitDepth clearColor components cullingMask depthTextureFormat depthTextureMode destroyed displayedInStage enableBlitDepth enableBuiltInRenderTexture enableHDR farPlane fieldOfView fxaa hideFlags id is3D layer maxlocalYDistance msaa nearPlane normali...
来源: Laya3.0_api 发布时间: 20231115
...lass() export class Main extends Laya.Script { private tMap:Laya.TiledMap; onEnable() { //创建地图对象 this.tMap = new Laya.TiledMap(); //创建Rectangle实例,视口区域 var viewRect:Laya.Rectangle = new Laya.Rectangle(0, 0, Laya.stage.designWidth, Laya.stage.designHeight); //创建TiledM...
来源: Laya3.0_文档 发布时间: 20251010
...此时所有节点和组件均已创建完毕,此方法只执行一次 onEnable(): void { // 添加2D线渲染器组件 this.line2DRender = this.owner.addComponent(Laya.Line2DRender); // 设置线的宽度 this.line2DRender.lineWidth = 5; } // 鼠标按下时开始绘制 onMouseDown(evt: Laya.Even...
来源: Laya3.0_文档 发布时间: 20251010
...加Spine渲染器组件到精灵节点上 this.spine = this.owner.addComponent(Laya.Spine2DRenderNode); this.spine.source = "girl2/mix-and-match-pro.json"; // 设置Spine动画数据源 this.spine.skinName = "full-skins/girl"; // 设置皮肤名称 this.spine.play("idle", false); // 播放名称为"...
来源: Laya3.0_文档 发布时间: 20251128
...所有节点和组件均已创建完毕,此方法只会执行一次 | | onEnable | 组件被启用后执行,比如,节点被添加到舞台后执行 | | onStart | 在第1次执行update之前执行,只会执行一次, | | onUpdate | 每帧更新时执行,尽量不要在这里写大循环...
来源: Laya2.0_文档 发布时间: 20210715