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

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

661. 3D粒子特效第一次卡顿最终解决方案 [ 66%]

...原理:lh预加载完成后,对材质进行检索,预编译shader。 private loadEffectComplete():void{         var effect:Laya.Sprite3D = Laya.loader.getRes("res/effect/2/Conventional/bullet.lh");         this.compileShader(effect);         //===========放心使用吧...

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

662. Android替换游戏启动logo看不到设置的图片 [ 66%]

...port laya.utils.Handler; import view.TestView; public class LayaUISample { private var dd:*; public function LayaUISample() { //初始化引擎 Laya.init(600, 400); //判断是否在加速器端 __JS__("if(window.conch)") { //获取loadingview的实例 dd=__JS__("window.loadingView"); 通过loading...

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

663. this.bitmap.activeResource is not a function [ 66%]

this.bitmap.activeResource is not a function //开放域层级 private static _openZone:Laya.Sprite; //开放域纹理 private static _openZoneTexture:Laya.Texture; public static openZone(vx:number=0,vy:number=0,scaleX:number=1,scaleY:number=1) { if(!this._openZone) { //开放域 this._openZone = n...

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

664. Sprite-缓存为静态图像 [ 66%]

... = "showall"; Laya.stage.bgColor = "#232628"; Stat.show(); this.setup(); } private setup(): void { var textBox: Sprite = new Sprite(); // 随机摆放文本 var text: Text; for (var i: number = 0; i < 1000; i++) { text = new Text(); text.fontSize = 20; text.text = (Math.random() * 100).toFixed(0); t...

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

665. Dragonbones龙骨动画 播放不同动作出现闪烁 混乱 [ 66%]

...fffff'); this.mask = this.maskBox; this.maskBox.alpha=0; // this.show(); } private parseComplete():void { //创建模式为1,可以启用换装 this.skeleton =this.templet.buildArmature(1); this.skeleton.x = this.mStartX; this.skeleton.y = this.mStartY; this.skeleton.scale(this.scaleper, this.scal...

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

666. (最新版ide和库已经测试)iOS环境浏览器使用mask黑屏 [ 66%]

...中也是同样的问题,在GameControl onEnable中执行如下代码:private _sp = new Laya.Sprite(); private _testMask() { this._sp.graphics.clear(); this._sp.graphics.drawCircle(100, 100, 50, '#ffffff'); Laya.timer.once(3000, this, () =&gt; { this.img.mask = this._sp; }) }之后编译项目 2...

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

667. 图集打包后使用Texture不显示啊 [ 66%]

... //Laya.stage.addChild(ani); //动画正常显示 文件路径都正常 } private init(): void { var assets: Array&lt;any&gt; = ; assets.push({ url: "res/start.json", type: Loader.ATLAS}); Laya.loader.load(assets, Handler.create(this, this.onComplete)); } private onComplete(): void { } } new GameMai...

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

668. laya.d3.resource.models.Mesh [ 66%]

...。 Mesh  onAsynLoaded(url:String, data:*, params:Array):void[override] private MeshProtected Methods  MethodDefined By  detoryResource():void[override] 销毁资源,override it,同时修改memorySize属性。MeshProperty DetailInverseAbsoluteBindPosespropertyInverseAbsoluteBindPoses:Vector.&...

来源: laya_api 发布时间: 20170929

669. Sprite-显示图片 [ 66%]

...e.scaleMode = "showall"; Laya.stage.bgColor = "#232628"; this.showApe(); } private showApe(): void { // 方法1:使用loadImage var ape: Sprite = new Sprite(); Laya.stage.addChild(ape); ape.loadImage("../../res/apes/monkey3.png"); // 方法2:使用drawTexture Laya.loader.load("../../res/apes/mon...

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

670. Label属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 66%]

...ode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; this.setup(); } private setup(): void { this.createLabel("#FFFFFF", null).pos(30, 50); this.createLabel("#00FFFF", null).pos(290, 50); this.createLabel("#FFFF00", "#FFFFFF").pos(30, 100); this.createLabel("#000000", "#FFFFFF").pos(290, 100);...

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