大约有 1,763 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0057 秒)
Laya_社区(623) Laya3.0_api(482) Laya2.0_文档(180) Laya_示例(146) Laya2.0_示例(116) Laya3.0_文档(85) Laya2.0_api(67) laya_api(64)
...把demo发来我看一下 xdkaka • 2017-12-13 17:03 没办法发图了 class Main { constructor() { Laya.init(480, 852); Laya.stage.scaleMode = "showall"; Laya.stage.alignV = 'middle'; Laya.stage.alignH = 'center'; Laya.stage.screenMode = "vertical"; Laya.stage.bgColor = "...
来源: Laya_社区 发布时间: 20171213
....layabox.com/api2/Chinese/index.html?version=2.9.0beta&type=2D&category=UI&class=laya.ui.List)。 ### 1.1 创建 List 组件 #### 1.编辑列表项。 列表项可以是 Box 对象或 View(页面) 或其它自定义页面对象。此处以Box 对象为例。 **a.**从资源面板里选...
来源: Laya2.0_文档 发布时间: 20210715
... = Laya.Stat; import Tween = Laya.Tween; import WebGL = Laya.WebGL; export class Skeleton_SpineEvent { private mAniPath:string; private mStartX:number = 400; private mStartY:number = 500; private mFactory:Templet; private mActionIndex:number = 0; private mCurrIndex:number = 0; private mArmature:Skel...
来源: Laya_示例 发布时间: 20251209
...mera.addComponent(CameraMoveScript); this.camera.clearColor = null; } Laya.class(MousePickingScene, "MousePickingScene", Laya.Scene); MousePickingScene.prototype.lateRender = function (state) { MousePickingScene.__super.prototype.lateRender.call(state); //从屏幕空间生成射线 this.point.eleme...
来源: Laya_社区 发布时间: 20170323
...s.addChild(this.bg2); //创建一个帧循环,更新容器位置 }; Laya.class(BackGround,"BackGround",_super); return BackGround; }(Laya.Sprite));注意: 1、如果_super是传参过来的,直接写_super.call(this)即可,如果不是直接写BackGround.__super(this)即可,两种写法(...
来源: Laya_社区 发布时间: 20170222
...obals "laya/d3/core/particleShuriKen/module/shape/SphereShape" SphereShape Class SphereShape SphereShape 类用于创建球形粒子形状。 Hierarchy BaseShape SphereShape Implements IClone Index Constructors constructor Properties emitFromShell enable radius randomDirection shapeType Methods clon...
来源: Laya3.0_api 发布时间: 20231115
...太合适,但仍然希望有高手帮忙解答下。 我写了一个类 class Runner extends Laya.Sprite { } 在src/Runner.ts里面 现在我准备开发多人对战版本,于是准备再写一个多人模块,包含相关的一些类 建立一个文件夹mult,里面有个MainRunner类继承...
来源: Laya_社区 发布时间: 20170203
...aya/d3/core/particleShuriKen/module/shape/HemisphereShape" HemisphereShape Class HemisphereShape HemisphereShape 类用于创建半球形粒子形状。 Hierarchy BaseShape HemisphereShape Implements IClone Index Constructors constructor Properties emitFromShell enable radius randomDirection shapeTy...
来源: Laya3.0_api 发布时间: 20231115
... 打开界底层是addChild打开的; 新建一个UIManagerexport class UIManager { private mainContent: Laya.Sprite; private scene: GameScence; private uiList:any; constructor() { this.mainContent = new Laya.Sprite(); this.uiList = ; } }mainContent 为默认添加到的层级, GameScence ...
来源: Laya_社区 发布时间: 20190222
...发语言、LayaAirIDE让项目开发更高效。let logger, keyDownList; class Interaction_Keyboard { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Laya.Handler; // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWid...
来源: Laya2.0_示例 发布时间: 20251209