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

大约有 550 项符合查询结果, 库内数据总量为 30,778 项。 (搜索耗时: 0.0037 秒)

261. 性能测试-虫子(慎入) [ 80%]

...{ 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

262. 2.0.0beta5版本drawPoly设置坐标失效 [ 80%]

...  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

263. laya.resource.HTMLCanvas [ 80%]

...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

264. 组件装饰器说明 · LayaAir3.0文档 · LAYABOX [ 80%]

...{ 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

265. 性能测试-虫子(慎入) [ 80%]

...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

266. laya.map.TileTexSet [ 80%]

...AniSprite上 Public Properties PropertyDefined By  animationTotalTime : Number = 0 动画播放的总时间 TileTexSet  durationTimeArray : Array = null 当前动画每帧的时间间隔TileTexSet  gid : int = -1唯一标识TileTexSet  isAnimation : Boolean = falsetrue表示当前纹理,...

来源: laya_api 发布时间: 20170929

267. 缓动-逐字缓动 [ 80%]

...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

268. laya.gltf.glTFUtils_API3.0 [ 80%]

...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

269. 寻路系统(ActionScript-3D基础(AS3)-LayaAir3D之高级应用) [ 80%]

...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

270. 缓动-逐字缓动 [ 80%]

...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