大约有 1,237 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0062 秒)
Laya_社区(706) Laya_示例(137) Laya2.0_文档(123) Laya2.0_示例(116) Laya3.0_文档(76) Laya3.0_api(39) laya_api(29) Laya2.0_api(11)
...原理:lh预加载完成后,对材质进行检索,预编译shader。 private loadEffectComplete():void{ var effect:Laya.Sprite3D = Laya.loader.getRes("res/effect/2/Conventional/bullet.lh"); this.compileShader(effect); //===========放心使用吧...
来源: Laya_社区 发布时间: 20190404
...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
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
... = "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
...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
...中也是同样的问题,在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, () => { this.img.mask = this._sp; }) }之后编译项目 2...
来源: Laya_社区 发布时间: 20191216
... //Laya.stage.addChild(ani); //动画正常显示 文件路径都正常 } private init(): void { var assets: Array<any> = ; 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
...。 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
...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
...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