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

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

281. 图像组件 · LayaAir3.0文档 · LAYABOX [ 65%]

...Image: const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { @property({ type: Laya.Image }) public img: Laya.Image; constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 */ onAwa...

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

282. Laya转小游戏导入的JS文件怎么访问 [ 64%]

...导入的JS文件怎么访问 laya这边在html标签里面导入了 <script src='matter.js' loader='laya'></script> laya代码里可以通过Browser.window.Matter来获取这个对象是有 值的 但转微信小游戏后Browser.window.Matter就为undefined了 2018-04-28 添加评论 ...

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

283. 按时间清理Laya.pool中缓存对象, 游戏大厅缓存问题 [ 64%]

...vate loadJs(jsPAth, fun) { var new_element1 = document.createElement("script");//创建新的script节点 new_element1.setAttribute("type", "text/javascript"); // new_element1.setAttribute("src", jsPAth); //LayaNative不支持 new_element1.src = jsPAth documen...

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

284. as3中,调用原生js的的时候,如何传递原生JS要用到的document.getElementById的ID过去? [ 64%]

...e" style="width:100px; height:100px; margin-top:15px;"></div> <script type="text/javascript"> var qrcode = new QRCode(document.getElementById("qrcode"), { width : 100, height : 100 }); function makeCode (_qrchr) { qrcode.makeCode(_qrchr); } makeCode("asfasdfas5151a31fsefasefsafe"); &l...

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

285. 最新版LayaAir IDE 2.2.0beta4的几个问题 [ 64%]

...TypeError: Cannot read property 'enable' of undefined preload.js:55 at HTMLScriptElement.script.onload (file:///E:/Laya/QPlane2/bin/libs/laya.core.js:22147:39) TypeError: Cannot read property 'enable' of undefined laya.core.js:22147 at HTMLScriptElement.script.onload (file:///E:/Laya/QPlane2/bin/lib...

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

286. 新手入坑请教下各位大神关于LayaMaxUI问题 [ 64%]

...en(); this.loadScene('LoginScene'); }   }     import LoginScene from "./script/LoginScene" /* * 游戏初始化配置; */ export default class GameConfig{ static width:number=640; static height:number=1136; static scaleMode:string="fixedwidth"; static screenMode:string="none"; static alignV:strin...

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

287. 关于.ui文件生成的ts类如何正确使用这个.ui皮肤,自动生成的代码有误 [ 64%]

...I页面吧?刚打开你的项目并没有在index.html文件中看到<script src="js/ui/layaUI.max.all.js"></script>这一行代码(UI的js引用) 你回到UI编辑模式下导出下UI,然后重新运行项目就好了 新建的UI示例项目是有ui引用的例子,...

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

288. runTime使用(ActionScript-IDE篇(AS3)-组件化开发相关) [ 64%]

...没有该组件的属性时,这个属性则会失效** **runTime脚本与script脚本类似,不同的是runtime脚本的方式实现,继承页面,场景或组件类,实现逻辑。在IDE里面设置场景的Runtime属性即可和场景或对象进行关联** * **相比script脚本方式,...

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

289. 进度条组件 · LayaAir3.0文档 · LAYABOX [ 64%]

...代码: const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { @property({ type: Laya.ProgressBar }) public progressBar: Laya.ProgressBar; @property({ type: Laya.Text }) public loadText: Laya.Text; //组件被激活后执行,此时所有节点和组件均...

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

290. 打开新窗口被拦截,同样的方法用egret和其他h5工程都没有问题 [ 63%]

...www.baidu.com"; goToNewWindow(url); } 这是index.html的js方法 <script> function goToNewWindow(payurl) { var a = $("<a href='"+payurl+"' target='_blank'>click</a>").get(0); console.log("aaa",a); var e = document.createEvent('MouseEvents'); e.in...

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