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

大约有 1,232 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0048 秒)

361. 屏幕适配-自动竖屏 [ 72%]

...rt Stage = Laya.Stage; import Text = Laya.Text; import WebGL = Laya.WebGL; export class SmartScale_Portrait { constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(550, 400, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = "...

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

362. 屏幕适配-自动横屏 [ 72%]

...rt Stage = Laya.Stage; import Text = Laya.Text; import WebGL = Laya.WebGL; export class SmartScale_Landscape { constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(550, 400, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = ...

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

363. laya.html.XML_API3.0 [ 72%]

...e layaair Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/html/XML" XML Class XML Hierarchy XML Index Constructors constructor Properties name text Accessors attributes Methods elements getAttrBool getAttrFloat getAttrInt getAttrString getNode parse reset...

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

364. laya.components.AnimatorTransition2D_API3.0 [ 72%]

...e layaair Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/components/AnimatorTransition2D" AnimatorTransition2D Class AnimatorTransition2D Hierarchy AnimatorTransition2D Index Constructors constructor Properties conditions destState exitByTime exitTime mu...

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

365. laya.components.AnimatorStateNumberCondition_API3.0 [ 72%]

...e layaair Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/components/AnimatorStateCondition" AnimatorStateNumberCondition Class AnimatorStateNumberCondition Hierarchy AnimatorStateCondition AnimatorStateNumberCondition Index Constructors constructor Acces...

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

366. 文本-字数限制 [ 72%]

...ge = Laya.Stage; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class Text_MaxChars { constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTE...

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

367. Laya ts版,使用jasmine进行单元测试 [ 72%]

...o World!'; } 一个是src/Library/ToolService.ts, 内容为module Library{ export class ToolService{ constructor(){ } public static sum(a:number, b:number):number { return a + b; } } }   一个是 src/Library/UserService.ts, 内容为module Library{ export class UserService{ constructor(){ } public...

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

368. laya.d3.renderobjs.nativeobj.NativeBaseRenderQueue_API3.0 [ 72%]

...e layaair Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/d3/RenderObjs/NativeOBJ/NativeBaseRenderQueue" NativeBaseRenderQueue Class NativeBaseRenderQueue Hierarchy NativeBaseRenderQueue Implements IRenderQueue Index Constructors constructor Properties _b...

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

369. laya.d3.renderobjs.renderobj.BaseRenderQueue_API3.0 [ 72%]

...e layaair Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/d3/RenderObjs/RenderObj/BaseRenderQueue" BaseRenderQueue Class BaseRenderQueue Hierarchy BaseRenderQueue Implements IRenderQueue Index Constructors constructor Properties _batch _context _isTranspa...

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

370. runTime使用(JavaScript-IDE篇(JS)-组件化开发相关) [ 72%]

...放(类似按钮)的功能,全部代码如下所示: ```typescript export default class ImageRunTime extends Laya.Image{ constructor(){ super(); this.scaleTime = 100; //设置组件的中心点 this.anchorX = this.anchorY = 0.5; //添加鼠标按下事件侦听。按时时缩小按钮。 thi...

来源: Laya2.0_文档 发布时间: 20210715