大约有 2,258 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0147 秒)
Laya_社区(1808) Laya3.0_api(129) laya_api(84) Laya2.0_api(82) Laya2.0_文档(76) Laya_示例(36) Laya3.0_文档(28) Laya2.0_示例(15)
...or4` 反照率颜色。 `albedoIntensity:Number` 反照率强度。 `albedoTexture:BaseTexture` 反照率贴图。 `enableVertexColor:Boolean` 是否支持顶点色。 `renderMode:int` [write-only] 设置渲染模式。 `tilingOffset:Vector4` 纹理平铺和偏移。 #### 创建和使用材质 图1...
来源: Laya2.0_文档 发布时间: 20210714
...or4` 反照率颜色。 `albedoIntensity:Number` 反照率强度。 `albedoTexture:BaseTexture` 反照率贴图。 `enableVertexColor:Boolean` 是否支持顶点色。 `renderMode:int` [write-only] 设置渲染模式。 `tilingOffset:Vector4` 纹理平铺和偏移。 #### 创建和使用材质 图1...
来源: Laya2.0_文档 发布时间: 20210715
...Sp.drawToCanvas(200, 200, 0, 100); //截取精灵图片绘制到Canvas var texture = htmlCanvas.getTexture(); //获取纹理 StageUI.instance.saveTexture.graphics.drawTexture(texture, 0, 0, 0, 0);//绘制截取到的纹理 //可以获得base64位图,用于保存或上传到服务器 StageUI.inst...
来源: Laya_社区 发布时间: 20190111
...tage; import Event = Laya.Event; import Rectangle = Laya.Rectangle; import Texture = Laya.Texture; import Browser = Laya.Browser; import Handler = Laya.Handler; import WebGL = Laya.WebGL; export class Interaction_Drag { private ApePath: string = "../laya/monkey2.png"; private ape: Sprite; private dr...
来源: Laya_社区 发布时间: 20171106
... 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 meshCollider = plane.addComponent(Laya.MeshCollider); ...
来源: Laya_示例 发布时间: 20251209
...Event; import laya.resource.HTMLCanvas; import laya.resource.Texture; import laya.utils.Browser; import laya.webgl.WebGL; public class LayaAirDemo { private var sp:Sprite ; public function LayaAirDemo() { //...
来源: Laya_社区 发布时间: 20170424
...el = Math.random().toString(); // console.log(Math.random()); let tex:Laya.Texture = Laya.Loader.getRes(this.bUrl); let x:number = this._testStatus == true ? 0:50;//Math.random()>0.5 ? 50 : 0; this._testStatus = !this._testStatus; // let canvasInfo = this.getCanvasWidthHeight(); let ctx = new Lay...
来源: Laya_社区 发布时间: 20230328
...d All Inherited Externals Only exported Menu Globals "laya/display/cmd/FillTextureCmd" FillTextureCmd Class FillTextureCmd 填充贴图 Hierarchy FillTextureCmd Index Properties color height offset percent texture type width x y ID Methods getBoundPoints recover Properties color color: number = 4294...
来源: Laya3.0_api 发布时间: 20231115
... 微信主域代码: Laya.timer.once(400,this,function():void{ var rankTexture:Texture = new Texture(Browser.window.sharedCanvas); rankTexture.bitmap.alwaysChange = true;//小游戏使用,非常费,每帧刷新 rankSprite2.graphics.drawTexture(rankTexture,5,78,rankTexture.width,rankTexture.hei...
来源: Laya_社区 发布时间: 20180504
...cumentationAll Packages | All Classes | Index | Frames No Frames FillTextureCmdProperties | Methods | Constants Packagelaya.display.cmdClasspublic class FillTextureCmdInheritanceFillTextureCmd Object 填充贴图 Public Properties PropertyDefined By height : Number (可选)高度。...
来源: Laya2.0_api 发布时间: 20190513