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

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

691. 粒子-粒子演示2 [ 65%]

...port WebGL = Laya.WebGL; import URL = Laya.URL; export class Particle_T2 { private sp: Particle2D; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; La...

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

692. 粒子-粒子演示3 [ 65%]

...port WebGL = Laya.WebGL; import URL = Laya.URL; export class Particle_T3 { private sp: Particle2D; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; La...

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

693. 提示资源重复加载 [ 65%]

...mp/yard_swimpool02.png";  export default class Yard extends Laya.Sprite { private swimpoolani:Laya.Animation;  constructor() { super(); this.swimpoolani=new Laya.Animation(); //this.init(); this.swimpoolani.loadAtlas("./res/atlas/Comp.atlas",Laya.Handler.create(this,this.onLoaded));   } private o...

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

694. ipad 声音管理无法暂停继续播放,只能从头开始,pc端正常,代码如下 [ 64%]

...暂停继续播放,只能从头开始,pc端正常,代码如下    private playSoundLead() {         if (!this.soundMan || this.playBoo) {             this.soundMan = Laya.SoundManager.playMusic(this.leadSoundUrl, 1, Handler.create(this, this.soundEndFun1));             this._...

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

695. 在安卓手机上drawToTexture不能正确返回纹理对象,是HTMLCanvas [ 64%]

...ive模式出包。手机上调用此方法返回的对象类型不对    private _agentTexture: any; private _agent:Laya.Sprite;    public startDrag(dragCom: Laya.Sprite, touchID: number, sourceData?: any): void {let bounds = dragCom.getSelfBounds(); this._agentTexture = Laya.Sprite.drawToTextur...

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

696. Uncaught TypeError: Cannot read property '_tf' of null [ 64%]

...邀请: 与内容相关的链接 提交 2 个回复 nieyiwei 赞同来自: private var _guideImage:Image;   public function main():void {   _guideImage = new Image();   _guideImage.source = Loader.getRes("source/png/ui/1/guideImg.png");     tweenGuide1(_guideImage );     Tween.clearAll(_guid...

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

697. 3D性能优化 · LayaAir3.4 · 引擎文档 · LAYABOX [ 64%]

...共享材质,用于合批 public batchMat: Laya.Material; //颜色数目 private _colorNums = 20; //精灵数目 private _spriteNums = 200; private _createColorBufferData() { //随机给20个颜色值 let colorBuffer = new Float32Array(20 * 4); for (var i = 0; i < this._colorNums; i++) { let of...

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

698. laya.d3.resource.DataTexture2D [ 64%]

...Texture2D  onAsynLoaded(url:String, data:*, params:Array):void[override] private DataTexture2DProtected Methods  MethodDefined By  detoryResource():void[override] 销毁资源。 DataTexture2D  recreateResource():void[override] 重新创建资源,如果异步创建中被强制释放再创...

来源: laya_api 发布时间: 20170929

699. new Laya.Templet() 时,说这不是一个constructor [ 64%]

...动画的宽度高度, 求前辈指点下,谢谢! 代码如下: //private strAniConfPath:string = "res/fighter/fighter.json" //private aniFighter:Animation; this.aniFighter = new Animation(); this.aniFighter.loadAtlas(this.strAniConfPath); Laya.stage.addChild(this.aniFighter); this...

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

700. 文本-复杂的文本样式 [ 64%]

...caleMode = "showall"; Laya.stage.bgColor = "#232628"; this.createText(); } private createText(): void { var txt: Text = new Text(); //给文本的text属性赋值 txt.text = "Layabox是性能最强的HTML5引擎技术提供商与优秀的游戏发行商,面向Flash开发者提供HTML5开发技术...

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