大约有 1,279 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0062 秒)
Laya_社区(879) Laya3.0_api(113) Laya2.0_文档(92) Laya2.0_api(79) laya_api(67) Laya3.0_文档(47) Laya2.0_示例(1) Laya_示例(1)
...button.png"; constructor() { //初始化引擎,设置宽高并开启WebGL渲染模式 Laya.init(600,400,Laya.WebGL); //设置舞台背景颜色 Laya.stage.bgColor = "#ffffff"; //加载资源成功后,执行onLoaded回调方法 Laya.loader.load(this.skin,Laya.Handler.create(this,this.onLoaded)); ...
来源: Laya2.0_文档 发布时间: 20210714
...体和内存占用。 #### 1.2 减少CPU运算 多个`Sprite`如果渲染的是来自同一张图集的图片时,这些`Sprite`可以使用同一个渲染批次来处理,大大的减少CPU的运算时间,提高运行效率。 ## 2.支持图集打包的格式 LayaAirIDE支持对PNG与JPG...
来源: Laya2.0_文档 发布时间: 20210714
...eters vs: string ps: string Default value pipelineMode: string = "Forward" 渲染管线模式。 Returns ShaderPass getFlag getFlag(key: string): string Defined in laya/d3/shader/SubShader.ts:168 获取标记值。 Parameters key: string Returns string key 标记键。 setFlag setFlag(key: string, v...
来源: Laya3.0_api 发布时间: 20231102
...aterial.renderQueue Defined in laya/d3/core/material/Material.ts:100 所属渲染队列. url url: string Inherited from Resource.url Defined in laya/resource/Resource.ts:107 获取资源的URL地址。 uuid uuid: string Inherited from Resource.uuid Defined in laya/resource/Resource.ts:109 获取资...
来源: Laya3.0_api 发布时间: 20231115
...ilingOffset = new Laya.Vector4(10, 10, 0, 0); //板的画面的渲染材质 plane.meshRenderer.material = planeMat; //给板添加物理碰撞器 let planeStaticCollider = plane.addComponent(Laya.PhysicsCollider); //设置碰撞器 ...
来源: Laya_社区 发布时间: 20201127
...c function ComponentDemo() { //初始化引擎,设置宽高并开启WebGL渲染模式 Laya.init(1334,750, WebGL); //设置舞台背景颜色 Laya.stage.bgColor = "#ffffff"; //加载资源成功后,执行onLoaded回调方法 Laya.loader.load(skin, Handler.create(this, onLoaded)); } private functi...
来源: Laya2.0_文档 发布时间: 20210715
...舞台上没有,trace image 确实是取到资源了,请问为什么没渲染出来呢。 凌风 • 2018-08-29 13:49 rankSprite2是哪里来的 会饶舌的ad钙奶 • 2019-04-18 18:08 @凌风:var rankSprite2:sprite =new sprite() Thylx • 2018-07-07 17:21 我也碰到了这个问题,请问...
来源: Laya_社区 发布时间: 20180310
...ture2D" RenderTexture2D Class RenderTexture2D RenderTexture 类用于创建渲染目标。 Hierarchy BaseTexture RenderTexture2D Implements IRenderTarget Index Constructors constructor Properties _id _isCameraTarget _renderTarget depthStencilTexture destroyedImmediately lock name url uuid DEBUG _cle...
来源: Laya3.0_api 发布时间: 20231115
...veRenderTexture2D Class NativeRenderTexture2D RenderTexture 类用于创建渲染目标。 Hierarchy BaseTexture NativeRenderTexture2D Implements IRenderTarget Index Constructors constructor Properties _id _isCameraTarget _renderTarget depthStencilTexture destroyedImmediately lock name url uuid DEBU...
来源: Laya3.0_api 发布时间: 20231115
... • 2019-11-01 11:26 可是我手动在代码里添加了阴影也没有渲染出来啊,代码如下: let light: Laya.DirectionLight = scene.addChild(new Laya.DirectionLight) as Laya.DirectionLight; light.transform.rotate(new Laya.Vector3(-120, 0, 0), false, false); light.shadow = true; light.s...
来源: Laya_社区 发布时间: 20191030