大约有 357 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0066 秒)
...走的区域 (图2-3) 通过下面代码,可以读取此图,并将颜色值放到数组中 /** * 通过图片数据计算得到AStart网格 */ private createGridFromAStarMap(texture): any { var textureWidth = texture.width; var textureHeight = texture.height; var pixelsInfo = texture.getPixe...
来源: Laya3.0_文档 发布时间: 20230303
...llisionEnter(other:Laya.Collision): void { //碰撞开始后,物体改变颜色 (this.owner.getComponent(Laya.MeshRenderer).material as Laya.BlinnPhongMaterial).albedoColor = new Laya.Color(0.0, 1.0, 0.0, 1.0);//绿色 } /** * 发生持续物理碰撞时的3D物理碰撞器事件(不适用2D)...
来源: Laya3.0_文档 发布时间: 20251010
...理的属性面板上,把纹理类型改为默认值类型。 勾选sRGB颜色空间 注意不要勾选预乘Alpha(Spine导出的时候也不要勾选) 点击应用 以上操作如图4-1所示: (图4-1) 注意:如果应用后效果不对,刷新一下IDE即可。 另外,如果有多...
来源: Laya3.0_文档 发布时间: 20251128
... 具体区别如下: 漏出背景色: 漏出的背景色是画布外的颜色,由于noscale模式的画布与设计宽高一样大,所以就漏出背景色(IDE里设置)。而full模式的画布是与屏幕(浏览器宽高)一样大,所以屏幕多大就有多大。不会漏出背...
来源: Laya3.0_文档 发布时间: 20251010
...tring): void Inherited from Box.bgColor Defined in laya/ui/Box.ts:25 背景颜色 Returns string Inherited from Box.bgColor Defined in laya/ui/Box.ts:29 背景颜色 Parameters value: string Returns void blendMode get blendMode(): string set blendMode(value: string): void Inherited from Text.blendMo...
来源: Laya3.0_api 发布时间: 20231115
...tor.GUIUtils。 export interface IGUIUtils { /** * 编辑器默认的背景颜色 */ bgColor: gui.Color; /** * 编辑器默认的分割线颜色 */ lineColor: gui.Color; /** * 编辑器默认的文字颜色 */ textColor: gui.Color; createButton(autoSize?: boolean): gui.Button; createIconButton(flat?...
来源: Laya3.0_文档 发布时间: 20251010
... (图18-1) 在关节连线的编辑模式时,通过长按拖拽不同颜色锚点,就可以改变对应的刚体锚点位置。 当鼠标双击刚体和节点之外的位置后,关节连续锚点的编辑会自动取消。如需再次编辑,再次点击编辑关节连线按钮即可。 4...
来源: Laya3.0_文档 发布时间: 20251010