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

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

81. laya.d3.math.ContainmentType [ 83%]

...All Packages | All Classes | Index | Frames No Frames ContainmentTypeConstants Packagelaya.d3.mathClasspublic class ContainmentTypeInheritanceContainmentType Object ContainmentType 类用于定义空间物体位置关系。 Public Constants ConstantDefined By  Contains : int = 1[static] Co...

来源: laya_api 发布时间: 20170929

82. laya.d3.math.ContainmentType [ 83%]

...All Packages | All Classes | Index | Frames No Frames ContainmentTypeConstants Packagelaya.d3.mathClasspublic class ContainmentTypeInheritanceContainmentType Object ContainmentType 类用于定义空间物体位置关系。 Public Constants ConstantDefined By  Contains : int = 1[static] Co...

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

83. laya.d3.graphics.Vertex.VertexPositionTerrain [ 82%]

... Index | Frames No Frames VertexPositionTerrainProperties | Methods | Constants Packagelaya.d3.graphics.VertexClasspublic class VertexPositionTerrainInheritanceVertexPositionTerrain ObjectImplements IVertex VertexPositionTerrain 类用于创建位置、法线、纹理1、纹理2顶点结构。...

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

84. 2D物理-碰撞过滤器 [ 82%]

...(exports, Laya) { 'use strict'; class Physics_Physics_CollisionFiltering { constructor() { this.preMovementX = 0; this.preMovementY = 0; Laya.Config.isAntialias = true; Laya.Laya.init(1200, 700, Laya.WebGL); Laya.Stat.show(); Laya.Physics.enable(); Laya.PhysicsDebugDraw.enable(); Laya.Laya.stage.ali...

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

85. UI-Input [ 82%]

...PUT_WIDTH = 300, INPUT_HEIGHT = 50, Y_OFFSET = 50, skins; class UI_Input { 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_示例 发布时间: 20240930

86. 鼠标交互-滑动 [ 82%]

...unction setup() { createSprtie(); drawTrack(); } function createSprtie() { const w = 50; const h = 30; button = new Sprite(); button.graphics.drawRect(0, 0, w, h, "#FF7F50"); button.pivot(w / 2, h / 2); //设置宽高(要接收鼠标事件必须设置宽高,否则不会被命中) button.size(w...

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

87. 出现 编译错误 [ 81%]

...容相关的链接 提交 1 个回复 kylin 赞同来自: src/Main.js中将const删掉。 因为const的存在,编译器认为你声明了 const class class是关键字。 2019-10-23 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 138**...

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

88. 定时器 · LayaAir3.0文档 · LAYABOX [ 81%]

... false, delay, caller, method, args, coverBefore); } 使用示例如下: const { regClass } = Laya; import { RuntimeScriptBase } from "./RuntimeScript.generated"; @regClass() export class RuntimeScript extends RuntimeScriptBase { onAwake(): void { //60帧后,图片的透明度变为0.5 Laya.time...

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

89. 鼠标交互-自定义事件 [ 81%]

...ript、TypeScript三种开发语言、LayaAirIDE让项目开发更高效。const ROTATE = "rotate"; class Interaction_CustomEvent { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Laya.Handler; // 不支持WebGL时自动切换至Canva...

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

90. UI-List [ 81%]

...ript、TypeScript三种开发语言、LayaAirIDE让项目开发更高效。const WID = 373, HEI = 85; const Box = Laya.Box; class Item extends Box { constructor(){ super(); const Image = Laya.Image; this.size(WID, HEI); this.img = new Image(); this.addChild(this.img); } setImg(src) { this.img.skin =...

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