大约有 503 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0045 秒)
...idth=800,height=600,backgroundColor="0xffffff",frameRate=60)] public class Main extends Sprite { public function Main():void { IFlash.setSize(800, 600);//2D项目中设置场景尺寸 IFlash.setOrientationEx(1); //是否为横屏模式 IFlash.setBgcolor("#FFFFFF"); //背景色 IFlash.showInfo(false)...
来源: Laya_社区 发布时间: 20151225
...ce丶 赞同来自: laya中也需要将类暴露出来,例如:在你的Main.ts中加入这么一句代码window["PlatformSDK"]= PlatformSDK; 且PlatformSDK须为静态类,java调用JavaScript函数,也需要写成 public static javaCallJavaScript() 2020-01-15 0 2 分享 微博 QZONE 微信 ...
来源: Laya_社区 发布时间: 20200113
...吗 热更会自动删除更新旧的资源吗? as3 2.02版本只要在main.as里import miniadapter然后加载远程资源 就会无限加载 项目资源的问题 问题状态 最新活动: 2017-11-16 11:12 浏览: 559 关注: 2 人 cwugs • 2017-11-16 11:15 没打包成图集的资源是不是...
来源: Laya_社区 发布时间: 20171116
...动chrome出现错误: Error processing launch: Error Could not attach to main target 如何实现微信登录? laya2的Scene默认是文件模式,不会生成场景类了,此时该如何获得场景内的元素 版本不匹配! 全局 tsc (2.2.2) != VS Code 的语言服务(2.1.5)。可能出...
来源: Laya_社区 发布时间: 20170106
...erVS #define SHADER_NAME baseRender2D #include "Sprite2DVertex.glsl"; void main() { vec4 pos; //先计算位置,再做裁剪 getPosition(pos); vertexInfo info; getVertexInfo(info); v_texcoord = info.uv; v_color = info.color; #ifdef LIGHT_AND_SHADOW lightAndShadow(info); #endif gl_Position = pos; }...
来源: Laya3.0_文档 发布时间: 20251120
...改src/LayaSample.ts import WebGL = Laya.WebGL; // 程序入口 class GameMain{ constructor() { Laya.init(600,400, WebGL); } static wallet:com.battlecry.idle_m.data_proto.WalletModel; } new GameMain(); 然后编译就卡死 Bug调试: 经过node inspect 发现是layaair-cmd ...
来源: Laya_社区 发布时间: 20181115
...动chrome出现错误: Error processing launch: Error Could not attach to main target 版本不匹配! 全局 tsc (2.2.2) != VS Code 的语言服务(2.1.5)。可能出现不一致的编译错误 new Laya.Sprite();绘制图形以后,怎么删除释放资源? 分享:LayaAir下如何获取图集...
来源: Laya_社区 发布时间: 20170703
...age.loadImage("http://192.168.1.239:8003/aa.jpg") image.width=100 main.addChild(image) width、height不能生效 只能在加载时传入参数控制宽高,加载后要怎么控制? 2017-11-01 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与...
来源: Laya_社区 发布时间: 20171101
...动chrome出现错误: Error processing launch: Error Could not attach to main target 版本不匹配! 全局 tsc (2.2.2) != VS Code 的语言服务(2.1.5)。可能出现不一致的编译错误 laya2.0加载3d场景报错Uncaught TypeError: Cannot read property 'btCollisionObject' of undefined 3d...
来源: Laya_社区 发布时间: 20180726
...动chrome出现错误: Error processing launch: Error Could not attach to main target iphone自带浏览器页面怎么锁定 谷歌浏览器播放mp3出现The AudioContext was not allowed to start. 版本不匹配! 全局 tsc (2.2.2) != VS Code 的语言服务(2.1.5)。可能出现不一致的编...
来源: Laya_社区 发布时间: 20180410