“Where’s the skybox settings in Unity?”

huangapple go评论54阅读模式
英文:

Where's the skybox settings un Unity?

问题

光照设置
我找不到天空盒设置的位置,我看了教程,他们都说在光照设置里,但我这里没有找到。

环境设置里也没有。Unity 版本是 2021.3.21。

环境设置
我尝试创建新的天空盒,但找不到放置它的地方。我尝试更改光照设置和配置文件,但没有效果。

英文:

Lighting settings
I can't find the skybox settings anywhere, I've watched tutorials, and all of they say it's in the Lighting settings, but there's nothing there for me.

There's nothing in the Environment settings either. Unity version is 2021.3.21

Environment settings
I tried creating a new skybox, but there's nowhere to put it. I tried changing the lighting settings, profile, and nothing.

答案1

得分: 0

如果你选择的是HDRP渲染管线,那么在项目设置中 > 图形 > HDRP全局设置,你可以配置HDRP天空。

如果选择其他渲染管线,在其他 > 灯光 > 环境 > 天空盒材质和环境天空盒可以设置。可以使用 窗口 > 渲染 > 灯光 打开该菜单。你的相机组件必须将Clear Flags设置为Skybox “Where’s the skybox settings in Unity?”

你也可以通过代码来设置你的天空盒,像这样:

//为你的天空盒创建字段
[SerializeField] private Material skybox;

//在Start方法中设置它
public void Start()
{
    RenderSettings.skybox = skybox;
}
英文:

Depends on which render pipeline you have chosen.
If it is HDRP, then in Project Settings > Graphics > HDRP Global Settings you will be able to configure HDRP Sky.
If Other > Lighting > Environment > Skybox Material and Environment skybox can be set. Use Window > Rendering > Lighting to open that menu. Your Camera component must set Clear Flags to Skybox;)

You can set your skybox from code also like that:

//Create field for your skybox
[SerializeField] private Material skybox;

//and set it on Start method like that
public void Start()
{
    RenderSettings.skybox = skybox;
}

huangapple
  • 本文由 发表于 2023年4月4日 08:29:14
  • 转载请务必保留本文链接:https://go.coder-hub.com/75924647.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定