• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 192 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0056 秒)

81. laya.ui.AutoBitmap_API3.0 [ 80%]

...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

82. 分享个用美术资源做位图文本的方法。。。 [ 80%]

...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

83. laya.ui.AutoBitmap [ 79%]

...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

84. 2D性能优化 · LayaAir3.4 · 引擎文档 · LAYABOX [ 79%]

...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

85. laya.net.Loader [ 79%]

...集类型,加载完成后返回图集json信息(并创建图集内小图Texture)。Loader  BUFFER : String = arraybuffer[static] 二进制类型,加载完成后返回arraybuffer二进制数据。Loader  FONT : String = font[static] 位图字体类型,加载完成后返回BitmapFont。Loade...

来源: laya_api 发布时间: 20170929

86. Sprite-屏幕截图 [ 79%]

...; 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

87. 射线检测-选取物体 [ 78%]

... 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

88. drawTexture 画出来的数据会有以前的数据 [ 78%]

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

89. 求教 label.text之类的文本,能否支持从右到左的显示?或者有没有什么解决方案,现有阿拉伯文、维语的需求 [ 78%]

...的灯光不显示,请问有知道是什么原因的吗?~~~~~~~~~~~~~ Texture图片能否进行翻转? 关于文本遮挡 unity中的模型导出后在laya中显示不正常 btn 鼠标移动上去默认文本颜色是绿色,我想换成其他颜色,如何操作? 问题状态 最新活动...

来源: Laya_社区 发布时间: 20180313

90. Text文本fontSize小于12,使用drawToCanvas画出的图像不对,显示的是fontSize为12的图像 [ 77%]

...如图:  下方中间的是Text文本 左上方的是用drawToCanvas生成Texture绘制在sprite上的 fontSize为8, 显示左上角的文字明显要比中间的大, 左上角的画布特意加大了, 如果画布按文本原本大小绘制的话会显示不全.   附件 : --> 2018-01-18 添加...

来源: Laya_社区 发布时间: 20180118