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

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

311. 分享:Sprite 转换成3D贴图(Texture2D)的方法,如果有更好的方法,请告诉我。 [ 62%]

...谢谢了。   1.首先在 index.html 文件中放置如下代码: <script type="text/javascript"> function convertCanvasToImage(canvas,callback,thisObj) { var image = new Image(); image.onload = function() { console.log("图片已经加载"); callback(image,thisObj) }; console.log("图片...

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

312. 关于LAYADCC关于热更新问题。真心希望解决!! [ 61%]

...档,要不然我游戏越来越多,单一html文档上已经几百个script标签了。canvas又不支持跨域加载资源,再cdn也搁不住这个资源加载速度啊 2018-07-03 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 bey...

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

313. 多行输入文本组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 61%]

..., property } = Laya; @regClass() export class TextAreaControl extends Laya.Script { //declare owner : Laya.Sprite3D; @property( { type : Laya.TextArea } ) public txtarea: Laya.TextArea; constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件均已创建完毕,此方...

来源: Laya3.0_文档 发布时间: 20251010

314. 角色控制器 · LayaAir3.3 · 引擎文档 · LAYABOX [ 61%]

...roperty } = Laya; @regClass() export default class DirectMove extends Laya.Script { declare owner: Laya.Sprite3D; private characterController: Laya.CharacterController; onAwake(): void { // 获取 角色控制器 组件并赋值给 characterController this.characterController = this.owner.getCompone...

来源: Laya3.0_文档 发布时间: 20251010

315. native 1.0.2 连不上wss [ 61%]

....0.2 连不上wss <html> <head> </head> <body> <script> var ws = new WebSocket("wss://login.huanxi.twbuyu.com:27777"); ws.onopen = function() { alert("connect success~"); ws.send('tom'); alert("send to server msg: tom"); }; ws.onmessage = function(e) { alert("accpet msg...

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

316. 无法触发浏览器文件上传框 [ 61%]

...t;input type="file" id="file" style="display: none;"></input> <script type="text/javascript"> var btn = document.getElementById('btn'); btn.addEventListener('click', function(){ document.getElementById("file").click(); }); </script> </body> </html>我想你理解错...

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

317. 苹果上架有问题啊 , !!!!!! [ 61%]

...r:, performSelector:, method_exchangeImplementations(), and running remote scripts in order to change app behavior and/or call SPI, based on the contents of the downloaded script. Even if the remote resource is not intentionally malicious, it could easily be hijacked via a Man In The Middle (MiTM) a...

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

318. Maximum call stack size exceeded [ 61%]

... class GameConfig {         static init() {             //注册Script或者Runtime引用             let reg = Laya.ClassUtils.regClass;     reg("script/GameMain.js",GameMain);         }     }     GameConfig.width = 640;     GameConfig.height = 1136;     GameConfig.sca...

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

319. layaAir TS项目如何引用protoBuf库? [ 61%]

...件添加到这里-->     <!--jsfile--Custom-->     <script type="text/javascript" src="libs/protobuf.js"></script>     <!--jsfile--Custom--> 3、测试代码参考了上面那个连接,但稍微做了修改: // 程序入口 class GameMain{     constructo...

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

320. LayaFlash项目如何进行LayaPlayer版本测试? [ 61%]

...和下载)  使用方式: a、打开Redist文件夹,找到内部的script文件夹           b、打开script文件夹找到index.js文件           c、打开index.js文件,拖动滚动条至末尾           d、将//单行注释去掉解开其中一个loadUrl()方法,将h...

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