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

大约有 1,232 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0046 秒)

871. 鼠标脚本(TypeScript-3D基础(TS)-LayaAir3D之鼠标交互) [ 54%]

...*: ```typescript export default class MouseScript extends Laya.Script3D{ private meshsp:Laya.MeshSprite3D; constructor(){super();} /** * 覆写3D对象组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 */ onAwake(){ this.meshsp = this.owner as Laya....

来源: Laya2.0_文档 发布时间: 20210715

872. 运动刚体(ActionScript-3D基础(AS3)-LayaAir3D之物理系统) [ 54%]

...体 rigidBody.isKinematic = true; ...... //在场景上添加的loop事件 private function onKeyDown():void { KeyBoardManager.hasKeyDown(87) && kinematicSphere.transform.translate(new Vector3(0, 0, -0.2));//W KeyBoardManager.hasKeyDown(83) && kinematicSphere.transform.translate(new Vector3(0, 0, 0....

来源: Laya2.0_文档 发布时间: 20210715

873. image组件加载完成调度事件没反应? [ 54%]

... dialog:Image = new Image(picAy[i]); dialog.on(Event.LOADED,this,onLoaded) private function onLoaded(e:*=null):void{ trace(2) } 这代码有什么问题?不调度onLoaded函数,图片显示正常 2016-10-27 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请:...

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

874. Dialog关闭时如何向open他的页面传值? [ 54%]

... myYes.on(Event.CLICK,this,onClicks); myNo.on(Event.CLICK,this,onClicks) } private function onClicks(e:Event):void { // TODO Auto Generated method stub if(e.target.name=="close") { open页面.event(CLOSE, [param1:*,parame2:*]); } if(e.target.name=="yes") { open页面.event(YES, [param1:*,parame2:*])...

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

875. 2D性能优化 · LayaAir3.3 · 引擎文档 · LAYABOX [ 54%]

...10000个文本(根据电脑性能而定,本例为10000): class Test { private text:Laya.Text; constructor() { Laya.init(550,400,Laya.WebGL); Laya.Stat.show(); var textBox=new Laya.Sprite(); for(var i=0;i<10000;i++) { this.text=new Laya.Text(); this.text.text=(Math.random()*100).toFixed(0); th...

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

876. 使用Handler 返回name 始终是 undefined [ 54%]

...; this.closeHandler = Handler.create(this ,this.onClose, ["123"],false); } private function onClose(name:String):void{ if(name == Dialog.SURE){ var di:NormalDlg = new NormalDlg(); di.popupContent("注册成功!"); } } 跟录像学习的时候,输入上面的方法 , onClose里返回的name总是...

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

877. [BUG]刚体约束问题,移动后约束混乱! [ 54%]

...  */ export default class GameUI extends ui.test.TestSceneUI {   private newScene:Laya.Scene3D;   private boxA: Laya.MeshSprite3D;   constructor() {     super();     Laya3D.init(0, 0);     Laya.stage.scaleMode = Laya.Stage.SCALE_FULL;     Laya.stage.screenMode =...

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

878. 关于list里注册事件和移除事件 [ 54%]

...时,怎么清除Button的点击事件?还是不用清除点击事件?private updateItem(cell: Laya.Box, index: number): void { let btn: Laya.Button = cell.getChildByName("btn") as Laya.Button; btn.on(Laya.Event.CLICK, this, this.on_test); } 附件 : --> list.png 2018-08-10 添加评论 免费...

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

879. 预设对象池回收后再创建报错 [ 54%]

...loader.create("prefab/预设名字.json",Handler.create(this,onComplete));}private function onComplete(obj:Object):Void{一个预设变量.json = ojb一个sprite = Pool.getItemByCreateFun("自己起一个名字", this.一个预设变量.create, this.一个预设变量);} 2020-01-04 0 1 分享 微博...

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

880. 关于.sk文件加载问题 [ 54%]

...哪个对象,我需要所有的都加载完成,谢谢 我的代码是 private  loadSk{ this.sk_51.loadAni("bis_51.sk");         this.sk_71.loadAni("bis_71.sk");         this.sk_81.loadAni("bis_81.sk");         this.sk_82.loadAni("bis_82.sk");         this.sk_83.loadAni("bis_83.s...

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