大约有 854 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0062 秒)
Laya_社区(263) Laya3.0_api(263) Laya2.0_api(142) laya_api(119) Laya3.0_文档(34) Laya2.0_文档(28) Laya_示例(3) Laya2.0_示例(2)
....create时候提示onTxtLoad is undfine.请教应该怎么定义? export default class LocalTxt{ constructor() { LocalTxt.Instance = this; } onTxtLoad(aText){ console.info("dfasd"); } initTxt(){ Laya.loader.load("res/localtxt.txt",Laya.Handler.create(this, onTxtLoad),null,Loader.TEXT); } } 2019-01...
来源: Laya_社区 发布时间: 20190130
...名的无头像者 • 2018-10-25 14:56 写一个ts文件,写上 export default class Move extends Laya.Script{ /** @prop {name:target,tips:"目标容器",type:Prefab}*/ targetPrefab:Laya.Prefab; } 将文件在编辑模式下赋给点添加组件=》code=》move 然后创建一个box拖...
来源: Laya_社区 发布时间: 20181025
...试代码如下: /** @prop {name:rewardType, tips:"111", type:Reward, default:Reward.Gr}*/ public rewardType: Reward = Reward.Gr; 自定义的枚举不可选,布尔类型变量则有true和false可以选择: 附件 : --> 2019-05-20 添加评论 免费帖 --> 分享 微博 QZONE 微信 ...
来源: Laya_社区 发布时间: 20190520
... src/gameconfig.ts(6,8): Error TS1192: Module '"src/page/loadpage"' has no default export. 还有就是,图1,获取不到wx.loadSubpackage 附件 : --> 2019-04-01 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复...
来源: Laya_社区 发布时间: 20190401
...且给4个猴都添加了脚本。 > **脚本类**: ```typescript export default class MouseScript extends Laya.Script3D{ private meshsp:Laya.MeshSprite3D; constructor(){super();} /** * 覆写3D对象组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一...
来源: Laya2.0_文档 发布时间: 20210715
...h:Mesh — 网格。 heightMap:HeightMap — 高度图。 name:String (default = null) — 名字。 Method DetailcreateFromMesh()method public static function createFromMesh(mesh:Mesh, heightMapWidth:Number, heightMapHeight:Number, name:String = null):MeshTerrainSprite3D 从网格创建一个Te...
来源: laya_api 发布时间: 20170929
... 除非采用 , 如下: /** * 登录加载界面 * @author Husz */ export default class LoadingView extends Laya.View implements small_lib.ILoadingView module的方案很更好好啊 , 如何实现module的方案 ???? 2018-10-24 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到...
来源: Laya_社区 发布时间: 20181024
...浏览: 1815 关注: 2 人 IXgSoul • 2020-04-07 12:00 嗯导出了export default class ResponerManager kylin • 2020-04-07 18:15 @IXgSoul:辛苦传一个可复现的简单demo吧,仅从目前的信息我们无法继续调查。 IXgSoul • 2020-04-09 11:18 @kylin:查到了,是循环引用导...
来源: Laya_社区 发布时间: 20200407
...iguanqing * @ email:0110110110@qq.com * @ data: 2022-04-09 15:53 */ export default class fruit extends Laya.Script { static Fru:fruit; public rope:Laya.RopeJoint constructor() { super(); fruit.Fru=this; } onAwake() { let ...
来源: Laya_社区 发布时间: 20220413
...ceneUI} from '../ui/layaMaxUI' import GameScene from './GameScene'; export default class VictoryScene extends VictorySceneUI { constructor() { super(); } onAwake(){ let btnOnce=this.getChildByName("btnOnce"); btnOnce.on(Laya.Event.CLICK,this,this.onClick); } onClick(e){ this.removeSelf(); let g...
来源: Laya_社区 发布时间: 20190903