大约有 3,990 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0095 秒)
Laya_社区(2838) Laya2.0_文档(369) Laya2.0_api(225) laya_api(169) Laya_示例(157) Laya2.0_示例(117) Laya3.0_api(62) Laya3.0_文档(53)
... public function set height(value:Number):voidoffsetXproperty public var offsetX:Number = 0沿 X 轴偏移量。offsetYproperty public var offsetY:Number = 0沿 Y 轴偏移量。sourceHeightproperty public var sourceHeight:Number = 0原始高度(包括被裁剪的透明区域)。sourceWi...
来源: Laya2.0_api 发布时间: 20190513
...et的output.writeByte // 使用output.writeByte发送 var message:String = "demonstrate <output.writeByte>"; for (var i:int = 0; i < message.length; ++i) { output.writeByte(message.charCodeAt(i)); ...
来源: Laya_社区 发布时间: 20170526
...在调整zorder时是调整不到的__proto.render=function(context,x,y){ var childs=this._childs; this._childs=this._showGridList; _super.prototype.render.call(this,context,x,y); this._childs=childs; }2.core中Sprite的zorder的set方法中 有一行代码有疑似bug,麻烦官方帮忙确认 /**...
来源: Laya_社区 发布时间: 20180412
...的图片源清除的问题 如下面的代码,一张图片载入到了img var img = new Laya.Image(); var tempImageName = "comp/test.png"; img.loadImage(tempImageName, 0, 0); 如何把img中载入的这张图片源去掉呢。 是不是有类似于img.clear()的方法。 2018-02-28 添加...
来源: Laya_社区 发布时间: 20180228
...位图字体生效 按照官方给的两种方法就是不生效 var mFontName = "myFont"; var mBitmapFont = new Laya.BitmapFont(); mBitmapFont.loadFont("res/bitmapFont/test.fnt", new Laya.Handler(this, onLoaded)); function onLoaded(){ mBitmapFont.setSpaceWidth(10); Laya.Text.registerBitma...
来源: Laya_社区 发布时间: 20191108
...邀请: 与内容相关的链接 提交 1 个回复 李伟 赞同来自: var Wall_TL = new Sprite(); Laya.stage.addChild(Wall_TL); Wall_TL.graphics.drawRect(0, 0, 400, 32, "#ffff00"); Wall_TL.pivot(200, 16); var Collision_Wall_TL:any = Matter.Bodies.rectangle(200, 400, 400, 32, { layaSprite:Wall_...
来源: Laya_社区 发布时间: 20180529
...常用来模拟固定方向的太阳光。 ```typescript //创建方向光 var directionLight:DirectionLight = scene.addChild(new DirectionLight()) as DirectionLight; //方向光的颜色 directionLight.color = new Vector3(1, 1, 1); //设置平行光的方向 var mat:Matrix4x4 = directionLight.trans...
来源: Laya2.0_文档 发布时间: 20210715
...addInclude("PBRVertex.glsl", PBRVertex); //定义BLINNPHONG的attributeMap var attributeMap: any = { 'a_Position': VertexMesh.MESH_POSITION0, 'a_Color': VertexMesh.MESH_COLOR0, 'a_Normal': VertexMesh.MESH_NORMAL0, 'a_Texcoord0': VertexMesh.MESH_TEXTURECOORDINATE0, 'a_Texcoord1': VertexMesh.MESH_TEXT...
来源: Laya2.0_文档 发布时间: 20210715
...,同时光照区域边缘也有衰减现象。 ```typescript //聚光灯 var spotLight = scene.addChild(new Laya.SpotLight()) as Laya.SpotLight; //设置聚光灯颜色 spotLight.color = new Laya.Vector3(1, 1, 0); //设置聚光灯位置 spotLight.transform.position = new Laya.Vector3(0.0, 1.2, 0....
来源: Laya2.0_文档 发布时间: 20210715
...AssetsLoaded(); }); } private onUIAssetsLoaded(e: any = null): void { for (var i: number = 0, len: number = this.skins.length; i < len; ++i) { var btn: Laya.Button = this.createButton(this.skins[i]); var x: number = i % this.COLUMNS * this.HORIZONTAL_SPACING + this.xOffset; var y: number = (i / t...
来源: Laya3.0_文档 发布时间: 20251010