大约有 4,373 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0169 秒)
Laya_社区(2475) Laya3.0_api(673) Laya2.0_api(357) laya_api(289) Laya2.0_文档(271) Laya_示例(157) Laya2.0_示例(116) Laya3.0_文档(35)
...建 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
...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
...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
...这样的,先贴一下SkinMesh里相关方法: public function render(context:*, x:Number, y:Number):void { if (Render.isWebGL && mTexture) { context._renderKey = 0; context._shader2D....
来源: Laya_社区 发布时间: 20190628
...行报错未找到 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
...在浏览器里都可以正常运行,打包后才会出现问题 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
...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
...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
...建 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
...图集 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