大约有 192 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0053 秒)
Laya_社区(75) Laya3.0_api(66) Laya2.0_api(16) laya_api(15) Laya2.0_文档(6) Laya3.0_文档(6) Laya_示例(5) Laya2.0_示例(3)
...llipse drawImage drawLine drawLines drawPath drawPie drawPoly drawRect drawTexture drawTextures drawTriangles fillBorderText fillText fillTexture getBounds loadImage removeCmd restore rotate save scale setState strokeText transform translate Constructors constructor new AutoBitmap(): AutoBitmap Inhe...
来源: Laya3.0_api 发布时间: 20231115
...son数据 private _jsonData: any; // 图片数据 private _imageData: Laya.Texture; // 文本字间距 private _padding: number = 0; // 所有元素; private charSprites: Laya.Sprite; // 位置类型 private _posType: string; // 左 右 中 public static LEFT: string = "left"; public static RIGHT:...
来源: Laya_社区 发布时间: 20161014
...0,1为垂直3宫格,3宫格性能比9宫格高。 AutoBitmap source : Texture 对象的纹理资源。 AutoBitmap width : Number 表示显示对象的宽度,以像素为单位。 AutoBitmapPublic Methods Hide Inherited Public Methods Show Inherited Public Methods MethodDefined By alpha(v...
来源: laya_api 发布时间: 20170929
...ader.load("res/apes/monkey2.png",Laya.Handler.create(this,function() { var texture=Laya.loader.getRes("res/apes/monkey2.png"); var sp=new Laya.Sprite(); sp.graphics.drawTexture(texture,0,0); sp.size(texture.width,texture.height); Laya.stage.addChild(sp); })); 使用Graphics.drawTexture并不会自...
来源: Laya3.0_文档 发布时间: 20251010
...集类型,加载完成后返回图集json信息(并创建图集内小图Texture)。Loader BUFFER : String = arraybuffer[static] 二进制类型,加载完成后返回arraybuffer二进制数据。Loader FONT : String = font[static] 位图字体类型,加载完成后返回BitmapFont。Loade...
来源: laya_api 发布时间: 20170929
...; this.aimSp = null; this.drawImage = null; this.drawSp = null; this.monkeyTexture = null; // 不支持WebGL时自动切换至Canvas Config.preserveDrawingBuffer =true; Laya.init(Browser.clientWidth, Browser.clientHeight); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTE...
来源: Laya2.0_示例 发布时间: 20260929
... 6, 10, 10))); var planeMat = new Laya.StandardMaterial(); planeMat.diffuseTexture = Laya.Texture2D.load("../../res/threeDimen/texture/layabox.png"); planeMat.albedo = new Laya.Vector4(0.9, 0.9, 0.9, 1); plane.meshRender.material = planeMat; var boxCollider = plane.addComponent(Laya.BoxCollider); bo...
来源: Laya_示例 发布时间: 20260929
drawTexture 画出来的数据会有以前的数据 private var iconSpr:Sprite; private var htmlCanvas:HTMLCanvas; private var texture:Texture; private var xNum:int = 0; private var yNum:int = 0; private var img:Image; public function TestView() { img = new Image("comp/lhjicon_5.png"); img.x = 640;...
来源: Laya_社区 发布时间: 20180113
...的灯光不显示,请问有知道是什么原因的吗?~~~~~~~~~~~~~ Texture图片能否进行翻转? 关于文本遮挡 unity中的模型导出后在laya中显示不正常 btn 鼠标移动上去默认文本颜色是绿色,我想换成其他颜色,如何操作? 问题状态 最新活动...
来源: Laya_社区 发布时间: 20180313
...如图: 下方中间的是Text文本 左上方的是用drawToCanvas生成Texture绘制在sprite上的 fontSize为8, 显示左上角的文字明显要比中间的大, 左上角的画布特意加大了, 如果画布按文本原本大小绘制的话会显示不全. 附件 : --> 2018-01-18 添加...
来源: Laya_社区 发布时间: 20180118