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

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

111. 裁切图片后,该用什么方式去重绘出裁切后的图片 [ 79%]

...是我裁切后的多边形位置点数据): draw() {         const pp = this.owner.getComponent(Laya.PolygonCollider).points;         let points = this.pointS_to_pointA(pp)         let owner: Laya.Sprite = this.owner as Laya.Sprite         const ctx...

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

112. laya.d3.math.MathUtils3D [ 78%]

...kages | All Classes | Index | Frames No Frames MathUtils3DMethods | Constants Packagelaya.d3.mathClasspublic class MathUtils3DInheritanceMathUtils3D Object MathUtils 类用于创建数学工具。 Public Methods  MethodDefined By  MathUtils3D() 创建一个 MathUtils 实例。 MathUtils3D...

来源: laya_api 发布时间: 20170929

113. laya.d3.math.MathUtils3D [ 78%]

...kages | All Classes | Index | Frames No Frames MathUtils3DMethods | Constants Packagelaya.d3.mathClasspublic class MathUtils3DInheritanceMathUtils3D Object MathUtils 类用于创建数学工具。 Public Methods  MethodDefined By  MathUtils3D() 创建一个 MathUtils 实例。 MathUtils3D...

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

114. 输入设备-指南针 [ 78%]

...eesText, directionIndicator, firstTime = true; class InputDevice_Compass { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Laya.Handler; // 不支持WebGL时自动切换至Canvas Laya.init(700, 1024, WebGL); Laya.stage.alignV = Stage....

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

115. UI-Input [ 78%]

...); //加载资源。 })(); function onLoadComplete() { for (var i = 0; i ; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(800, 600, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgCo...

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

116. 滤镜-发光滤镜 [ 78%]

...发更高效。let apePath = "res/apes/monkey2.png"; class Filters_Glow { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage; // 不支持WebGL时自动切换至Canvas Laya.init(Browser.width, Browser.height, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stag...

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

117. laya.display.Stage [ 78%]

...ses | Index | Frames No Frames StageProperties | Methods | Events | Constants Packagelaya.displayClasspublic class StageInheritanceStage Sprite Node EventDispatcher Object Stage 是舞台类,显示列表的根节点,所有显示对象都在舞台上显示。通过 Laya.stage 单例访问...

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

118. 如何动态绘制自定义模型? [ 78%]

...umber>, faceArr: Array<number>, normalArr: Array<number>) { const verticeArr = new Array<number>(); for (let i = 0; i < vertArr.length; i += 3) { verticeArr.push(vertArr[i], vertArr[i + 1], vertArr[i + 2]); verticeArr.push(normalArr[i], normalArr[i + 1], normalArr[i + 2]); } ...

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

119. 解决游戏最小化退到后台后浏览器会强制1秒执行一次ILaya.stage._loop() [ 78%]

...&& typeof Atomics !== 'undefined') {             const nil = new Int32Array(new SharedArrayBuffer(4))             // also filters out NaN, non-number types, including empty strings, but allows bigints             const valid = ms ...

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

120. 关于ios下的错误 [ 78%]

...:executeCall(JSC::ExecState*, JSC::JSObject*, JSC::CallType, JSC::CallData const&, JSC::JSValue, JSC::ArgList const&) + 420 20 JavaScriptCore JSC::call(JSC::ExecState*, JSC::JSValue, JSC::CallType, JSC::CallData const&, JSC::JSValue, JSC::ArgList const&, JSC::JSValue*) + 92 21 WebCor...

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