大约有 1,106 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0055 秒)
Laya_社区(447) Laya3.0_api(292) Laya_示例(112) Laya2.0_示例(80) Laya2.0_文档(61) Laya3.0_文档(52) Laya2.0_api(35) laya_api(27)
...property } = Laya; @regClass() export class UI_Panel extends Laya.Script { constructor() { super(); } // 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { // 创建Panel组件 let panel: Laya.Panel = new Laya.Panel(); panel.hScrollB...
来源: Laya3.0_文档 发布时间: 20251010
...象(TileAniSprite)) author ... Hierarchy Sprite TileAniSprite Index Constructors constructor Properties _extra _ownGraphics _scene _skinBaseUrl _url autoSize hitTestPrior mouseThrough name tag drawtocanvCtx Accessors _isHeightSet _isWidthSet active activeInHierarchy alpha anchorX anchorY blend...
来源: Laya3.0_api 发布时间: 20231115
...ayCast' of undefined export default class indexscene extends Laya.Script { constructor(){ super(); this.rotation = new Laya.Vector3(0, 0.01, 0); this.point = new Laya.Vector2(); this.ray = new Laya.Ray(new Laya.Vector3(),new Laya.Vector3()); //1.开启第四个参数 let config3D = new Laya.Config3D...
来源: Laya_社区 发布时间: 20200903
...number = 43; private CLOSE_BTN_PADDING: number = 5; private assets: Array; 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_示例 发布时间: 20251209
...2019-12-16 11:20 class AnimatorDemo { private scene:Laya.Scene3D; resource constructor() { //初始化引擎 Laya3D.init(0, 0); //适配模式 Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; //开启统计信息 Laya.Stat.show(); Laya.stage.frameRate = L...
来源: Laya_社区 发布时间: 20191209
... /** 是否向右移动*/ private isright: boolean = false; constructor() { super(); this.packageName = "Game"; this.resName = "Main"; this.isFullWindow = true; } /** * 初始化组件 第一次new的时候执行 ...
来源: Laya_社区 发布时间: 20221207
...ureproperty public static var grayTexture:TextureCube灰色纯色纹理。Constructor DetailTextureCube()Constructorpublic function TextureCube(format:int, mipmap:Boolean = false) 创建一个 TextureCube 实例。 Parameters format:int (default = NaN) — 贴图格式。 mipmap:Boolean (default ...
来源: Laya2.0_api 发布时间: 20190513
... camera: Laya.BaseCamera; protected scene: Laya.Scene3D; constructor() { super(); } /** * @private */ protected _updateRotation(): void { if (Math.abs(this.yawPitchRoll.y) < 1.50) { ...
来源: Laya_社区 发布时间: 20200707
...类,代码编写如下: ```typescript // 程序入口 class TweenDemo{ constructor() { //初始化舞台 Laya.init(1334,750,Laya.WebGL); //背景颜色 Laya.stage.bgColor = "#1b2436"; //创建缓动文本 this.createTween(); } //创建缓动文本 private createTween():void{ //"LayaBox字符串...
来源: Laya2.0_文档 发布时间: 20210715
...n get delta():intscaleproperty public var scale:Number = 1 时针缩放。Constructor DetailTimer()Constructorpublic function Timer() 创建 Timer 类的一个实例。 Method DetailcallLater()method public function callLater(caller:*, method:Function, args:Array = null):void 延迟执行。 Parame...
来源: laya_api 发布时间: 20170929