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

大约有 120 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0044 秒)

51. 分享个资源加载的方法,类似白鹭的加载方式 [ 70%]

...似白鹭的加载方式 第一次发,不足之处还请见谅 class RES extends Laya.EventDispatcher{ // 资源组 public static groups: any; // 资源 public static resources: any; // 完成加载资源配置文件 public static ONLOADEDRESJSON: string = "onLoadedResJson"; // 资源配置文件...

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

52. List组件拖动浏览时item会出现重叠的现象 [ 70%]

... laya.ui.Image; import Label = Laya.Label; export class ListDataSourceItem extends Box { public static WID: number = 200; public static HEI: number = 20; // private _img: Image = null; private _lb:Label = null; constructor() { super(); this._lb = new Label(); this._lb.size(ListDataSourceItem.WID, Li...

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

53. ts项目 模块问题 [ 70%]

...未定义,require也用不了   //b文件 export default class player extends Laya.Sprite { constructor() { super(); this.pivot(this.width / 2, this.height / 2); this.graphics.drawRect(0, 0, this._size, this._size, this._color); } }   //a文件 import player from './player'; // 程序入口 clas...

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

54. 求HTTP相关的文档或者例子谢谢了 [ 70%]

...RequestMethod; import flash.net.URLVariables; public class HTTP_URLRequest extends Sprite { public function HTTP_URLRequest() { if(stage) { init(); } else { this.addEventListener(Event.ADDED_TO_STAGE,init); } } private function init(e:Event=null):void { //第一步:加载数据:创建URLLoader...

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

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

...rt laya.display.Sprite; import laya.maths.Rectangle; public class CdSprite extends Sprite { public static const START:int = -90; public static const COLOR:String = "#000000"; private var r:Number = BarCell.WID / Math.SQRT2; private var rect:Rectangle = new Rectangle(0,0,BarCell.WID,BarCell.WID); pri...

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

56. 微信小游戏加载资源问题 [ 70%]

...niFileMgr.DESCENDING = 2; MiniFileMgr.NUMERIC = 16; class MiniSoundChannel extends Laya.SoundChannel { constructor(audio, miniSound) { super(); this._audio = audio; this._miniSound = miniSound; this._onEnd = MiniSoundChannel.bindToThis(this.__onEnd, this); audio.onEnded(this._onEnd); } static bindTo...

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

57. 引擎 TiledMap 居然不支持图块翻转 [ 70%]

...onst TiledMapFlipConstHalf = TiledMapFlipConst / 2;     class GridSprite extends Laya.Sprite {         constructor() {             super(...arguments);             this.relativeX = 0;             this.relativeY = 0;             this.isAloneObject = false;          ...

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

58. 其他引擎的Demo-Example_23 [ 69%]

...rement the ticker tick += 1; } } } import laya.display.Sprite; class Laser extends Sprite { public var life:int; }

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

59. Tab组件如何通过js控制选中 [ 69%]

...当前的选项,说明继承没有问题,但是无法更改 class Tab extends TabUI{ constructor() { super() this.zOrder = 1 console.log(this._tab._selectedIndex) //返回1,正常 this._tab._selectedIndex = 0 } } xdkaka • 2017-12-14 17:40 发布肯定是已经发布了的。。。。看了...

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

60. 加载.lh文件 运行后黑屏 无法显示 [ 69%]

....addChild(this.text); } } //激活启动类 new Main(); class MonkeyScript extends Laya.Script3D{     private _scene:Laya.Scene3D;     private _text:Laya.Text;     private _camera:Laya.Camera;     private rotation:Laya.Vector3;     private lastPosition:Laya.Vector2;     priva...

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