大约有 1,869 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0046 秒)
Laya_社区(616) Laya3.0_api(529) Laya2.0_api(242) laya_api(178) Laya2.0_文档(88) Laya_示例(78) Laya3.0_文档(70) Laya2.0_示例(68)
... on type 'typeof ui'. src/utils/Utils.ts(874,9): error TS2322: Type '[any, number]' is not assignable to type '[number]'. Types of property 'length' are incompatible. Type '2' is not assignable to type '1'. 通过sudo vim /etc/paths添加path环境变量后还是会报这个错误,mac os该如...
来源: Laya_社区 发布时间: 20180419
...nt; import laya.utils.Browser; public class ShiPei { private var fillWidth:Number=Browser.width; private var fillHeight:Number=Browser.height; public function ShiPei() { //设置初始化 Laya.init(fillWidth,fillHeight); //设置横屏显示 Laya.stage.screenMode="horizontal"; //默认触发一次...
来源: Laya_社区 发布时间: 20160718
...blic //重写渲染函数 public customRender(context:Laya.RenderContext,x:number,y:number):void{ this.shaderValue.iTime += this.animeValue; let webgl2d = context.ctx instanceof Laya.WebGLContext2D if( webgl2d) (context.ctx as Laya.WebGLContext2D).setIBVB( x, y, this.iBuffer, this.vBuffer, this.iNum...
来源: Laya_社区 发布时间: 20180712
...age.bgColor = "#232628"; this.setup(); } private setup(): void { var vGap: number = 200; this.rotateTimeBasedText = this.createText("基于时间旋转", Laya.stage.width / 2, (Laya.stage.height - vGap) / 2); this.rotateFrameRateBasedText = this.createText("基于帧频旋转", this.rotateTimeBasedT...
来源: Laya2.0_示例 发布时间: 20260106
...回复 wudi199553 赞同来自: harry var ape=new Laya.Sprite(); ape.pivot(number,number ); ape就是你的 棋盘,这样能看懂么 2017-11-13 1 0 分享 微博 QZONE 微信 harry 赞同来自: 谢谢大佬 好像有点感觉了 2017-11-13 0 1 分享 微博 QZONE 微信 harry 赞同来自: 想...
来源: Laya_社区 发布时间: 20171113
...; import Event = Laya.Event; export class InputDevice_Shake { private picW:number = 484; private picH:number = 484; private console:Text; private shakeCount:number = 0; constructor() { Laya.init(this.picW, Browser.height * this.picW / Browser.width); Laya.stage.scaleMode = Stage.SCALE_SHOWALL; this....
来源: Laya_示例 发布时间: 20260106
...这个API: MeshTerrainSprite3D.createFromMesh(mesh:Mesh, heightMapWidth:Number, heightMapHeight:Number, name:String = null) 其中的heightMapWidth和heightMapHeight是指的在2D平面上的宽高吗?该怎么确定这两个参数的具体数值? 2017-06-02 添加评论 免费帖 --> 分...
来源: Laya_社区 发布时间: 20170602
...tage.on(Event.RESIZE, this, this.onResize); this.makeObject(0); for (var i:number = 0; i this.objs) { this.current = 0; } this.makeObject(this.current); } private makeObject(t):void { var xd:number; var i:number; switch (t) { case 0: for (i = 0; i this.tpoint1[i]) { this.tpoint1[i] = this.tpoint1[i]...
来源: Laya_示例 发布时间: 20260106
...tage.on(Event.RESIZE, this, this.onResize); this.makeObject(0); for (var i:number = 0; i this.objs) { this.current = 0; } this.makeObject(this.current); } private makeObject(t):void { var xd:number; var i:number; switch (t) { case 0: for (i = 0; i this.tpoint1[i]) { this.tpoint1[i] = this.tpoint1[i]...
来源: Laya2.0_示例 发布时间: 20260106
...景色后打包小游戏真机调试会报错gameThirdScriptError expected Number;at requestAnimationFrame callback function Error: expected Number 去掉设置背景色的代码就好了camera.clearColor = new Laya.Vector3(0.5, 0.5, 0.6); laya版本1.7.19 设备 小米note3 微信版本 6.7.2 安...
来源: Laya_社区 发布时间: 20180927