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

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

251. 要做一个方形倒计时,请问该怎么实现,不知道该怎么做 [ 62%]

... cdTime:int; public var isCd:Boolean = false; public function CdSprite() { super(); this.scrollRect = rect; this.alpha = 0.85; } public function setSize(bian:int):void{ r = bian / Math.SQRT2; rect = new Rectangle(0,0,bian,bian); this.scrollRect = rect; pos = bian * 0.5; } public function set360(valu...

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

252. 预设/场景的导出(TypeScript-3D基础(TS)-LayaAir3D之3D场景可视化编辑) [ 62%]

.../ export default class GameUI extends ui.test.TestSceneUI { constructor(){ super(); //加载场景 Laya.Scene3D.load('LayaScene_test/Conventional/test.ls',Laya.Handler.create(this,this.onComplete)); } /** * 加载完成 */ private onComplete(scene:Laya.Scene3D):void{ // 将场景加到舞台上 Laya...

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

253. 性能测试-卡通人物2 [ 62%]

...tring(); } } } class Character extends Laya.Sprite { constructor(images) { super(); this.speed = 5; this.bloodBar; this.animation; this.nameLabel; this.createAnimation(images); this.createBloodBar(); this.createNameLabel(); } createAnimation(images) { const Animation = Laya.Animation; this.animation...

来源: Laya2.0_示例 发布时间: 20260930

254. list 加载动画为什么实现的效果会错乱掉? [ 62%]

...效果会错乱掉? var WID = 80, HEI = 400; function Item1() { Item1.__super.call(this); this.size(WID, HEI); this.setImg = function(src) { var ani = new Animation(); ani.loadAtlas(src); // 加载图集动画 ani.interval = 100; // 设置播放间隔(单位:毫秒) ani.index = 1; // 当前...

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

255. 性能测试-卡通人物2 [ 62%]

... Laya.Animation; // Class Character function Character(images) { Character.super(this); Character.WIDTH = 110; Character.HEIGHT = 110; var bloodBar; var animation; var nameLabel; Character.prototype.createAnimation = function(images) { animation = new Animation(); animation.loadImages(images); anima...

来源: Laya_示例 发布时间: 20260930

256. 我在dialog a上继续弹出dialog b 。需要关闭b的时候,a依然存在。怎么做? [ 62%]

...个list item啊。 打开 dialog b 。b的构造方法: constructor() { super(); console.log(" Here is DlgNote2"); this.closeEffect = null; this.closeBtn.on(Laya.Event.CLICK, this, this.toClose); //this.show(); } b的关闭方法: toClose():void{ //Laya.Scene.open("datiPage.scene&...

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

257. 动画实例在调用含有名字参数的时候获取不到边界 [ 62%]

...rUnit:Laya.Animation[]; private enemyUnit:Laya.Animation[]; constructor(){ super(); Laya.stage.alignH= Laya.Stage.ALIGN_CENTER; Laya.stage.alignV = Laya.Stage.ALIGN_MIDDLE; } onEnable(){ this.playerUnit = []; this.enemyUnit = []; this.playerUnit.push(new Laya.Animation()); this.enemyUnit.push(new La...

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

258. 可以帮我测试一下吗? 使用mask的场景,放着就会出现记忆体用完的讯息? [ 62%]

...s GameLayer extends ui.GameLayerUI { private infos : any; constructor () { super (); this.infos = { rotation : 0 }; Laya.timer.frameLoop(1,this,()=> { this.infos.rotation += 1; if (this.infos.rotation >= 360) this.infos.rotation -= 360; this.IM_TURNTABLE.rotation = this.infos.rotation; this.VI...

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

259. 场景管理 · LayaAir3.4 · 引擎文档 · LAYABOX [ 62%]

...property({ type: Laya.Button }) public uiBtn: Laya.Button; constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 */ onAwake(): void { this.uiBtn.on(Laya.Event.CLICK, this, () => { //点击后,打开Msg场景 Laya.Sce...

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

260. 2.3.0beta 各种bug [ 62%]

...canCollideWith = Physics3DUtils.COLLISIONFILTERGROUP_ALLFILTER) {      super(collisionGroup, canCollideWith);        // this._enableProcessCollisions = false;      }   拖尾重置   拖尾提供重置方法       TrailFilter       resetGeometry(){ var render = this._owner._rend...

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