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

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

271. Unlit材质详解(TypeScript-3D基础(TS)-模型材质详解) [ 86%]

...or4` 反照率颜色。 `albedoIntensity:Number` 反照率强度。 `albedoTexture:BaseTexture` 反照率贴图。 `enableVertexColor:Boolean` 是否支持顶点色。 `renderMode:int` [write-only] 设置渲染模式。 `tilingOffset:Vector4` 纹理平铺和偏移。 #### 创建和使用材质 图1...

来源: Laya2.0_文档 发布时间: 20210714

272. Unlit材质详解(JavaScript-3D基础(JS)-模型材质详解) [ 86%]

...or4` 反照率颜色。 `albedoIntensity:Number` 反照率强度。 `albedoTexture:BaseTexture` 反照率贴图。 `enableVertexColor:Boolean` 是否支持顶点色。 `renderMode:int` [write-only] 设置渲染模式。 `tilingOffset:Vector4` 纹理平铺和偏移。 #### 创建和使用材质 图1...

来源: Laya2.0_文档 发布时间: 20210715

273. htmlCanvas.toBase64在iPhone上转换结果错误 [ 86%]

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

274. 怎么对graphics画出来的图片进行鼠标点击拖动??? [ 86%]

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

275. 射线检测-放置物体 [ 86%]

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

276. 分享:截屏! [ 86%]

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

277. setSubPixels画布擦除不掉 [ 86%]

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

278. laya.display.cmd.FillTextureCmd_API3.0 [ 86%]

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

279. 官方提供的关系链代码执行报错,是不是wx的sharedCanvas不是Laya的canvas导致的问题 [ 86%]

... 微信主域代码: 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

280. laya.display.cmd.FillTextureCmd [ 86%]

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