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

大约有 1,873 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0061 秒)

1251. HTMLCanvas Laya.stage.addChild(HTMLCanvas); 挂载到舞台报错 [ 69%]

...        */         public function drawToCanvas(canvasWidth:Number, canvasHeight:Number, offsetX:Number, offsetY:Number):HTMLCanvas {             if (Render.isConchNode) {                 var canvas:HTMLCanvas = HTMLCanvas.create("2D");           ...

来源: Laya_社区 发布时间: 20180626

1252. laya.d3.resource.models.SkyDome [ 69%]

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

1253. 在微信开发者工具里面运行时候报错 [ 69%]

...信开发者工具里面运行时候报错 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

1254. 关于customRender函数不执行的问题 [ 69%]

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

1255. mac os ts环境配置 [ 69%]

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

1256. 移动端横竖屏适配(类似锁屏效果)? [ 69%]

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

1257. 自定义shader 在未指定webgl 模式下 setIBVB参数应该如何设置 [ 69%]

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

1258. 计时器-间隔循环 [ 69%]

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

1259. 五子棋坐标点的解决方案 [ 69%]

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

1260. 输入设备-摇一摇 [ 69%]

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