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

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

741. 网络和格式-Socket [ 54%]

...irIDE让项目开发更高效。let socket, output; class Network_Socket { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Laya.Handler; // 不支持WebGL时自动切换至Canvas Laya.init(Browser.width, Browser.height, WebGL); Laya.s...

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

742. 像素线 · LayaAir3.0文档 · LAYABOX [ 54%]

...例。 * @param maxCount 最大线段数量。 * @param name 名字。 */ constructor(maxCount: number = 2, name: string = null) { super(name); this._render = this.addComponent(PixelLineRenderer); this._geometryFilter = (this._render as PixelLineRenderer)._pixelLineFilter; (this._render as PixelLine...

来源: Laya3.0_文档 发布时间: 20240624

743. laya.d3.math.Plane [ 54%]

...ctingproperty public static var PlaneIntersectionType_Intersecting:int = 2Constructor DetailPlane()Constructorpublic function Plane(normal:Vector3, d:Number = 0) 创建一个 Plane 实例。 Parameters normal:Vector3 — 平面的向量  d:Number (default = 0) — 平面到原点的距离 Method D...

来源: laya_api 发布时间: 20170929

744. laya.d3.math.Plane [ 54%]

...ctingproperty public static var PlaneIntersectionType_Intersecting:int = 2Constructor DetailPlane()Constructorpublic function Plane(normal:Vector3, d:Number = 0) 创建一个 Plane 实例。 Parameters normal:Vector3 — 平面的向量  d:Number (default = 0) — 平面到原点的距离 Method D...

来源: Laya2.0_api 发布时间: 20190513

745. 屏幕适配-缩放-Show All [ 54%]

...Laya.Stage; export class SmartScale_Scale_SHOW_ALL { private rect: Sprite; constructor() { Laya.init(550, 400); Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.createCantralRect(); } private createCantralRect(): void { this.rect = new Sprite(); this.rect.graphics.dra...

来源: Laya_示例 发布时间: 20241002

746. 屏幕适配-缩放-Extract Fit [ 54%]

...a.Stage; export class SmartScale_Scale_EXTRACT_FIT { private rect: Sprite; constructor() { Laya.init(550, 400); Laya.stage.scaleMode = Stage.SCALE_EXACTFIT; Laya.stage.bgColor = "#232628"; this.createCantralRect(); } private createCantralRect(): void { this.rect = new Sprite(); this.rect.graphics.dr...

来源: Laya_示例 发布时间: 20241002

747. 2.3.0beta版本,微信真机调用async函数报错 [ 54%]

...是降到es5以后又会其他地方报错: Uncaught TypeError: Class constructor Scene cannot be invoked without 'new'   现在这个问题有办法解决吗? 2019-10-02 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2...

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

748. laya.d3.animation.AnimationNode [ 54%]

...mationNodeProperty Detailnamepropertypublic var name:String节点名称。 Constructor DetailAnimationNode()Constructorpublic function AnimationNode(localPosition:Float32Array = null, localRotation:Float32Array = null, localScale:Float32Array = null, worldMatrix:Float32Array = null) 创建一个新...

来源: Laya2.0_api 发布时间: 20190513

749. 关于button的click监听 [ 54%]

...8 14:08 就新建项目 这是所有代码 // 程序入口 class GameMain{ constructor() { Laya.init(750,1334,Laya.WebGL); Laya.stage.bgColor="#FFFFFF"; Laya.stage.scaleMode = "showall"; //不缩放 fixedauto showall Laya.stage.alignH = "center"; //水平居中 Laya.sta...

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

750. HTMLIframeElement加载html网页的问题 [ 54%]

...MLIframeElement = Laya.HTMLIframeElement; class TestUI extends ui.htmlUI { constructor() { super(); var iHtml: HTMLIframeElement = new HTMLIframeElement(); Laya.stage.addChild(iHtml); iHtml.href = "https://www.baidu.com/"; } } // 程序入口 Laya.init(600, 400); Laya.loader.load([{ url: "res/atlas/...

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