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

大约有 1,204 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0105 秒)

201. 关于substr 建议 [ 76%]

...调用String.substr()时候发生些问题。   我举个例子:   let color='#FFFFFF'   原生: color.substr(0,0) -> ''; String.prototype.substr = Laya.__substr : color.substr(0,0) -> '#FFFFFF'   覆盖String 的substr 使一些需要取空值的操作没有了,对于第三方类库...

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

202. layaair1.7.9 beta版,给图片加上颜色滤镜,效果有问题 [ 76%]

... spr.texture = tx; Laya.stage.addChild(spr); spr.x = 300; spr.y = 100; var color:Array = ; color.push( 0, 0, 0, 0, 255, 0, 0, 0, 0, 255, 0, 0, 0, 0, 255, 0, 0, 0, 1, 0); var filter:ColorFilter = new ColorFilter(color); spr.filters = [filter];   附件 : --> 2017-08-25 添加评论 免费帖 --> 分...

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

203. 2D节点使用3D · LayaAir3.4 · 引擎文档 · LAYABOX [ 76%]

...h:渲染纹理的像素宽度。 Height:渲染纹理的像素高度。 Color Format:渲染纹理的颜色格式。 Depth Format:渲染纹理的深度格式。 Generate Mipmap:如果勾选了,则自动生成多级渐进纹理级别。 Multi Samples:多重采样。 sRGB:此渲染纹理...

来源: Laya3.0_文档 发布时间: 20251010

204. 麻烦帮我看下Unity里自定义Shader导出到Layaair之后没有Alpha效果 [ 76%]

...题,我将导入后的资源,试着在Laya里面控制附图里面的Color数值,发现Alpha的数值设定是没有产生变化的,请问我该怎么做才有Unity的效果呢?   我在Laya设置Color的方法为: ._render.material._setColor(7, new Laya.Vector4(0.71,0.2,0.2117,this.tweenVa...

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

205. laya.d3.resource.SolidColorTexture2D [ 76%]

...umentationAll Packages | All Classes | Index | Frames No Frames SolidColorTexture2DProperties | Methods Packagelaya.d3.resourceClasspublic class SolidColorTexture2DInheritanceSolidColorTexture2D BaseTexture laya.resource.Resource SolidColorTexture2D 二维纯色纹理。 Public Properties Hi...

来源: laya_api 发布时间: 20170929

206. Unity粒子系统导出支持列表(TypeScript-3D基础(TS)-LayaAir3D之Unity插件使用) [ 76%]

.... Start Rotation - Constant 10. Flip Rotation 随机旋转概率 11. Start Color 开始颜色 - Constant 固定值 - Random between Two Constant 数值区间 12. Gravity Modifier 重力修正 13. Simulation Space 模拟空间 - Local - Hierarchy 14. Scaling Model 缩放模式 - Hierarchy - Local 15....

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

207. viewportPointToRay产生的射线始终有偏差,是为什么? [ 76%]

... new Vector3(0, -1, 1); private _phasorSpriter3D:PhasorSpriter3D; private _color:Vector4 = new Vector4(1, 0, 0, 1); private _point:Vector2 = new Vector2(); private _camera:Camera; private _ray:Ray = new Ray(new Vector3(0, 0, 0), new Vector3(0, 0, 0)); public _start(state:RenderState):void { super._s...

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

208. laya.d3.core.material.BlinnPhongMaterial_API3.0 [ 76%]

...faultMaterial Accessors MaterialDefine MaterialProperty _defineDatas albedoColor albedoIntensity albedoTexture alphaTest alphaTestValue backDiffuse backScale blend blendDst blendDstAlpha blendDstRGB blendEquation blendEquationAlpha blendEquationRGB blendSrc blendSrcAlpha blendSrcRGB cpuMemory cull d...

来源: Laya3.0_api 发布时间: 20231115

209. 2D拖尾渲染器 · LayaAir3.4 · 引擎文档 · LAYABOX [ 76%]

... 一个归一化的值,决定了拖尾不同位置的宽度 拖尾颜色(color) 设置拖尾的颜色,会与拖尾的渐变色混合叠加形成最终颜色 拖尾渐变色(colorGradient) 设置拖尾的渐变色,会与拖尾的颜色混合叠加形成最终颜色 纹理模式(textureMode) 控...

来源: Laya3.0_文档 发布时间: 20251010

210. 屏幕适配-自动横屏 [ 75%]

...= "showall"; Laya.stage.screenMode = Stage.SCREEN_HORIZONTAL; Laya.stage.bgColor = "#232628"; showText(); })(); function showText() { var text = new Text(); text.text = "Orientation-Landscape"; text.color = "gray"; text.font = "Impact"; text.fontSize = 50; text.x = Laya.stage.width - text.width >> 1...

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