大约有 1,210 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0058 秒)
Laya_社区(874) Laya2.0_文档(85) Laya3.0_api(61) Laya2.0_api(58) laya_api(55) Laya_示例(32) Laya2.0_示例(27) Laya3.0_文档(18)
...3、npm install source-map 4、npm install stacktracey 5、解析脚本: var errorStack = process.argv[2]; var mapFilePath = process.argv[3]; var sourceMap = require('source-map'); var fs = require('fs'); var Stacktracey = require('stacktracey'); async function main() { // const errorStack = "...
来源: Laya_社区 发布时间: 20190528
...ProgressBar; import laya.utils.Handler; public class LoadingDemo { private var progressBar:ProgressBar; public function LoadingDemo() { Laya.init(550,400); //预加载loading条资源 var pro1:Object={url:"loads/progressBar.png",type:Loader.IMAGE}; var pro2:Object={url:"loads/progressBar$bar.png",ty...
来源: Laya_社区 发布时间: 20160509
...r.create(this, onAssetLoaded)) private function onAssetLoaded():void { for(var i:int=0;i<picAy.length;i++) { var texture:Texture= Loader.getRes(picAy); var ape:Sprite = new Sprite; //ape.x=i*(stageWidth/4) //Tween.to(ape, { x : i*(stageWidth/4) },1500,Ease.sineOut); var bl:Number=texture.width/te...
来源: Laya_社区 发布时间: 20161026
... ot%3B,1); this.htmlvideo.video.addEventListener("loadedmetadata",()=>{ var videoTexture:Laya.VideoTexture = new Laya.VideoTexture(); videoTexture.video = this.htmlvideo.video; videoTexture.video.play(); videoTexture.video.loop = true; var texture2D = new Laya.Texture2D(videoTexture.video.videoWi...
来源: Laya_社区 发布时间: 20240305
...你可以通过先clear在drawTexture的方法设置下,代码如下: var sprite = new laya.display.Sprite(); sprite.loadImage("comp/bg.png",0,0,0,0,Handler.create(this,function(texture:laya.resource.Texture){ sprite.graphics.clear(); sprite.graphics.drawTexture(textu...
来源: Laya_社区 发布时间: 20160711
...'normalizedViewport',function(){ if (!this._viewportExpressedInClipSpace){ var vp=this._viewport; var size=this.renderTargetSize; var sizeW=size.width; var sizeH=size.height; this._normalizedViewport.x=vp.x / sizeW; this._normalizedViewport.y=vp.y / sizeH; this._normalizedViewport.width=vp.width / s...
来源: Laya_社区 发布时间: 20170601
...果可以当作图片源,再次绘制到其他Sprite里面,示例: var htmlCanvas:HTMLCanvas = sprite.drawToCanvas(100, 100, 0, 0);//把精灵绘制到canvas上面 var texture:Texture = new Texture(htmlCanvas);//使用htmlCanvas创建Texture var sp:Sprite = new Sprite().pos(0, 200);//创建精...
来源: laya_api 发布时间: 20170929
...e = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; var scene = Laya.stage.addChild(new Laya.Scene()); var camera = scene.addChild(new Laya.Camera(0, 0.1, 100)); camera.transform.translate(new Laya.Vector3(3, 8, 10)); camera.transform.lookAt(new Laya.Vector3(0, 0, 0), new Laya...
来源: Laya_社区 发布时间: 20180103
...继承一个基类,让子类继承去修改子类的属性值。或者 var Classs:Class=ApplicationDomain.currentDomain.getDefinition("Rect") as Class; var mcOne:MovieClip=new Classs() as MovieClip; mcOne.speed=10; addChild(mcOne); var mcTwo:MovieClip=new Classs() as MovieClip; mcTwo.spe...
来源: Laya_社区 发布时间: 20160407
...对象身上的动效模板实例啊?如果是UI类,可以通过设置var变量,在UI类中直接this.动效模板名字使用,但是脚本组件中怎么办呢?脚本组件中,即使设置了var变量,也是无法获取到这个动效模板对象的啊?求解? 2021-01-25 添加评...
来源: Laya_社区 发布时间: 20210125