大约有 1,102 项符合查询结果, 库内数据总量为 30,903 项。 (搜索耗时: 0.0058 秒)
Laya_社区(444) Laya3.0_api(292) Laya_示例(112) Laya2.0_示例(80) Laya2.0_文档(61) Laya3.0_文档(51) Laya2.0_api(35) laya_api(27)
...用于创建三维向量。 Hierarchy ConchVector3 Implements IClone Index Constructors constructor Properties elements ForwardLH ForwardRH NAN NegativeUnitX ONE UnitX UnitY UnitZ Up ZERO Accessors x y z Methods clone cloneTo fromArray setValue toDefault Clamp TransformNormal add cross distance dist...
来源: Laya3.0_api 发布时间: 20231102
...t module laya{ export class SkeletonTempletSample { templet: Laya.Templet; constructor() { Laya.WebGL.enable(); Laya.init(1000, 900); //创建动画模板 this.templet = new Laya.Templet(); this.templet.on(Laya.Event.COMPLETE, this, this.parseComplete); this.templet.on(Laya.Event.ERROR, this, this.o...
来源: Laya2.0_文档 发布时间: 20210715
...Texture2DArray 2D 纹理 数组 Hierarchy BaseTexture Texture2DArray Index Constructors constructor Properties _id depth destroyedImmediately lock name url uuid DEBUG Accessors anisoLevel baseMipmapLevel compareMode cpuMemory defaultTexture destroyed dimension filterMode format gammaCorrection gamma...
来源: Laya3.0_api 发布时间: 20231115
...言、LayaAirIDE让项目开发更高效。class TiledMap_AnimationTile { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage; // 不支持WebGL时自动切换至Canvas Laya.init(1100, 800, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALI...
来源: Laya2.0_示例 发布时间: 20250223
...csAni Class GraphicsAni Graphic动画 Hierarchy Graphics GraphicsAni Index Constructors constructor Accessors cmds Methods addCmd alpha clear clipRect destroy drawCircle drawCurves drawEllipse drawImage drawLine drawLines drawPath drawPie drawPoly drawRect drawTexture drawTextures drawTriangles fill...
来源: Laya3.0_api 发布时间: 20231115
...e ui { export class AttackUI extends View { public btn_attack:Laya.Button; constructor(){ super()} createChildren():void { super.createChildren(); this.loadScene("Attack"); } } } 扩展UI代码: import { ui } from "../ui/layaMaxUI"; export default class AttackView extends ui.AttackUI { construc...
来源: Laya_社区 发布时间: 20180926
...的程序入口文件,新建一个main.ts,输入以下代码: class main{ constructor(){ Laya.init(600,400); console.log(common.num); } } new main(); 这里面访问了另外一个文件common.ts中定义的类: class common{ constructor(){ } public static num : number = 1000000; } 然后启动...
来源: Laya_社区 发布时间: 20180208
...件网格数据模板。 Hierarchy Resource Mesh Implements IClone Index Constructors constructor Properties _id destroyedImmediately lock morphTargetData name url uuid DEBUG MESH_INSTANCEBUFFER_TYPE_NORMAL MESH_INSTANCEBUFFER_TYPE_SIMPLEANIMATOR Accessors bounds cpuMemory destroyed gpuMemory id ind...
来源: Laya3.0_api 发布时间: 20231115
...onArray = [], mFactory, mActionIndex = 0; class PerformanceTest_Skeleton { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Laya.Handler, Loader = Laya.Loader; // 不支持WebGL时自动切换至Canvas Laya.init(Browser.width, Browser....
来源: Laya2.0_示例 发布时间: 20250223
...示: ```typescript export default class ImageRunTime extends Laya.Image{ constructor(){ super(); this.scaleTime = 100; //设置组件的中心点 this.anchorX = this.anchorY = 0.5; //添加鼠标按下事件侦听。按时时缩小按钮。 this.on(Laya.Event.MOUSE_DOWN,this,this.scaleSmall); //...
来源: Laya2.0_文档 发布时间: 20210715