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

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

991. 场景管理 · LayaAir3.3 · 引擎文档 · LAYABOX [ 48%]

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

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

992. 为什么创建的脚本 变量在编辑模式赋值后 运行时为undfined [ 48%]

...24 18:14 写一个ts文件,写上 export default class Move extends Laya.Script{ /** @prop {name:target,tips:"目标容器",type:Prefab}*/ targetPrefab:Laya.Prefab; } 将文件在编辑模式下赋给点添加组件=》code=》move 然后创建一个box拖为预制体 放在工程 Scenes...

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

993. 打包成APK运行一半崩溃 [ 48%]

...属性个数=16 04-11 11:17:09.578    8591-8609/? I/LayaBox﹕ Start js scripts/apploader.js 04-11 11:17:09.793    8591-8658/? I/LayaBox﹕ js thread started. 04-11 11:17:09.797    8591-8658/? I/LayaBox﹕ found the file in the package:scripts/runtimeInit.js 04-11 11:17:09.802    8591-8658/c...

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

994. Uncaught Can not find class EffectAnimation undefined [ 48%]

...需要腳本來做任何事情都要在 EffectAnimation的runtime中放入Script?   補充一下,Layabox1版本可以使用EffectAnimation,到了Layabox2版本EffectAnimation就無法使用了。 2018-11-26 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀...

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

995. 屏幕配適正確方式為何? 官方的範例貼回到自己的代碼裡呈現的不同? [ 48%]

...ebgl,ui   想請問代碼應該要寫在哪邊?   測試不管貼在laya.script 裡面或外面都會在翻轉後跑版    ...測試過後發現是Laya.stage.screenMode 會造成跑版的情況 為何範例不會?      附件 : --> 2019-09-09 添加评论 免费帖 --> 分享 微博 QZONE 微...

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

996. h5项目打包成单机版本的apk 出现卡死 [ 48%]

...1.0这种目录下有一堆文件,然后你检查index.xml里的引用的script路径对不对,不对的改掉,然后打包app,这时候资源路径选择那个index.xml的路径,也就是release/ayaweb/v1.0.0那种路径,然后在打包 4.现在不支持3D项目的打包   试试看吧...

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

997. 升级到3.0-beta6无法选择资源了 [ 48%]

...显示None,也无法拖放! 代码如下: @regClass() export class NewScript extends Laya.Script {     //declare owner : Laya.Sprite3D;      @property(String)     public text: string = "";      @property(Laya.Image)     public image: Laya.Image = null;      constructor() {     ...

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

998. 如何用 FlashBuilder 或 LayaIDE 进行单步调试? [ 48%]

...8753667 赞同来自: cuixueying 借助Visual Studio Code提高基于ActionScript的LayaAir HTML5游戏的调试效率 借助VS Code我们可以极大地提高基于ActionScript的LayaAir Html5游戏项目的调试效率,VS Code的优势有以下几点: - 在发生JavaScript运行时错误时,VS...

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

999. 构建报错,TypeScript error: node_modules/@types/node/base.d.ts' not found. [ 48%]

LayaAir引擎 LayaAir IDE 构建报错,TypeScript error: node_modules/@types/node/base.d.ts' not found. 有人遇到这个问题么?构建直接报错,无法打包!  开始编译: Tue Jan 07 2020 15:34:09 GMT+0800 (CST) -------------------------------------- [15:34:09] Working directory ch...

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

1000. 内置骨骼动画 · LayaAir3.3 · 引擎文档 · LAYABOX [ 48%]

... { regClass, property } = Laya; @regClass() export class Main extends Laya.Script { private mCurrIndex: number = 0; private mArmature: Laya.Skeleton; onStart() { console.log("Game start"); //加载内置骨骼动画资源 Laya.loader.load("skeleton/Dragon/Dragon.sk").then((templet: Laya.Templet) =&g...

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