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

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

101. WaterPrimaryMaterial的使用 [ 70%]

...     Laya.Texture2D.load("res/water1.png", Laya.Handler.create(null, function(tex:Laya.Texture2D) { // material.albedoTexture = tex; material.mainTexture = tex; })); Laya.Texture2D.load("res/FoamTexture.jpg", Laya.Handler.create(null, function(tex:Laya.Texture2D) { // material.albedoTexture = t...

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

102. 淘宝创意互动发布指南(TypeScript-小游戏适配文档-淘宝创意互动) [ 70%]

...如有2个js,a.js 和 b.js ```javascript //a.js 中的内容: var a = function(){ console.log("a") } //b.js 中的内容: var b = function(){ console.log("b") } ``` 然后我们引用 js,调用2个方法,在 H5 上是可以正常输出内容的。 ```javascript require("a.js") require("b.j...

来源: Laya2.0_文档 发布时间: 20210714

103. ios14新系统问题 [ 70%]

...我2.0.1版本也遇到了,暂时这样解决了 WebGLContext.useProgram=function(gl,program){ //ios14会报错“webgl location not for current program”注释这里暂时解决 // if (WebGLContext._useProgram===program) // return false; gl.useProgram(program); WebGLContext._useProgram=program; ...

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

104. 我就郁闷了,这都能报错 [ 70%]

... 微信小游戏编译报错 导微信小程序报错window.focus is not a function 2.2.0beta4,微信上动态合批报错. IDE通过.ui自动生成的ui代码报错 问题状态 最新活动: 2017-01-26 10:03 浏览: 1951 关注: 2 人 Laya_XS • 2017-01-26 14:51 有问题再提问!

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

105. native打包成app使用FileReader接口readAsArrayBuffer 时app崩溃 [ 70%]

...二进制数据,APP直接崩溃了,这是什么原因呢     doMsg:function(){                     if(this.msgs.length == 0 || !this.workDone){                         return;                     }                            ...

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

106. js项目使用缓动类Tween报错 [ 70%]

...使用缓动类Tween报错 代码如下 var Tww = laya.utils.Tween; to0(); function to0() { Tww.to(this.lis, { alpha: 0.5 }, 500, null, Handler.create(this, to1)); } function to1() { Tww.to(this.lis, { alpha: 1 }, 500, null, Handler.create(this, to0)); } 在AS中是没有问题的。 2018-05-24 添...

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

107. startDrag的使用问题 [ 70%]

...,影响惯性力度和时长。          */         public function startDrag(area:Rectangle = null, hasInertia:Boolean = false, elasticDistance:Number = 0, elasticBackTime:int = 300, data:* = null, disableMouseEvent:Boolean = false, ratio:Number = 0.92):void {          2018-05-0...

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

108. js报错Could not find object with given id [ 69%]

...stack runtime运行报错! 导微信小程序报错window.focus is not a function 问题状态 最新活动: 2017-04-06 10:50 浏览: 1060 关注: 1 人 tnac • 2017-04-06 14:43 好的 我刚新建了一个项目重写了一下又没问题了额 谢谢啦 以后要是碰到这种类似的再拿...

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

109. as编译js的一个问题 [ 69%]

...     public class LayaSample {                  public function LayaSample() {             //初始化引擎             Laya.init(1136, 640);                          /**测试 */             var o:Object = new Object()...

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

110. destroy 报错 [ 69%]

...开发者工具打开报错 导微信小程序报错window.focus is not a function 微信小游戏编译报错 Laya2.0 WebGl模式,使用 drawToCanvas 报错 ImageData is not defined? 3d项目-unity添加物理组件 layanative2 打包android平台 报错 btCollisionObject undefined 播放背景...

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