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

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

2161. laya.d3.core.material.WaterPrimaryMaterial_API3.0 [ 65%]

...建 Parameters url: string Returns boolean off off(type: string, listener: Function): EventDispatcher off(type: string, caller: any, listener?: Function, args?: any[]): EventDispatcher Inherited from EventDispatcher.off Defined in laya/events/EventDispatcher.ts:112 从 EventDispatcher 对象中删...

来源: Laya3.0_api 发布时间: 20231115

2162. 加载-加载序列 [ 65%]

...nce { private var numLoaded:int = 0; private var resAmount:int = 3; public function Loader_Sequence() { Laya.init(500, 400); // 按序列加载 monkey2.png - monkey1.png - monkey0.png // 不开启缓存 // 关闭并发加载 Laya.loader.maxLoader = 1; Laya.loader.load("../../res/apes/monkey2.png", H...

来源: Laya2.0_示例 发布时间: 20260303

2163. 文本-自动换行 [ 65%]

...tils.Browser; import laya.webgl.WebGL; public class Text_WordWrap { public function Text_WordWrap() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scal...

来源: Laya2.0_示例 发布时间: 20260303

2164. 1.0 骨骼drawcall优化猥琐方法 [ 65%]

...这样的,先贴一下SkinMesh里相关方法:         public function render(context:*, x:Number, y:Number):void {             if (Render.isWebGL && mTexture) {                 context._renderKey = 0;                 context._shader2D....

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

2165. 微信小游戏打包后SFS2X.d.ts没有打包成js文件 导致运行报错未找到 [ 65%]

...行报错未找到 SFS2X is not defined;at api readFile success callback function ReferenceError: SFS2X is not defined     at Server.initSFS (http://127.0.0.1:17168/game/code.js:130617:26)     at GameMain.initGame (http://127.0.0.1:17168/game/code.js:176074:20)     at EventHandler.__proto.runW...

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

2166. 打包后启动游戏后报错 [ 65%]

...在浏览器里都可以正常运行,打包后才会出现问题 public function send(type:String,url:String,callbackName:String):void { this.type = type; //发送请求 var script:* = Browser.createElement("script"); script.id = "serverlist"; Browser.document.head.appendChild(script); script.src ...

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

2167. Android替换游戏启动logo看不到设置的图片 [ 65%]

...import view.TestView; public class LayaUISample { private var dd:*; public function LayaUISample() { //初始化引擎 Laya.init(600, 400); //判断是否在加速器端 __JS__("if(window.conch)") { //获取loadingview的实例 dd=__JS__("window.loadingView"); 通过loading方法进行进度值传...

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

2168. sprite.drawToCanvas绘制纹理无法释放内存资源 [ 65%]

...LCanvas.as @@ -70,6 +70,7 @@ package laya.webgl.resource { override public function destroy():void { _ctx && _ctx.destroy(); _ctx = null; + super.destroy(); } public function get context():Context {即  WebGL.as 注释掉265,266 WebGLCanvas.as 在 destroy()函数的最后加 super.destroy()...

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

2169. laya.d3.core.material.SkyProceduralMaterial_API3.0 [ 65%]

...建 Parameters url: string Returns boolean off off(type: string, listener: Function): EventDispatcher off(type: string, caller: any, listener?: Function, args?: any[]): EventDispatcher Inherited from EventDispatcher.off Defined in laya/events/EventDispatcher.ts:112 从 EventDispatcher 对象中删...

来源: Laya3.0_api 发布时间: 20231115

2170. l微信开放域无法显示,但是可以正常传数据 [ 65%]

...图集 Laya.loader.load(["res/atlas/test.atlas"],Laya.Handler.create(null,function(){ //加载完成 //使用接口将图集透传到子域 Laya.MiniAdpter.sendAtlasToOpenDataContext("res/atlas/test.atlas"); }));子域main.ts: import GameConfig from "./GameConfig"; import BigRank from "./view/BigRan...

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