Unity-Technologies / FPSSample

A first person multiplayer shooter example project in Unity
https://unity.com/fps-sample
Other
4.88k stars 1.84k forks source link

Shader compile errors on - cant build #86

Open darvin opened 5 years ago

darvin commented 5 years ago

unity 2018.3.8f1

git lfs checkouted current master

Shader error in 'Emissive/GlowingCore': invalid subscript 'positionRWS' at Packages/com.unity.render-pipelines.high-definition/Runtime/RenderPipeline/ShaderPass/ShaderPassVelocity.hlsl(117) (on d3d11)

Compiling Vertex program with UNITY_PASS_MOTIONVECTORS
Platform defines: UNITY_ENABLE_REFLECTION_BUFFERS UNITY_USE_DITHER_MASK_FOR_ALPHABLENDED_SHADOWS UNITY_PBS_USE_BRDF1 UNITY_SPECCUBE_BOX_PROJECTION UNITY_SPECCUBE_BLENDING UNITY_ENABLE_DETAIL_NORMALMAP SHADER_API_DESKTOP UNITY_LIGHT_PROBE_PROXY_VOLUME UNITY_LIGHTMAP_FULL_HDR
You are trying to replace or create a Prefab from the instance 'CapsulePrimitive' that references a missing script. This is not allowed.
Please change the script or remove it from the GameObject.
UnityEditor.PrefabUtility:SavePrefabAsset(GameObject)
ReplicatedEntity:SetAssetGUID(String) (at Assets/Scripts/Game/Modules/ReplicatedEntity/ReplicatedEntity.cs:97)
ReplicatedEntityRegistry:PrepareForBuild() (at Assets/Scripts/Game/Modules/ReplicatedEntity/ReplicatedEntityRegistry.cs:98)
BundledResourceBuilder:PrepareRegistries() (at Assets/Scripts/Utils/BundledResource/Editor/BundledResourceBuilder.cs:52)
BundledResourceBuilder:BuildBundles(String, BuildTarget, BuildAssetBundleOptions) (at Assets/Scripts/Utils/BundledResource/Editor/BundledResourceBuilder.cs:126)
BuildTools:BuildBundles(String, BuildTarget, Boolean, Boolean, Boolean, List`1) (at Assets/Scripts/EditorTools/Editor/BuildTools.cs:248)
BuildWindow:DrawBuildTools() (at Assets/Scripts/EditorTools/Editor/BuildWindow.cs:298)
BuildWindow:OnGUI() (at Assets/Scripts/EditorTools/Editor/BuildWindow.cs:145)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
darvin commented 5 years ago

com.unity.render-pipelines.high-definition is 4.6.0

lengors commented 4 years ago

I get the same error, found any fix?

xinbot commented 4 weeks ago

For the second error. You can open the CapsulePrimitive prefab and delete the missing script component. I found this error in the Editor, but the builded game runs without this problem.

xinbot commented 4 weeks ago

For the first error. You can upgrade "com.unity.render-pipelines.core", "com.unity.render-pipelines.high-definition" and "com.unity.shadergraph" to version 4.8.0-preview.