大约有 3,008 项符合查询结果, 库内数据总量为 30,900 项。 (搜索耗时: 0.0071 秒)
Laya_社区(1073) Laya3.0_api(672) Laya2.0_api(368) laya_api(298) Laya2.0_文档(233) Laya_示例(146) Laya2.0_示例(118) Laya3.0_文档(100)
...打开链接查看:[https://layaair.ldc.layabox.com/api/?category=Bone&class=laya.ani.bone.Skeleton](https://layaair2.ldc2.layabox.com/api2/Chinese/index.html?version=2.9.0beta&type=2D&category=Animation&class=laya.ani.bone.Skeleton) 创建 SpineDemo.js,代码编写如下: ```javascript //初...
来源: Laya2.0_文档 发布时间: 20210715
...发语言、LayaAirIDE让项目开发更高效。let logger, keyDownList; class Interaction_Keyboard { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Laya.Handler; // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWid...
来源: Laya2.0_示例 发布时间: 20250220
....layabox.com/api2/Chinese/index.html?version=2.9.0beta&type=2D&category=UI&class=laya.ui.Clip) Clip 组件的资源示例:  (图1) 设置 clipX 属性的值为10后的显示效果:  (图2) 设置 index 属性...
来源: Laya2.0_文档 发布时间: 20210714
...his); this.init(); } //RunGame 是一个显示对象 继承此 Sprite Laya.class(RunGame,"RunGame", laya.display.Sprite); //定义RunGame的prototype var _proto = RunGame.prototype; //初始化 _proto.init = function(){ console.log('RunGame Init'); } })(); 此处我们要说一下 Laya.class(RunGa...
来源: Laya_社区 发布时间: 20160722
...应的编号对应好,否则使用时会出问题 */ export default class PoolManager { static _instance:any; public m_ObjectPoolDic:{[key:number]:QueueT<Laya.MeshSprite3D>}={} constructor() { } static getInstance() { return this._instance || (this._instance = new PoolManager()) } //初...
来源: Laya_社区 发布时间: 20191206
...非你的代码有问题 代码如下 输出结果为 1 // 程序入口 class LayaSample{ private static aa:Child; private static bb:Child; constructor() { Laya.init(600,400); this.init(); } private init(){ LayaSample.aa = new Child(); LayaSample.aa.num("1"); LayaSample.bb = new Child(); LayaSamp...
来源: Laya_社区 发布时间: 20180729
...nly exported Menu Globals "laya/physics/joint/RevoluteJoint" RevoluteJoint Class RevoluteJoint 旋转关节强制两个物体共享一个锚点,两个物体相对旋转 Hierarchy JointBase RevoluteJoint Index Constructors constructor Properties _extra _singleton anchor collideConnected otherBody o...
来源: Laya3.0_api 发布时间: 20231115
...导在ios浏览器表现异常 代码: module laya { export class Sprite_Guide { private width = 750; private height = 1334; constructor() { Laya3D.init(this.width, this.height); ...
来源: Laya_社区 发布时间: 20200119
....layabox.com/api2/Chinese/index.html?version=2.9.0beta&type=2D&category=UI&class=laya.ui.HScrollBar)。 HScrollBar 组件的图像资源示例:  (图1)  (图2)  (图3) ![图片0.p...
来源: Laya2.0_文档 发布时间: 20210715
...结合1.3节的脚本控制,在脚本中输入如下代码: const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { //declare owner : Laya.Sprite3D; @property({ type: Laya.Text }) txt: Laya.Text; constructor() { super(); } onAwake(): void { this.txt.text = "...
来源: Laya3.0_文档 发布时间: 20240910