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

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

21. Sprite-切换纹理 [ 97%]

...y2Str = "res/apes/monkey2.png", monkey1Res, monkey2Res; class Sprite_SwitchTexture { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage; // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage....

来源: Laya2.0_示例 发布时间: 20251130

22. laya.d3.graphics.VertexPositionNormalColorTexture0Texture1 [ 97%]

...es | All Classes | Index | Frames No Frames VertexPositionNormalColorTexture0Texture1Properties | Methods Packagelaya.d3.graphicsClasspublic class VertexPositionNormalColorTexture0Texture1InheritanceVertexPositionNormalColorTexture0Texture1 ObjectImplements IVertex VertexPositionNormalColorT...

来源: laya_api 发布时间: 20170929

23. 加载-单一类型资源加载 [ 97%]

...rIDE让项目开发更高效。(function() { var Loader = Laya.Loader; var Texture = Laya.Texture; var Handler = Laya.Handler; (function() { Laya.init(550, 400); // 加载一张png类型资源 Laya.loader.load("../../res/apes/monkey0.png", Handler.create(this, onAssetLoaded1)); // 加载多张png类...

来源: Laya_示例 发布时间: 20251130

24. 从图集中创建Texture2D问题 [ 97%]

从图集中创建Texture2D问题 我在做物品的掉落渲染,需要用到Texture2D对象。我本以为TextureTexture2D是一样的,但当我通过Texture2D的load方法获取物品图集中的图片时遇到了问题:获取出的图片不是我某个物品的,而是整个物品图...

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

25. LayaAir 2.0 微信排行榜 离屏画布不能直接附加到组件纹理上 [ 97%]

...0 微信排行榜 离屏画布不能直接附加到组件纹理上 A:let texture = new Laya.Texture(sharedCanvas); backImage.graphics.drawTexture(texture)   B:backImage.texturetexture     1.7版本可以直接把共享画布赋值给组件纹理,2.0不行(A,B两种方法) 报如...

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

26. PBRStandardMaterial材质详解(ActionScript-3D基础(AS3)-模型材质详解) [ 97%]

...属性和方法 > 属性 `albedoColor:Vector4` 漫反射颜色。 `albedoTexture:BaseTexture` 漫反射贴图。 `emissionColor:Vector4` 放射颜色。 `emissionTexture:BaseTexture` 放射贴图。 `enableEmission:Boolean` 是否激活放射属性。 `enableReflection:Boolean` 是否开启反射。...

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

27. 关于graphics.drawTexture方法设置纹理报错TypeError: texture.getIsReady is not a function [ 97%]

关于graphics.drawTexture方法设置纹理报错TypeError: texture.getIsReady is not a function 自己的问题 2019-05-08 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 3 个回复 Laya_Aaron 赞同来自: 截图和代码...

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

28. laya.d3.graphics.VertexPositionNormalColorTexture0Texture1Skin [ 97%]

...es | All Classes | Index | Frames No Frames VertexPositionNormalColorTexture0Texture1SkinProperties | Methods Packagelaya.d3.graphicsClasspublic class VertexPositionNormalColorTexture0Texture1SkinInheritanceVertexPositionNormalColorTexture0Texture1Skin ObjectImplements IVertex VertexPosition...

来源: laya_api 发布时间: 20170929

29. matter中更换texture [ 96%]

matter中更换texture 我想在两个body碰撞的时候替换其中一个的texture,但是下述代码确不起作用. 能够确定的是bodyB.render.sprite.texture这个属性的值的确变了,但是不起作用,图片没变,好像没有更新. //事件回调---collisionStart Matter.Event...

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

30. 显示与切换图片(TypeScript-LayaAir基础篇(TS)-位图) [ 96%]

...基础,本篇从API到示例分别介绍Sprite.loadImage与Graphics.drawTexture两种显示图片的方法。 ## 1、用loadImage方法显示与切换图片 ### 1.1 loadImage API概述 在API文档中搜索laya.display.Sprite,可以找到loadImage()方法,如图1所示,我们先熟悉一下...

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