大约有 4,111 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0099 秒)
Laya_社区(3330) Laya2.0_文档(296) Laya_示例(141) Laya3.0_文档(118) Laya2.0_示例(117) Laya3.0_api(94) Laya2.0_api(9) laya_api(6)
...n // 这儿加一层限制,所有未知原因的关闭弹窗都不生效 this.closeType = type; Laya.Dialog.manager.close(this); } 2020-07-08 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 cuixueying 相关问题 求指点3d射线碰...
来源: Laya_社区 发布时间: 20170316
....TiledMap; constructor() { Laya.init(Laya.Browser.width, 224, Laya.WebGL); this.tMap = new Laya.TiledMap(); var viewRect: Laya.Rectangle = new Laya.Rectangle(); this.tMap.createMap("../bin/res/MarioMap1.json", viewRect, Laya.Handler.create(this,this.initMap)); } private initMap(): void { } } new Gam...
来源: Laya_社区 发布时间: 20190212
...: 4 人 jacc • 2020-04-08 10:23 就是简单的 camera.viewport.project(this._ownerView.transform.position, camera.projectionViewMatrix, this._outPos); let tx: number = this._outPos.x / Laya.stage.clientScaleX; let ty: number = this._outPos.y / Laya.stage.clientScaleY; 在相机视野外比较远...
来源: Laya_社区 发布时间: 20190809
...ed回调方法 Laya.loader.load("res/atlas/comp.atlas",Laya.Handler.create(this,onLoaded)); function onLoaded(){ //创建一个UI实例 this.comp = new ui.ComponentDemoUI(); //添加到舞台上显示 Laya.stage.addChild(this.comp); //点击Tab选择按钮的处理 this.comp.tab.selectHandler = new ...
来源: Laya2.0_文档 发布时间: 20210714
...n; constructor(){ super()} createChildren():void { super.createChildren(); this.loadScene("Attack"); } } } 扩展UI代码: import { ui } from "../ui/layaMaxUI"; export default class AttackView extends ui.AttackUI { constructor() { super(); this.btn_attack.on("click", this, this.onAttack); } pri...
来源: Laya_社区 发布时间: 20180926
...处理会更好 _processActive(active: boolean, fromSetter?: boolean) { (this._activeChangeScripts) || (this._activeChangeScripts = []); let arr = this._activeChangeScripts; if (active) this._activeHierarchy(arr, fromSetter); else this._inActiveHierarchy(arr, fromSetter); for (let i = 0, n = arr.len...
来源: Laya_社区 发布时间: 20231007
... var value:String = ""; var max:int = this._position_ + len; var c:int, c2:int; // gb2312-encode while (this._position_ < max) { c = _data_....
来源: Laya_社区 发布时间: 20160606
UI相关问题 loadui问题 this.loadUI("test/TestPage") 请问下是这样加载分离ui的吗?为什么我看 __proto.loadUI=function(path){ var uiView=View.uiMap[path]; uiView && this.createView(uiView); } 这里面uiMap都没有地方会注册. 还有我按F12后this直接被去掉了,...
来源: Laya_社区 发布时间: 20171030
...y = Laya.Node.prototype.destroy; Laya.Node.prototype.destroy = function(){ this.event('destroy'); oldDestroy.call(this); } } 2017-11-20 0 0 分享 微博 QZONE 微信 Monica - 知识达人 赞同来自: 你直接在销毁的时候派发一个自定义事件,然后把销毁页面之后的逻辑写...
来源: Laya_社区 发布时间: 20171120
...语句写错吗?怎么一直执行第一个条件 我的本意是判断this.boy.visible=true的话,鼠标可以点击然后到isShowBoy方法中,可是在这个时候我已经将this.boy.visible=false了,点击的时候为什么控制台还是会一直输出8,不是应该输出9嘛 附件 : ...
来源: Laya_社区 发布时间: 20170112