• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 1,106 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0054 秒)

351. UI-Button [ 60%]

... = 200, VERTICAL_SPACING = 100, xOffset, yOffset, skins; class UI_Button { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Laya.Handler; // 不支持WebGL时自动切换至Canvas Laya.init(800, 600, WebGL); Laya.stage.alignV = Stage.A...

来源: Laya2.0_示例 发布时间: 20251130

352. 新手引导在ios浏览器表现异常 [ 60%]

... width = 750;         private height = 1334;         constructor()          {             Laya3D.init(this.width, this.height);             Laya.stage.setScreenSize(this.width, this.height);             Laya.stage.scaleMode = Lay...

来源: Laya_社区 发布时间: 20200119

353. 鼠标交互-键盘交互 [ 60%]

...目开发更高效。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.clientWidth, Browser.clientHeight, We...

来源: Laya2.0_示例 发布时间: 20251130

354. Ts简单对象池 [ 60%]

...; public m_ObjectPoolDic:{[key:number]:QueueT<Laya.MeshSprite3D>}={} constructor() { } static getInstance() { return this._instance || (this._instance = new PoolManager()) }  //初始化 //加载到内存中创建出来之后添加到这里面 public InitPool(key:number,MeshSprite:Laya.MeshSp...

来源: Laya_社区 发布时间: 20191206

355. UI-CheckBox [ 60%]

...L_SPACING = 100, X_OFFSET = 100, Y_OFFSET = 50, skins; class UI_CheckBox { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Laya.Handler; // 不支持WebGL时自动切换至Canvas Laya.init(800, 600, WebGL); Laya.stage.alignV = Stage.A...

来源: Laya2.0_示例 发布时间: 20251130

356. UI-Slider [ 60%]

...语言、LayaAirIDE让项目开发更高效。let skins; class UI_Slider { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Laya.Handler; // 不支持WebGL时自动切换至Canvas Laya.init(550, 400, WebGL); Laya.stage.alignV = Stage.A...

来源: Laya2.0_示例 发布时间: 20251130

357. 骨骼动画-换装 [ 60%]

...= ["goblin","goblingirl"], mCurrSkinIndex = 0; class Skeleton_ChangeSkin { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Sprite = Laya.Sprite; // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebG...

来源: Laya2.0_示例 发布时间: 20251130

358. laya.d3.core.light.LightSprite_API3.0 [ 60%]

... Hierarchy Sprite3D LightSprite DirectionLight PointLight SpotLight Index Constructors constructor Properties _extra _scene _url name tag WORLDINVERTFRONT Accessors active activeInHierarchy color components destroyed displayedInStage hideFlags id intensity is3D layer lightWorldMatrix lightmapBakedTy...

来源: Laya3.0_api 发布时间: 20231115

359. 有标量与Vector3的乘法公式吗? [ 60%]

...项目,在as开发模式下,运行报错 TypeError: Vector3 is not a constructor Vector3 是不是有个BUG?@版主 Vector3类里面的forNativeElement方法是做什么用的 问题状态 最新活动: 2017-08-21 20:11 浏览: 1135 关注: 3 人

来源: Laya_社区 发布时间: 20170818

360. 请大家帮助优化一下这个抛物线的代码 [ 59%]

...a.Sprite{ private static cached:boolean = false; private body:Laya.Sprite; constructor(){ super(); this.init(); } public init():void{ if(!Ball.cached){ Ball.cached = true; this.body = new Laya.Sprite(); this.body.loadImage("war/ball.png"); this.body.pivot(12,12); } this.addChild(this.body); Laya.tim...

来源: Laya_社区 发布时间: 20171108