大约有 1,134 项符合查询结果, 库内数据总量为 30,936 项。 (搜索耗时: 0.0097 秒)
...如下: const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { @property({ type: Laya.HBox }) public hbox: Laya.HBox; //组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { this.hbox.pos(100, 10...
来源: Laya3.0_文档 发布时间: 20240910
...、Tips等。 config.js的位置: ``` Android: 工程目录下的assets/scripts/config.js IOS:工程目录下的resources/scripts/config.js ``` config.js中的内容如下所示,开发者可以根据自己的需求进行修改: ```javascript window.loadingView = new loadingView(); if(window.l...
来源: Laya2.0_文档 发布时间: 20210715
...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_社区 发布时间: 20191104
...目中直接搜索config.js文件): Android: 工程目录下的assets/scripts/config.js IOS:工程目录下的resources/scripts/config.js config.js中的内容如下所示,开发者可以根据自己的需求进行修改: window.loadingView = new loadingView(); if(window.loadingView) { windo...
来源: Laya3.0_文档 发布时间: 20250310
...所示: const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { @property({ type : Laya.Sprite}) public spr: Laya.Sprite; onAwake(): void { this.spr.size(512, 313); //设置Sprite大小 this.spr.loadImage("atlas/comp/image.png"); //添加纹理 } } 效果如...
来源: Laya3.0_文档 发布时间: 20250103
...谢谢了。 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
..., 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_文档 发布时间: 20240910
...档,要不然我游戏越来越多,单一html文档上已经几百个script标签了。canvas又不支持跨域加载资源,再cdn也搁不住这个资源加载速度啊 2018-07-03 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 bey...
来源: Laya_社区 发布时间: 20170607
...Panel: const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { @property({ type: Laya.Panel }) public panel: Laya.Panel; //组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { this.panel.pos(100,...
来源: Laya3.0_文档 发布时间: 20240910
...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_文档 发布时间: 20250310