大约有 4,102 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0087 秒)
Laya_社区(3323) Laya2.0_文档(296) Laya_示例(141) Laya2.0_示例(117) Laya3.0_文档(116) Laya3.0_api(94) Laya2.0_api(9) laya_api(6)
....load([{url:"minastc.config.json",type:Laya.Loader.JSON}],new Laya.Handler(this,function(){ this.astcconfig = Laya.loader.getRes("minastc.config.json"); for(var key in this.astcconfig){ var fileversion = Laya.ResourceVersion.manifest[key]||...
来源: Laya_社区 发布时间: 20221013
...颜色 Laya.stage.bgColor = "#232628"; //帧循环 Laya.timer.frameLoop(1,this,onFrame); } private function onFrame():void { //如果创建对象时间为100帧间隔后 if(createTime>=100) { //每200帧间隔创建30个雪花 for(var i:int=0;i640+20||img1.scaleX(图2-1) 在一些特殊情况我...
来源: Laya2.0_文档 发布时间: 20210715
... 匿名用户 赞同来自: /**获取动画 */ public getAni(): void { this.ani = this.owner.sprite3d.getComponent(Laya.Animator); let all = 486; let arr = ["3,21,run,true", "29,59,wolk,true", "70,120,cheer,true", "125,380,dance,true", "393,440,forerake,false", "443,485,backward,true"]; let state...
来源: Laya_社区 发布时间: 20190802
...为什么会出错 var Game=(function(_super){ function Game(){ Game.super(this); this.mole=new Mole() //这里会报错 } Laya.class(Game,"Game",_super); return Game; })(ui.GameUI) var GameUI=(function(_super){ function GameUI(){ this.btn_start=null; this.audio=null; GameUI.__super.call(this); } CL...
来源: Laya_社区 发布时间: 20180504
...,Animation设置pivot为非整数时,动画会明显变模糊,如: this.animation.pivot(this.animation.getBounds().width / 2,this.animation.getBounds().height / 2); 如果this.animation.getBounds().width / 2为非整数,动画就会变模糊,像下面带有小数点就会模糊 this.anim...
来源: Laya_社区 发布时间: 20170207
... 微博 QZONE 微信 qwer535305054 赞同来自: Laya.timer.loop(1000, this, this.setTime); private setTime(){ this.downTime--; Tween.to(img1, { x: randomx, y: randomy }, 250); Tween.to(img2, { x: randomx, y: randomy }, 250); ...
来源: Laya_社区 发布时间: 20171016
...enderNode.PAUSED 简单分析一下,_update 里调用了 stop(),将this._currentPlayTime = 0; 但是紧接着后面又将 this._currentPlayTime = state.getCurrentPlayTime(this.trackIndex); 此时 this._currentPlayTime 为非零,结果就是 if (this._currentPlayTime) return Spine2DRende...
来源: Laya_社区 发布时间: 20241202
... _roomId = 0; constructor(roomId?: number) { this._roomId = roomId; Laya.init(750, 1218, Laya.WebGL); Laya.Browser.document.title = 'GG游戏; if (Laya.Browser.onPC) { //设置舞台缩放模...
来源: Laya_社区 发布时间: 20181208
...的位置,可是圆移动过去不再继续向前飞,直接自由落体,if(this.ball.position.x<1) { this.ball.position={x:790,y:this.ball.position.y} } if(this.ball.position.x>799) { this.ball.position={x:10,y:this.ball.position.y} } 请问谁有什么刚好的办法实现我需要的这个...
来源: Laya_社区 发布时间: 20180620
...,动画无法正常播放,预览也没有,载入场景资源提示:this._cacheAnimationNode没有Transfrom 环境:Unity 5.6.7f1, Laya 2.1, 插件:最新, 所有项目和资源都在附件里:U3D项目和Laya项目 动画控制器没用OverrideAnimator Rig为:Generic Avatar:Create F...
来源: Laya_社区 发布时间: 20190809