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

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

171. 2D图片在3D场景中定位问题 [ 58%]

...ew Laya.Image("res/layabox.png")); Laya.timer.frameLoop(1, this, functionname); function functionname() { camera.viewport.project(warehouse1.transform.position, camera.projectionViewMatrix, _outPos); 2dname.pos(_outPos.x / Laya.stage.clientScaleX, _outPos.y / Laya.stage.clientScaleY); } bi...

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

172. drawTexture时,Matrix对象,a=-1,无法实现水平翻转 [ 58%]

...来自: qihei Laya.loader.load("res/atlas/test0.png", Handler.create(this, function():void    {     var t:Texture = Laya.loader.getRes("res/atlas/test0.png");     ape = new Sprite();     var matrix:Matrix = new Matrix();     matrix.a = -1;     matrix.tx = 2*100+ t.width;   ...

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

173. 使用getChildByName()无法得到子节点对象 [ 57%]

... page2._list.renderHandler = new Handler(this, onRender);         function onRender(cell,index){             //如果索引不再可索引范围,则终止该函数             if(index > json.length)return;             //获取当前渲染条目的...

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

174. 请问如何给所有按钮点击事件增加一个音效 [ 57%]

...    * @param e Event 对象。          */         protected function onMouse(e:Event):void {             if (toggle === false && _selected) return;             if (e.type === Event.CLICK) {                 toggle && (selected = !_selected)...

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

175. AS代码如何new一个js库中的类并且使用这个类 [ 57%]

...oader.load(getModuleJSPath("abc.js"), Handler.create(this,loadedHandler)); function loadedHandler(data:*):void{       //加载完回调       __JS__('window.eval(data + "//# sourceURL=" + "abc.js")');     //new需要的类       var loginView:* = __JS__('new com.modules.login.view.LoginVi...

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

176. 播放动画(JavaScript-3D基础(JS)-LayaAir3D之Animator动画) [ 57%]

...ani.play("attack"); //等待动画播放完成 Laya.timer.frameLoop(1,this,function(){ //如果当前播放state已经播放完了一次 if(ani.getCurrentAnimatorPlayState().normalizedTime >= 1){ //回到站立状态 ani.play("stand"); } }); } ``` ![](img/6.gif)(图6)

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

177. 分享:关于自定义场景继承的实现 [ 57%]

...from "../script/base/BaseScene"; import BaseScene=base.BaseScene; var REG: Function = Laya.ClassUtils.regClass; export module ui { export class CustomSceneUI extends BaseScene { public txt_hello:Laya.Label; constructor(){ super()} createChildren():void { super.createChildren(); this.loadScene("Custo...

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

178. Cannot connect to runtime process, timeout after 10000 ms [ 57%]

...加参数吗 prefab添加runtime脚本 comp._addComponentInstance is not a function 2.0 Beta3版本中,runtime脚本的的问题 看腾讯课程碰到的runtime无效问题 IDE界面编辑中最顶层view设置runtime无效 Cannot connect to runtime process, timeout after 10000 ms 自动关闭 问...

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

179. 播放动画(TypeScript-3D基础(TS)-LayaAir3D之Animator动画) [ 57%]

...ani.play("attack"); //等待动画播放完成 Laya.timer.frameLoop(1,this,function(){ //如果当前播放state已经播放完了一次 if(ani.getCurrentAnimatorPlayState().normalizedTime >= 1){ //回到站立状态 ani.play("stand"); } }); } ``` ![](img/6.gif)(图6)

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

180. 请问在LayaAir中怎么样初始化加载jquery文件?? [ 57%]

...物模型动画播放的速度慢一些 qian • 2018-01-25 17:01 public function play(name:String = null, playbackRate:Number = 1.0):void playbackRate : Number播放速率 你去看看animator的api LM20081991 • 2018-01-25 17:07 @qian: 好的谢谢

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