大约有 1,873 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0061 秒)
Laya_社区(617) Laya3.0_api(529) Laya2.0_api(242) laya_api(178) Laya2.0_文档(88) Laya_示例(78) Laya3.0_文档(73) Laya2.0_示例(68)
... */ public function drawToCanvas(canvasWidth:Number, canvasHeight:Number, offsetX:Number, offsetY:Number):HTMLCanvas { if (Render.isConchNode) { var canvas:HTMLCanvas = HTMLCanvas.create("2D"); ...
来源: Laya_社区 发布时间: 20180626
...ties Show Inherited Public Properties PropertyDefined By alphaBlending : Number 获取透明混合度。 Sky colorIntensity : Number 获取颜色强度。 Sky envDiffuseSHBlue : Float32Array[write-only] Sky envDiffuseSHGreen : Float32Array[write-only] Sky envDiffuseSHRed : Float32Array[write-o...
来源: laya_api 发布时间: 20170929
...信开发者工具里面运行时候报错 gameThirdScriptError Unexpected number in JSON at position 1;at api readFile success callback function SyntaxError: Unexpected number in JSON at position 1 at JSON.parse (<anonymous>) 附件 : --> 2018-05-21 添加评论 免费帖 --> 分享 微博 QZ...
来源: Laya_社区 发布时间: 20180521
...mRenderEnable = true; this.customRender = (context: Laya.RenderContext, x: number, y: number) => { let webGLContext = context.ctx as Laya.WebGLContext2D; }sprite设置了customRenderEnable = true; 但customRender函数并没有被调用,在graphics内做下绘制就能触发函数dia调用,...
来源: Laya_社区 发布时间: 20180728
... 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_示例 发布时间: 20260303
...回复 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_示例 发布时间: 20260303