大约有 149 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0069 秒)
... 第三方的js库如何引用?我试着在index.html里面增加了<script src='libs/jsencrypt.js' loader='laya'></script>,并在相应位置放置js文件,调试的时候没问题,但是发布的时候那个js文件貌似没有一并发布出去。 此外,看发布后的index...
来源: Laya_社区 发布时间: 20170115
请问 layaair2.0的js有没有api可以查询 例如Laya.Script 参考网址:https://ldc2.layabox.com/doc/?nav=zh-js-2-2-5 我在一个Scene里面拖入了4个button,分别name为btn1....btn4,都绑定了同一个btn1.js 当点击它们无法获知,我点的是哪个,代码 如下 export...
来源: Laya_社区 发布时间: 20181029
...an: 3.616943359375 ms add main_scene.ls add ui/ui.atlascfg add ../src/BuildScript.ts add ../src/Main.ts add ../src/storage/StorageProxy.ts add ~/internal/blueprint.bin add ~/internal/Box.lm add ~/internal/Capsule.lm add ~/internal/Cone.lm add ~/internal/Cylinder.lm add ~/internal/DefaultMaterial.lma...
来源: Laya_社区 发布时间: 20250102
...s, property } = Laya; /** * 使用视频纹理 */ @regClass() export class Script extends Laya.Script { declare owner: Laya.Sprite3D; @property(Laya.Scene3D) private scene: Laya.Scene3D; private videoPlane: Laya.Sprite3D; private videoTexture = new Laya.VideoTexture(); onAwake(): void { //获取场...
来源: Laya3.0_文档 发布时间: 20251010
...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
...调试会在index.xml自动生成两个 <!--jsfile--startTag--> <script src="js/a.js"></script> <script src="js/b.js"></script> <!--jsfile--endTag--> 怎么才能在调试窗口看到b页面。每次调试都是a。 2019-01-10 添加评论 免费帖 --> 分享 微...
来源: Laya_社区 发布时间: 20190110
...的json文件 报错 真机调试报错:LayaPlayer不支持的标签</SCRIPT> 3d项目-unity添加物理组件 layanative2 打包android平台 报错 btCollisionObject undefined laya2 发布微信开放域工程,用微信开发者工具打开报错 微信小游戏编译报错 自定义场...
来源: Laya_社区 发布时间: 20190325
...& (Laya.Stat.loopCount > mouseTouch._pressedLoopCount)){ var pressedScripts=pressedSprite._scripts; if (pressedScripts){ for (j=0,m=pressedScripts.length;j < m;j++) pressedScripts[j].onMouseDrag(); } }; var touchSprite=mouseTouch.sprite; if (touchSprite){ var scripts=touchSprite._scripts; ...
来源: Laya_社区 发布时间: 20200119
...IDE插件开发说明一、插件能力二、插件运行环境2.1 在Laya.Script中使用本地能力2.2 UI进程脚本和Scene进程脚本通讯的方式2.3 预览运行进程和UI进程的通讯方式三、制作编辑器UI四、程序化生成界面4.1 常用方法4.2 示例五、自定义Inspec...
来源: Laya3.0_文档 发布时间: 20251010
...有: 3.1 2D和3D统一接口, 都可以通过事件监听方式和Laya.Script命名函数方式处理输入。例如: this.aNode.on(Laya.Event.CLICK, ()=> { console.log("clicked"); }); class MyScript extends Laya.Script { //脚本事件 onMouseClick(e:Event) { console.log("clicked"); } } aN...
来源: Laya3.0_文档 发布时间: 20251010