大约有 3,979 项符合查询结果, 库内数据总量为 30,906 项。 (搜索耗时: 0.0067 秒)
Laya_社区(2827) Laya2.0_文档(369) Laya2.0_api(225) laya_api(169) Laya_示例(157) Laya2.0_示例(117) Laya3.0_api(62) Laya3.0_文档(53)
...到场景,然后又被移除,还能通过Ray进行碰撞检测么? var outHitAllInfo:Vector.<RaycastHit> = new Vector.<RaycastHit>(); point.elements[0] = MouseManager.instance.mouseX; point.elements[1] = MouseManager.instance.mouseY; ray.direction.x = 0; ray.direction.y = 0; ray.di...
来源: Laya_社区 发布时间: 20171017
..."bingan/runBin.swf"; private const YUAN:String = "bingan/yan.swf"; private var assets:Array = []; private var mc:MovieClip = new MovieClip(); public function BeforLoader() { assets.push(ADDONE); assets.push(BG); assets.push(CDOWNBIN); assets.push(CUOLE); assets.push(CUPBIN); assets.push(CUTONE); ass...
来源: Laya_社区 发布时间: 20161213
...方体模型,想给它六个面贴不同的贴图,该如何处理? var box = scene.addChild(new Laya.MeshSprite3D(new Laya.BoxMesh(1, 1, 1))); box.transform.rotate(new Laya.Vector3(0, 45, 0), false, false); box.transform.translate(new Laya.Vector3(10, 10, 10)); var material = new Laya.Standard...
来源: Laya_社区 发布时间: 20180227
Laya.Pool.getItemByClass 闪退 var fish:CFFish = Laya.Pool.getItemByClass(type,CFFish) as CFFish console.log(fish) fish.visible = true fish.init(type) 调用init方法时候闪退,错误信息是 "fish.init is not a function" "TypeError: fish.init is not a function at Function.CFSprite.reusableF...
来源: Laya_社区 发布时间: 20180404
... /**是否是从右向左的显示顺序*/ public static var RightToLeft:Boolean = false; /** * 设置文字排版模式为右到左。 */ public static function setTextRightToLeft():void { ...
来源: Laya_社区 发布时间: 20180313
...。 BoundBox toDefault():voidBoundBoxProperty Detailmaxpropertypublic var max:Vector3最大顶点。minproperty public var min:Vector3最小顶点。Constructor DetailBoundBox()Constructorpublic function BoundBox(min:Vector3, max:Vector3) 创建一个 BoundBox 实例。 Parameters min:Vector3 ...
来源: Laya2.0_api 发布时间: 20190513
...emSpr.cacheAsBitmap = false; this.addChild(this.itemSpr); //卡马克 for (var i: number = 0; i < 15; i++) { var attItem: HeadItem = new HeadItem; attItem.x = i * this.OFF_X; this.itemList.push(attItem); this.itemSpr.addChild(attItem); } let maskSp:Laya.Sprite = new Laya.Sprite; maskSp.graphics.d...
来源: Laya_社区 发布时间: 20170913
...文件 this.tl.loadAnimation("imgdebris/naruto2.ani"); //添加到舞台 var apesCtn = new Laya.Sprite(); Laya.stage.addChild(apesCtn); var _this = this; this.tl.on(this.Event.COMPLETE,this,function(){ _this.tl.stop(); }) console.log(this.tl) this.tl.interval = 1000 / 60; // this.tl.play(); apesCtn....
来源: Laya_社区 发布时间: 20190117
... this.img.graphics.clear(); //获得要切换的图片资源路径 var imgUrl:String = (this.flag = !this.flag)? this.monkey2:this.monkey1; //获取图片资源 var texture:Laya.Texture = Laya.loader.getRes(imgUrl); //绘制纹理 this.img.graphics.drawTexture(texture); //设...
来源: Laya_社区 发布时间: 20180226
...例,然后上面开头还有一个new,上面的写法是否等同于 var t = HTML.create(xxx), new t Laya_Aaron • 2018-07-02 17:14 这个不能直接使用new 。 tobe • 2018-07-02 17:34 /** * <p>创建一个 <code>HTMLImage</code> 实例。</p> * <p>请使用 &...
来源: Laya_社区 发布时间: 20180702