大约有 550 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0037 秒)
Laya2.0_api(174) laya_api(132) Laya_示例(65) Laya_社区(56) Laya2.0_示例(51) Laya2.0_文档(36) Laya3.0_api(32) Laya3.0_文档(4)
...{ private texturePath:string = "../../res/tinyMaggot.png"; private padding:number = 100; private maggotAmount:number = 5000; private tick:number = 0; private maggots:Array = []; private wrapBounds:Rectangle; private maggotTexture:any; constructor() { Laya.init(Browser.width,Browser.height, WebGL); L...
来源: Laya_示例 发布时间: 20241118
... public function addPath(points:Array, close:Boolean, convex:Boolean, dx:Number, dy:Number):void { var ci:int = 0; for (var i:int = 0, sz:int = points.length / 2; i < sz; i++) { var x1:Number = points[ci]+dx, y1:Number = points[ci + 1]+dy; points[ci] = x1; points[ci + 1] = y1; ci += 2; } _getPa...
来源: Laya_社区 发布时间: 20181127
...texture实例 HTMLCanvas release():void 释放。 HTMLCanvas size(w:Number, h:Number):void 设置宽高。 HTMLCanvas toBase64(type:String, encoderOptions:Number):String 把图片转换为base64信息 HTMLCanvas toBase64Async(type:String, encoderOptions:Number, callBack:Function):voidHTM...
来源: Laya2.0_api 发布时间: 20190513
...{ regClass, property } = Laya; @regClass() class Animal { private _weight: number = 0; @property( { type : Number } ) get weight() : number { return this._weight; } set weight(value: number) { this._weight = value; } } 2.3 是否序列化保存 通过装饰器定义为组件属性后,默认状态...
来源: Laya3.0_文档 发布时间: 20241014
...ggots { private texturePath:string = "res/tinyMaggot.png"; private padding:number = 100; private maggotAmount:number = 5000; private tick:number = 0; private maggots:Array = []; private wrapBounds:Rectangle; private maggotTexture:any; constructor() { Laya.init(Browser.width,Browser.height, WebGL); L...
来源: Laya2.0_示例 发布时间: 20241118
...AniSprite上 Public Properties PropertyDefined By animationTotalTime : Number = 0 动画播放的总时间 TileTexSet durationTimeArray : Array = null 当前动画每帧的时间间隔TileTexSet gid : int = -1唯一标识TileTexSet isAnimation : Boolean = falsetrue表示当前纹理,...
来源: laya_api 发布时间: 20170929
...ing = "LayaBox"; for (var i = 0, len = demoString.length; i > 1; var endY: number = Laya.stage.height / 2 - 50; var demoString: string = "LayaBox"; for (var i: number = 0, len: number = demoString.length; i > 1; var endY:int = Laya.stage.height / 2 - 50; var demoString:String = "LayaBox"; for (var i...
来源: Laya_示例 发布时间: 20241118
...getAccessorComponentsNum getAccessorComponentsNum(type: glTFAccessorType): number Defined in laya/gltf/glTFUtils.ts:257 根据数据类型获取分量 Parameters type: glTFAccessorType Returns number Static getAnimationRoot getAnimationRoot(channels: glTFAnimationChannel[]): Sprite3D Defined in laya...
来源: Laya3.0_api 发布时间: 20231102
...inX:int = terrainSprite.minX; var minZ:int = terrainSprite.minZ; var cellX:Number = terrainSprite.width / aStarMap.width; var cellZ:Number = terrainSprite.depth / aStarMap.height; var gridX:int = Math.floor((x - minX) / cellX); var gridZ:int = Math.floor((z - minZ) / cellZ); var boundWidth:int = aSt...
来源: Laya2.0_文档 发布时间: 20210714
...ing = "LayaBox"; for (let i = 0, len = demoString.length; i > 1; var endY: number = Laya.stage.height / 2 - 50; var demoString: string = "LayaBox"; for (var i: number = 0, len: number = demoString.length; i > 1; var endY:int = Laya.stage.height / 2 - 50; var demoString:String = "LayaBox"; for (var i...
来源: Laya2.0_示例 发布时间: 20241118