大约有 192 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0058 秒)
...tected All Inherited Externals Only exported Menu Globals "laya/media/VideoTexture" VideoTexture Class VideoTexture VideoTexture 多媒体纹理 Hierarchy BaseTexture VideoTexture Index Constructors constructor Properties _id _isLoaded _needUpdate destroyedImmediately element lock name url uuid DEBU...
来源: Laya3.0_api 发布时间: 20231115
...caleY scene scrollRect sizeGrid skewX skewY skin sources stage staticCache texture timer toolTip top total transform url viewport visible width x y zOrder Methods _initialize _processActive _setHeight _setSkin _setWidth addChild addChildAt addChildren addComponent addComponentInstance bubbleEvent ca...
来源: Laya3.0_api 发布时间: 20231115
... private lightOccluder: Laya.Sprite = new Laya.Sprite(); private backgroundTexture: string = "resources/bg2.png"; //组件被启用后执行,例如节点被添加到舞台后 onEnable(): void { Laya.loader.load(this.backgroundTexture).then(() => { this.createLightOccluder(); this.createSpotLigh...
来源: Laya3.0_文档 发布时间: 20251010
...ed Rotation by Speed External Forces Noise Collision Triggers Sub Emitters Texture Sheet Animation -> Enabled UV Channels -> Nothing, Everything, UV1, UV2, UV3 Lights Trails 2016-12-19 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的...
来源: Laya_社区 发布时间: 20161219
...eCache方法手动刷新。Sprite tag : * 对象的标签。 UIComponent texture : Texture 设置一个Texture实例,并显示此图片(如果之前有其他绘制,则会被清除掉)。 等同于graphics.clear();graphics.drawImage(),但性能更高 还可以赋值一个图片地址,...
来源: Laya2.0_api 发布时间: 20190513
...new Laya.loader.getRes(url); var ape = new Laya.Sprite(); ape.graphics.drawTexture(t,0,0); Laya.stage.addChild(ape); ape.pos(200,0); } ``` 第三种我们直接创建一个纹理来显示: ```javascript function completeHandler(data){ //加载完成返回的data是arraybuffer //......这里处理...
来源: Laya2.0_文档 发布时间: 20210715
...并在 MeshRenderer 组件中指定新创建的材质,来设置 albedo Texture 纹理 ,如动图2-7所示, (动图2-7) 三、代码创建与使用 通过代码来创建和使用3D基础对象,也是我们了解和熟悉LayaAir引擎的过程 3.1 代码创建 3.1.1 PrimitiveMesh 类用于...
来源: Laya3.0_文档 发布时间: 20251010
...oad("res/atlas/comp.atlas", Handler.create(this, function():void { var img:Texture = Laya.loader.getRes("comp/comp.png"); var sp:Sprite = new Sprite(); sp.graphics.drawTexture(img); Laya.stage.addChild(sp); })); Laya.loader.load("res/atlas/test.atlas", Handler.create(this, function():void { var img:...
来源: Laya2.0_文档 发布时间: 20210714
...0); var planeMat = new Laya.BlinnPhongMaterial(); Laya.Texture2D.load("res/threeDimen/Physics/grass.png", Laya.Handler.create(this, function (tex) { planeMat.albedoTexture = tex; })); //设置纹理平铺和偏移 var tilingOffset = pl...
来源: Laya_社区 发布时间: 20210103
...过图片数据计算得到AStart网格 */ private createGridFromAStarMap(texture): any { var textureWidth = texture.width; var textureHeight = texture.height; var pixelsInfo = texture.getPixels(); var aStarArr = []; var index = 0; for (var w = 0; w < textureWidth; w++) { var colaStarArr = aStarA...
来源: Laya3.0_文档 发布时间: 20230303