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

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

1301. laya.ui.HBox_API3.0 [ 37%]

...HBox HBox 是一个水平布局容器类。 Hierarchy LayoutBox HBox Index Constructors constructor Properties _extra _ownGraphics _scene _skinBaseUrl _url autoSize hitTestPrior mouseThrough name tag BOTTOM MIDDLE NONE TOP drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy ali...

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

1302. 鼠标交互-双指缩放(多点触控) [ 37%]

...模点之间距离 private lastDistance: number = 0; private sp: Sprite; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = "show...

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

1303. 微信小游戏默认项目代码添加unity导出.lh文件,微信开发工具提示错误 [ 37%]

...*/ private role:Laya.Sprite3D; /*3D摄像机*/ public camera:Laya.Camera; constructor() { //初始化微信小游戏 Laya.MiniAdpter.init(); //初始化引擎 Laya3D.init(0, 0, true); //适配模式 Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; //开...

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

1304. laya.ui.List_API3.0 [ 37%]

... Box = laya.ui.Box; import Label = laya.ui.Label; class Item extends Box { constructor() { this.graphics.drawRect(0, 0, 100, 20, null, "#ff0000"); var label: Label = new Label(); label.text = "100000"; label.name = "label";//设置 label 的name属性值。 label.size(100, 20); this.addChild(label);...

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

1305. [BUG]刚体约束问题,移动后约束混乱! [ 36%]

...private newScene:Laya.Scene3D;   private boxA: Laya.MeshSprite3D;   constructor() {     super();     Laya3D.init(0, 0);     Laya.stage.scaleMode = Laya.Stage.SCALE_FULL;     Laya.stage.screenMode = Laya.Stage.SCREEN_NONE;     Laya.Stat.show();     this.newScene ...

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

1306. 材质-BlinnPhong-漫反射贴图 [ 36%]

...iffuseMap { private rotation: Laya.Vector3 = new Laya.Vector3(0, 0.01, 0); constructor() { Laya3D.init(0, 0, true); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; Laya.Stat.show(); var scene: Laya.Scene = Laya.stage.addChild(new Laya.Scene()) as Laya.Sc...

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

1307. 计时器-延迟执行 [ 36%]

...lass Timer_DelayExcute { private button1: Sprite; private button2: Sprite; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Sta...

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

1308. UI-RefreshList [ 36%]

...oint; Tween = Laya.Tween; TextArea = Laya.TextArea; class UI_RefreshList { constructor() { this.baseBox = null; this.refreshLoading = null; this.loadingAni = null; this.loadingLabel = null; this.refreshList = null; /** 消息生成的当前最大id值 */ this.msgIdNow=1; /** 滚动条效果是否停...

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

1309. laya.ui.Tree_API3.0 [ 36%]

...a.utils.Browser; import Handler = laya.utils.Handler; class Tree_Example { constructor() { Laya.init(640, 800); Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load(["resource/ui/vscroll.png", "resource/ui/vscroll$bar.png", "resource/ui/vscroll$down.png", "resource/ui/vsc...

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

1310. laya.d3.math.Matrix3x3 [ 36%]

...ty Detailelementspropertypublic var elements:Float32Array矩阵元素数组Constructor DetailMatrix3x3()Constructorpublic function Matrix3x3() 创建一个 Matrix3x3 实例。 Method Detailclone()method public function clone():* 克隆。 Returns* — 克隆副本。 cloneTo()method  public functio...

来源: laya_api 发布时间: 20170929