Obi warnings on build - Romahaaa - 13-02-2023
Hi,
I got 3 Obi packages in my project - rope/fluid/cloth but using only rope for now.
Each time on build (Unity 2021.3.11) I get these warnings
Code: Assets/Obi/Scripts/Common/Backends/Burst/DataStructures/NativeMultilevelGrid.cs(34,13): warning CS0618: 'UnsafeList' is obsolete: 'Untyped UnsafeList is deprecated, please use UnsafeList<T> instead. (RemovedAfter 2021-05-18)'
Assets/Obi/Scripts/Common/Backends/Burst/DataStructures/NativeMultilevelGrid.cs(39,32): warning CS0618: 'UnsafeList' is obsolete: 'Untyped UnsafeList is deprecated, please use UnsafeList<T> instead. (RemovedAfter 2021-05-18)'
Assets/Obi/Scripts/Common/Backends/Burst/Solver/BurstSolverImpl.cs(301,13): warning CS0618: 'NativeList<int>.CopyFrom(int[])' is obsolete: 'Please use `CopyFromNBC` from `Unity.Collections.NotBurstCompatible` namespace instead. (RemovedAfter 2021-06-22)'
Assets/Obi/Scripts/Fluid/Rendering/URP/ObiFluidRendererFeature.cs(214,24): warning CS0618: 'ProfilingSample' is obsolete: 'Please use ProfilingScope'
Assets/Obi/Scripts/Fluid/Rendering/URP/ObiFluidRendererFeature.cs(347,24): warning CS0618: 'ProfilingSample' is obsolete: 'Please use ProfilingScope'
Assets/Obi/Scripts/Common/DataStructures/ASDF/DFNode.cs(18,21): warning CS0414: The field 'DFNode.pad2' is assigned but its value is never used
Assets/Obi/Scripts/Common/DataStructures/ASDF/DFNode.cs(16,21): warning CS0414: The field 'DFNode.pad0' is assigned but its value is never used
Assets/Obi/Scripts/Cloth/Actors/ObiTearableCloth.cs(533,13): warning CS0414: The field 'ObiTearableCloth.ctr' is assigned but its value is never used
Assets/Obi/Scripts/Cloth/Actors/ObiTearableCloth.cs(532,13): warning CS0414: The field 'ObiTearableCloth.btch' is assigned but its value is never used
Assets/Obi/Scripts/Common/Utils/Attributes/VisibleIf.cs(16,21): warning CS0414: The field 'VisibleIf.fieldInfo' is assigned but its value is never used
Assets/Obi/Scripts/Common/DataStructures/ASDF/DFNode.cs(17,21): warning CS0414: The field 'DFNode.pad1' is assigned but its value is never used
Assets/Obi/Scripts/Common/Collisions/ColliderTrackers/Trackers3D/ObiTerrainShapeTracker.cs(9,16): warning CS0414: The field 'ObiTerrainShapeTracker.heightmapDataHasChanged' is assigned but its value is never used
Assets/Obi/Scripts/Common/Utils/Attributes/VisibleIf.cs(15,22): warning CS0414: The field 'VisibleIf.eventMethodInfo' is assigned but its value is never used
Assets/Obi/Samples/RopeAndRod/SampleResources/Scripts/RuntimeRopeGenerator.cs(11,14): warning CS0414: The field 'RuntimeRopeGenerator.pinnedParticle' is assigned but its value is never used
Assets/Obi/Scripts/Common/Backends/Burst/DataStructures/NativeMultilevelGrid.cs(34,13): warning CS0618: 'UnsafeList' is obsolete: 'Untyped UnsafeList is deprecated, please use UnsafeList<T> instead. (RemovedAfter 2021-05-18)'
Assets/Obi/Scripts/Common/Backends/Burst/DataStructures/NativeMultilevelGrid.cs(39,32): warning CS0618: 'UnsafeList' is obsolete: 'Untyped UnsafeList is deprecated, please use UnsafeList<T> instead. (RemovedAfter 2021-05-18)'
Assets/Obi/Scripts/Common/Backends/Burst/Solver/BurstSolverImpl.cs(301,13): warning CS0618: 'NativeList<int>.CopyFrom(int[])' is obsolete: 'Please use `CopyFromNBC` from `Unity.Collections.NotBurstCompatible` namespace instead. (RemovedAfter 2021-06-22)'
Assets/Obi/Scripts/Fluid/Rendering/URP/ObiFluidRendererFeature.cs(214,24): warning CS0618: 'ProfilingSample' is obsolete: 'Please use ProfilingScope'
Assets/Obi/Scripts/Fluid/Rendering/URP/ObiFluidRendererFeature.cs(347,24): warning CS0618: 'ProfilingSample' is obsolete: 'Please use ProfilingScope'
Assets/Obi/Scripts/Common/DataStructures/ASDF/DFNode.cs(18,21): warning CS0414: The field 'DFNode.pad2' is assigned but its value is never used
Assets/Obi/Scripts/Common/DataStructures/ASDF/DFNode.cs(16,21): warning CS0414: The field 'DFNode.pad0' is assigned but its value is never used
Assets/Obi/Scripts/Cloth/Actors/ObiTearableCloth.cs(533,13): warning CS0414: The field 'ObiTearableCloth.ctr' is assigned but its value is never used
Assets/Obi/Scripts/Cloth/Actors/ObiTearableCloth.cs(532,13): warning CS0414: The field 'ObiTearableCloth.btch' is assigned but its value is never used
Assets/Obi/Scripts/Common/Utils/Attributes/VisibleIf.cs(16,21): warning CS0414: The field 'VisibleIf.fieldInfo' is assigned but its value is never used
Assets/Obi/Scripts/Common/DataStructures/ASDF/DFNode.cs(17,21): warning CS0414: The field 'DFNode.pad1' is assigned but its value is never used
Assets/Obi/Scripts/Common/Collisions/ColliderTrackers/Trackers3D/ObiTerrainShapeTracker.cs(9,16): warning CS0414: The field 'ObiTerrainShapeTracker.heightmapDataHasChanged' is assigned but its value is never used
Assets/Obi/Scripts/Common/Utils/Attributes/VisibleIf.cs(15,22): warning CS0414: The field 'VisibleIf.eventMethodInfo' is assigned but its value is never used
Assets/Obi/Samples/RopeAndRod/SampleResources/Scripts/RuntimeRopeGenerator.cs(11,14): warning CS0414: The field 'RuntimeRopeGenerator.pinnedParticle' is assigned but its value is never used
Compiling shader "Obi/URP/Particles" pass "ParticleFwdBase" (vp)
Compiling shader "Obi/URP/Particles" pass "ParticleFwdBase" (fp)
Compiling shader "Obi/URP/Particles" pass "ShadowCaster" (vp)
Compiling shader "Obi/URP/Particles" pass "ShadowCaster" (fp)
Serialized binary data for shader Obi/URP/Particles in 0.00s
Shader warning in 'Obi/URP/Particles': 'BuildEllipsoidBillboard': implicit truncation of vector type at line 73 (on metal)
Shader warning in 'Obi/URP/Particles': 'BuildAuxiliaryNormalVectors': implicit truncation of vector type at line 81 (on metal)
Shader warning in 'Obi/URP/Particles': implicit truncation of vector type at line 109 (on metal)
Shader warning in 'Obi/URP/Particles': 'BuildEllipsoidBillboard': implicit truncation of vector type at line 186 (on metal)
Shader warning in 'Obi/URP/Particles': 'BuildAuxiliaryNormalVectors': implicit truncation of vector type at line 194 (on metal)
Shader warning in 'Obi/URP/Particles': 'ApplyShadowBias': implicit truncation of vector type at line 212 (on metal)
Shader warning in 'Obi/URP/Particles': 'TEXTURE2D': macro redefinition. Previous definition found at Assets/Obi/Resources/ObiMaterials/ObiUtils.cginc:8. at /Users/Romaha/Documents/Projects/2021/CatoScience/Library/PackageCache/com.unity.render-pipelines.core@12.1.7/ShaderLibrary/API/D3D11.hlsl(48)
Shader warning in 'Obi/URP/Particles': 'TEXTURE2D_FLOAT': macro redefinition. Previous definition found at Assets/Obi/Resources/ObiMaterials/ObiUtils.cginc:16. at /Users/Romaha/Documents/Projects/2021/CatoScience/Library/PackageCache/com.unity.render-pipelines.core@12.1.7/ShaderLibrary/API/D3D11.hlsl(54)
Shader warning in 'Obi/URP/Particles': 'TEXTURE2D_HALF': macro redefinition. Previous definition found at Assets/Obi/Resources/ObiMaterials/ObiUtils.cginc:12. at /Users/Romaha/Documents/Projects/2021/CatoScience/Library/PackageCache/com.unity.render-pipelines.core@12.1.7/ShaderLibrary/API/D3D11.hlsl(60)
Shader warning in 'Obi/URP/Particles': 'SAMPLER': macro redefinition. Previous definition found at Assets/Obi/Resources/ObiMaterials/ObiUtils.cginc:24. at /Users/Romaha/Documents/Projects/2021/CatoScience/Library/PackageCache/com.unity.render-pipelines.core@12.1.7/ShaderLibrary/API/D3D11.hlsl(75)
Shader warning in 'Obi/URP/Particles': 'SAMPLE_TEXTURE2D': macro redefinition. Previous definition found at Assets/Obi/Resources/ObiMaterials/ObiUtils.cginc:20. at /Users/Romaha/Documents/Projects/2021/CatoScience/Library/PackageCache/com.unity.render-pipelines.core@12.1.7/ShaderLibrary/API/D3D11.hlsl(118)
Shader warning in 'Obi/URP/Particles': 'TEXTURE2D': macro redefinition. Previous definition found at Assets/Obi/Resources/ObiMaterials/ObiUtils.cginc:8. at /Users/Romaha/Documents/Projects/2021/CatoScience/Library/PackageCache/com.unity.render-pipelines.core@12.1.7/ShaderLibrary/API/Metal.hlsl(39)
Shader warning in 'Obi/URP/Particles': 'TEXTURE2D_FLOAT': macro redefinition. Previous definition found at Assets/Obi/Resources/ObiMaterials/ObiUtils.cginc:16. at /Users/Romaha/Documents/Projects/2021/CatoScience/Library/PackageCache/com.unity.render-pipelines.core@12.1.7/ShaderLibrary/API/Metal.hlsl(45)
Shader warning in 'Obi/URP/Particles': 'TEXTURE2D_HALF': macro redefinition. Previous definition found at Assets/Obi/Resources/ObiMaterials/ObiUtils.cginc:12. at /Users/Romaha/Documents/Projects/2021/CatoScience/Library/PackageCache/com.unity.render-pipelines.core@12.1.7/ShaderLibrary/API/Metal.hlsl(51)
Shader warning in 'Obi/URP/Particles': 'SAMPLER': macro redefinition. Previous definition found at Assets/Obi/Resources/ObiMaterials/ObiUtils.cginc:24. at /Users/Romaha/Documents/Projects/2021/CatoScience/Library/PackageCache/com.unity.render-pipelines.core@12.1.7/ShaderLibrary/API/Metal.hlsl(66)
Shader warning in 'Obi/URP/Particles': 'SAMPLE_TEXTURE2D': macro redefinition. Previous definition found at Assets/Obi/Resources/ObiMaterials/ObiUtils.cginc:20. at /Users/Romaha/Documents/Projects/2021/CatoScience/Library/PackageCache/com.unity.render-pipelines.core@12.1.7/ShaderLibrary/API/Metal.hlsl(109)
Shader warning in 'Obi/URP/Particles': implicit truncation of vector type at Assets/Obi/Resources/ObiMaterials/URP/ObiLightingURP.cginc(10) (on metal)
Shader warning in 'Obi/URP/Particles': implicit truncation of vector type at Assets/Obi/Resources/ObiMaterials/URP/ObiLightingURP.cginc(17) (on metal)
Shader warning in 'Obi/URP/Particles': implicit truncation of vector type at Assets/Obi/Resources/ObiMaterials/URP/ObiLightingURP.cginc(30) (on metal)
Compiling shader "Obi/DistanceFieldSlice" pass "" (vp)
Compiling shader "Obi/DistanceFieldSlice" pass "" (fp)
Serialized binary data for shader Obi/DistanceFieldSlice in 0.00s
Compiling shader "Obi/Simple Particles" pass "ParticleFwdBase" (vp)
Compiling shader "Obi/Simple Particles" pass "ParticleFwdBase" (fp)
Compiling shader "Obi/Simple Particles" pass "ShadowCaster" (vp)
Compiling shader "Obi/Simple Particles" pass "ShadowCaster" (fp)
Serialized binary data for shader Obi/Simple Particles in 0.00s
Compiling shader "Obi/Fluid/Colors/FluidColorsBlend" pass "FluidColors" (vp)
Compiling shader "Obi/Fluid/Colors/FluidColorsBlend" pass "FluidColors" (fp)
Serialized binary data for shader Obi/Fluid/Colors/FluidColorsBlend in 0.00s
Compiling shader "Obi/URP/Simple Particles" pass "ParticleFwdBase" (vp)
Compiling shader "Obi/URP/Simple Particles" pass "ParticleFwdBase" (fp)
Compiling shader "Obi/URP/Simple Particles" pass "ShadowCaster" (vp)
Compiling shader "Obi/URP/Simple Particles" pass "ShadowCaster" (fp)
Serialized binary data for shader Obi/URP/Simple Particles in 0.00s
Shader warning in 'Obi/URP/Simple Particles': implicit truncation of vector type at line 61 (on metal)
Shader warning in 'Obi/URP/Simple Particles': implicit truncation of vector type at line 81 (on metal)
Shader warning in 'Obi/URP/Simple Particles': 'BillboardSphereNormals': implicit truncation of vector type at line 135 (on metal)
Shader warning in 'Obi/URP/Simple Particles': 'TEXTURE2D': macro redefinition. Previous definition found at Assets/Obi/Resources/ObiMaterials/ObiUtils.cginc:8. at /Users/Romaha/Documents/Projects/2021/CatoScience/Library/PackageCache/com.unity.render-pipelines.core@12.1.7/ShaderLibrary/API/D3D11.hlsl(48)
Shader warning in 'Obi/URP/Simple Particles': 'TEXTURE2D_FLOAT': macro redefinition. Previous definition found at Assets/Obi/Resources/ObiMaterials/ObiUtils.cginc:16. at /Users/Romaha/Documents/Projects/2021/CatoScience/Library/PackageCache/com.unity.render-pipelines.core@12.1.7/ShaderLibrary/API/D3D11.hlsl(54)
Shader warning in 'Obi/URP/Simple Particles': 'TEXTURE2D_HALF': macro redefinition. Previous definition found at Assets/Obi/Resources/ObiMaterials/ObiUtils.cginc:12. at /Users/Romaha/Documents/Projects/2021/CatoScience/Library/PackageCache/com.unity.render-pipelines.core@12.1.7/ShaderLibrary/API/D3D11.hlsl(60)
Shader warning in 'Obi/URP/Simple Particles': 'SAMPLER': macro redefinition. Previous definition found at Assets/Obi/Resources/ObiMaterials/ObiUtils.cginc:24. at /Users/Romaha/Documents/Projects/2021/CatoScience/Library/PackageCache/com.unity.render-pipelines.core@12.1.7/ShaderLibrary/API/D3D11.hlsl(75)
Shader warning in 'Obi/URP/Simple Particles': 'SAMPLE_TEXTURE2D': macro redefinition. Previous definition found at Assets/Obi/Resources/ObiMaterials/ObiUtils.cginc:20. at /Users/Romaha/Documents/Projects/2021/CatoScience/Library/PackageCache/com.unity.render-pipelines.core@12.1.7/ShaderLibrary/API/D3D11.hlsl(118)
Shader warning in 'Obi/URP/Simple Particles': 'TEXTURE2D': macro redefinition. Previous definition found at Assets/Obi/Resources/ObiMaterials/ObiUtils.cginc:8. at /Users/Romaha/Documents/Projects/2021/CatoScience/Library/PackageCache/com.unity.render-pipelines.core@12.1.7/ShaderLibrary/API/Metal.hlsl(39)
Shader warning in 'Obi/URP/Simple Particles': 'TEXTURE2D_FLOAT': macro redefinition. Previous definition found at Assets/Obi/Resources/ObiMaterials/ObiUtils.cginc:16. at /Users/Romaha/Documents/Projects/2021/CatoScience/Library/PackageCache/com.unity.render-pipelines.core@12.1.7/ShaderLibrary/API/Metal.hlsl(45)
Shader warning in 'Obi/URP/Simple Particles': 'TEXTURE2D_HALF': macro redefinition. Previous definition found at Assets/Obi/Resources/ObiMaterials/ObiUtils.cginc:12. at /Users/Romaha/Documents/Projects/2021/CatoScience/Library/PackageCache/com.unity.render-pipelines.core@12.1.7/ShaderLibrary/API/Metal.hlsl(51)
Shader warning in 'Obi/URP/Simple Particles': 'SAMPLER': macro redefinition. Previous definition found at Assets/Obi/Resources/ObiMaterials/ObiUtils.cginc:24. at /Users/Romaha/Documents/Projects/2021/CatoScience/Library/PackageCache/com.unity.render-pipelines.core@12.1.7/ShaderLibrary/API/Metal.hlsl(66)
Shader warning in 'Obi/URP/Simple Particles': 'SAMPLE_TEXTURE2D': macro redefinition. Previous definition found at Assets/Obi/Resources/ObiMaterials/ObiUtils.cginc:20. at /Users/Romaha/Documents/Projects/2021/CatoScience/Library/PackageCache/com.unity.render-pipelines.core@12.1.7/ShaderLibrary/API/Metal.hlsl(109)
Shader warning in 'Obi/URP/Simple Particles': implicit truncation of vector type at Assets/Obi/Resources/ObiMaterials/URP/ObiLightingURP.cginc(10) (on metal)
Shader warning in 'Obi/URP/Simple Particles': implicit truncation of vector type at Assets/Obi/Resources/ObiMaterials/URP/ObiLightingURP.cginc(17) (on metal)
Shader warning in 'Obi/URP/Simple Particles': implicit truncation of vector type at Assets/Obi/Resources/ObiMaterials/URP/ObiLightingURP.cginc(30) (on metal)
Compiling shader "Obi/Fluid/FluidShading" pass "FluidShader" (vp)
Compiling shader "Obi/Fluid/FluidShading" pass "FluidShader" (fp)
Serialized binary data for shader Obi/Fluid/FluidShading in 0.00s
Compiling shader "Obi/URP/Fluid/FluidShading" pass "FluidShader" (vp)
Compiling shader "Obi/URP/Fluid/FluidShading" pass "FluidShader" (fp)
Serialized binary data for shader Obi/URP/Fluid/FluidShading in 0.00s
Shader warning in 'Obi/URP/Fluid/FluidShading': implicit truncation of vector type at line 172 (on metal)
Shader warning in 'Obi/URP/Fluid/FluidShading': implicit truncation of vector type at line 189 (on metal)
Shader warning in 'Obi/URP/Fluid/FluidShading': implicit truncation of vector type at Assets/Obi/Resources/ObiMaterials/URP/ObiFluidsURP.cginc(56) (on metal)
Shader warning in 'Obi/URP/Fluid/FluidShading': implicit truncation of vector type at Assets/Obi/Resources/ObiMaterials/URP/ObiLightingURP.cginc(10) (on metal)
Shader warning in 'Obi/URP/Fluid/FluidShading': implicit truncation of vector type at Assets/Obi/Resources/ObiMaterials/URP/ObiLightingURP.cginc(17) (on metal)
Shader warning in 'Obi/URP/Fluid/FluidShading': implicit truncation of vector type at Assets/Obi/Resources/ObiMaterials/URP/ObiLightingURP.cginc(30) (on metal)
Compressed shader 'Obi/URP/Fluid/FluidShading' on metal from 1.37MB to 0.05MB
Compressed shader 'Obi/URP/Fluid/FluidShading' in 0.01s
Can I just ignore it or it's need to pay attention?
RE: Obi warnings on build - josemendez - 13-02-2023
(13-02-2023, 03:23 AM)Romahaaa Wrote: Hi,
I got 3 Obi packages in my project - rope/fluid/cloth but using only rope for now.
Each time on build (Unity 2021.3.11) I get these warnings
Code: Assets/Obi/Scripts/Common/Backends/Burst/DataStructures/NativeMultilevelGrid.cs(34,13): warning CS0618: 'UnsafeList' is obsolete: 'Untyped UnsafeList is deprecated, please use UnsafeList<T> instead. (RemovedAfter 2021-05-18)'
Assets/Obi/Scripts/Common/Backends/Burst/DataStructures/NativeMultilevelGrid.cs(39,32): warning CS0618: 'UnsafeList' is obsolete: 'Untyped UnsafeList is deprecated, please use UnsafeList<T> instead. (RemovedAfter 2021-05-18)'
Assets/Obi/Scripts/Common/Backends/Burst/Solver/BurstSolverImpl.cs(301,13): warning CS0618: 'NativeList<int>.CopyFrom(int[])' is obsolete: 'Please use `CopyFromNBC` from `Unity.Collections.NotBurstCompatible` namespace instead. (RemovedAfter 2021-06-22)'
Assets/Obi/Scripts/Fluid/Rendering/URP/ObiFluidRendererFeature.cs(214,24): warning CS0618: 'ProfilingSample' is obsolete: 'Please use ProfilingScope'
Assets/Obi/Scripts/Fluid/Rendering/URP/ObiFluidRendererFeature.cs(347,24): warning CS0618: 'ProfilingSample' is obsolete: 'Please use ProfilingScope'
Assets/Obi/Scripts/Common/DataStructures/ASDF/DFNode.cs(18,21): warning CS0414: The field 'DFNode.pad2' is assigned but its value is never used
Assets/Obi/Scripts/Common/DataStructures/ASDF/DFNode.cs(16,21): warning CS0414: The field 'DFNode.pad0' is assigned but its value is never used
Assets/Obi/Scripts/Cloth/Actors/ObiTearableCloth.cs(533,13): warning CS0414: The field 'ObiTearableCloth.ctr' is assigned but its value is never used
Assets/Obi/Scripts/Cloth/Actors/ObiTearableCloth.cs(532,13): warning CS0414: The field 'ObiTearableCloth.btch' is assigned but its value is never used
Assets/Obi/Scripts/Common/Utils/Attributes/VisibleIf.cs(16,21): warning CS0414: The field 'VisibleIf.fieldInfo' is assigned but its value is never used
Assets/Obi/Scripts/Common/DataStructures/ASDF/DFNode.cs(17,21): warning CS0414: The field 'DFNode.pad1' is assigned but its value is never used
Assets/Obi/Scripts/Common/Collisions/ColliderTrackers/Trackers3D/ObiTerrainShapeTracker.cs(9,16): warning CS0414: The field 'ObiTerrainShapeTracker.heightmapDataHasChanged' is assigned but its value is never used
Assets/Obi/Scripts/Common/Utils/Attributes/VisibleIf.cs(15,22): warning CS0414: The field 'VisibleIf.eventMethodInfo' is assigned but its value is never used
Assets/Obi/Samples/RopeAndRod/SampleResources/Scripts/RuntimeRopeGenerator.cs(11,14): warning CS0414: The field 'RuntimeRopeGenerator.pinnedParticle' is assigned but its value is never used
Assets/Obi/Scripts/Common/Backends/Burst/DataStructures/NativeMultilevelGrid.cs(34,13): warning CS0618: 'UnsafeList' is obsolete: 'Untyped UnsafeList is deprecated, please use UnsafeList<T> instead. (RemovedAfter 2021-05-18)'
Assets/Obi/Scripts/Common/Backends/Burst/DataStructures/NativeMultilevelGrid.cs(39,32): warning CS0618: 'UnsafeList' is obsolete: 'Untyped UnsafeList is deprecated, please use UnsafeList<T> instead. (RemovedAfter 2021-05-18)'
Assets/Obi/Scripts/Common/Backends/Burst/Solver/BurstSolverImpl.cs(301,13): warning CS0618: 'NativeList<int>.CopyFrom(int[])' is obsolete: 'Please use `CopyFromNBC` from `Unity.Collections.NotBurstCompatible` namespace instead. (RemovedAfter 2021-06-22)'
Assets/Obi/Scripts/Fluid/Rendering/URP/ObiFluidRendererFeature.cs(214,24): warning CS0618: 'ProfilingSample' is obsolete: 'Please use ProfilingScope'
Assets/Obi/Scripts/Fluid/Rendering/URP/ObiFluidRendererFeature.cs(347,24): warning CS0618: 'ProfilingSample' is obsolete: 'Please use ProfilingScope'
Assets/Obi/Scripts/Common/DataStructures/ASDF/DFNode.cs(18,21): warning CS0414: The field 'DFNode.pad2' is assigned but its value is never used
Assets/Obi/Scripts/Common/DataStructures/ASDF/DFNode.cs(16,21): warning CS0414: The field 'DFNode.pad0' is assigned but its value is never used
Assets/Obi/Scripts/Cloth/Actors/ObiTearableCloth.cs(533,13): warning CS0414: The field 'ObiTearableCloth.ctr' is assigned but its value is never used
Assets/Obi/Scripts/Cloth/Actors/ObiTearableCloth.cs(532,13): warning CS0414: The field 'ObiTearableCloth.btch' is assigned but its value is never used
Assets/Obi/Scripts/Common/Utils/Attributes/VisibleIf.cs(16,21): warning CS0414: The field 'VisibleIf.fieldInfo' is assigned but its value is never used
Assets/Obi/Scripts/Common/DataStructures/ASDF/DFNode.cs(17,21): warning CS0414: The field 'DFNode.pad1' is assigned but its value is never used
Assets/Obi/Scripts/Common/Collisions/ColliderTrackers/Trackers3D/ObiTerrainShapeTracker.cs(9,16): warning CS0414: The field 'ObiTerrainShapeTracker.heightmapDataHasChanged' is assigned but its value is never used
Assets/Obi/Scripts/Common/Utils/Attributes/VisibleIf.cs(15,22): warning CS0414: The field 'VisibleIf.eventMethodInfo' is assigned but its value is never used
Assets/Obi/Samples/RopeAndRod/SampleResources/Scripts/RuntimeRopeGenerator.cs(11,14): warning CS0414: The field 'RuntimeRopeGenerator.pinnedParticle' is assigned but its value is never used
Compiling shader "Obi/URP/Particles" pass "ParticleFwdBase" (vp)
Compiling shader "Obi/URP/Particles" pass "ParticleFwdBase" (fp)
Compiling shader "Obi/URP/Particles" pass "ShadowCaster" (vp)
Compiling shader "Obi/URP/Particles" pass "ShadowCaster" (fp)
Serialized binary data for shader Obi/URP/Particles in 0.00s
Shader warning in 'Obi/URP/Particles': 'BuildEllipsoidBillboard': implicit truncation of vector type at line 73 (on metal)
Shader warning in 'Obi/URP/Particles': 'BuildAuxiliaryNormalVectors': implicit truncation of vector type at line 81 (on metal)
Shader warning in 'Obi/URP/Particles': implicit truncation of vector type at line 109 (on metal)
Shader warning in 'Obi/URP/Particles': 'BuildEllipsoidBillboard': implicit truncation of vector type at line 186 (on metal)
Shader warning in 'Obi/URP/Particles': 'BuildAuxiliaryNormalVectors': implicit truncation of vector type at line 194 (on metal)
Shader warning in 'Obi/URP/Particles': 'ApplyShadowBias': implicit truncation of vector type at line 212 (on metal)
Shader warning in 'Obi/URP/Particles': 'TEXTURE2D': macro redefinition. Previous definition found at Assets/Obi/Resources/ObiMaterials/ObiUtils.cginc:8. at /Users/Romaha/Documents/Projects/2021/CatoScience/Library/PackageCache/com.unity.render-pipelines.core@12.1.7/ShaderLibrary/API/D3D11.hlsl(48)
Shader warning in 'Obi/URP/Particles': 'TEXTURE2D_FLOAT': macro redefinition. Previous definition found at Assets/Obi/Resources/ObiMaterials/ObiUtils.cginc:16. at /Users/Romaha/Documents/Projects/2021/CatoScience/Library/PackageCache/com.unity.render-pipelines.core@12.1.7/ShaderLibrary/API/D3D11.hlsl(54)
Shader warning in 'Obi/URP/Particles': 'TEXTURE2D_HALF': macro redefinition. Previous definition found at Assets/Obi/Resources/ObiMaterials/ObiUtils.cginc:12. at /Users/Romaha/Documents/Projects/2021/CatoScience/Library/PackageCache/com.unity.render-pipelines.core@12.1.7/ShaderLibrary/API/D3D11.hlsl(60)
Shader warning in 'Obi/URP/Particles': 'SAMPLER': macro redefinition. Previous definition found at Assets/Obi/Resources/ObiMaterials/ObiUtils.cginc:24. at /Users/Romaha/Documents/Projects/2021/CatoScience/Library/PackageCache/com.unity.render-pipelines.core@12.1.7/ShaderLibrary/API/D3D11.hlsl(75)
Shader warning in 'Obi/URP/Particles': 'SAMPLE_TEXTURE2D': macro redefinition. Previous definition found at Assets/Obi/Resources/ObiMaterials/ObiUtils.cginc:20. at /Users/Romaha/Documents/Projects/2021/CatoScience/Library/PackageCache/com.unity.render-pipelines.core@12.1.7/ShaderLibrary/API/D3D11.hlsl(118)
Shader warning in 'Obi/URP/Particles': 'TEXTURE2D': macro redefinition. Previous definition found at Assets/Obi/Resources/ObiMaterials/ObiUtils.cginc:8. at /Users/Romaha/Documents/Projects/2021/CatoScience/Library/PackageCache/com.unity.render-pipelines.core@12.1.7/ShaderLibrary/API/Metal.hlsl(39)
Shader warning in 'Obi/URP/Particles': 'TEXTURE2D_FLOAT': macro redefinition. Previous definition found at Assets/Obi/Resources/ObiMaterials/ObiUtils.cginc:16. at /Users/Romaha/Documents/Projects/2021/CatoScience/Library/PackageCache/com.unity.render-pipelines.core@12.1.7/ShaderLibrary/API/Metal.hlsl(45)
Shader warning in 'Obi/URP/Particles': 'TEXTURE2D_HALF': macro redefinition. Previous definition found at Assets/Obi/Resources/ObiMaterials/ObiUtils.cginc:12. at /Users/Romaha/Documents/Projects/2021/CatoScience/Library/PackageCache/com.unity.render-pipelines.core@12.1.7/ShaderLibrary/API/Metal.hlsl(51)
Shader warning in 'Obi/URP/Particles': 'SAMPLER': macro redefinition. Previous definition found at Assets/Obi/Resources/ObiMaterials/ObiUtils.cginc:24. at /Users/Romaha/Documents/Projects/2021/CatoScience/Library/PackageCache/com.unity.render-pipelines.core@12.1.7/ShaderLibrary/API/Metal.hlsl(66)
Shader warning in 'Obi/URP/Particles': 'SAMPLE_TEXTURE2D': macro redefinition. Previous definition found at Assets/Obi/Resources/ObiMaterials/ObiUtils.cginc:20. at /Users/Romaha/Documents/Projects/2021/CatoScience/Library/PackageCache/com.unity.render-pipelines.core@12.1.7/ShaderLibrary/API/Metal.hlsl(109)
Shader warning in 'Obi/URP/Particles': implicit truncation of vector type at Assets/Obi/Resources/ObiMaterials/URP/ObiLightingURP.cginc(10) (on metal)
Shader warning in 'Obi/URP/Particles': implicit truncation of vector type at Assets/Obi/Resources/ObiMaterials/URP/ObiLightingURP.cginc(17) (on metal)
Shader warning in 'Obi/URP/Particles': implicit truncation of vector type at Assets/Obi/Resources/ObiMaterials/URP/ObiLightingURP.cginc(30) (on metal)
Compiling shader "Obi/DistanceFieldSlice" pass "" (vp)
Compiling shader "Obi/DistanceFieldSlice" pass "" (fp)
Serialized binary data for shader Obi/DistanceFieldSlice in 0.00s
Compiling shader "Obi/Simple Particles" pass "ParticleFwdBase" (vp)
Compiling shader "Obi/Simple Particles" pass "ParticleFwdBase" (fp)
Compiling shader "Obi/Simple Particles" pass "ShadowCaster" (vp)
Compiling shader "Obi/Simple Particles" pass "ShadowCaster" (fp)
Serialized binary data for shader Obi/Simple Particles in 0.00s
Compiling shader "Obi/Fluid/Colors/FluidColorsBlend" pass "FluidColors" (vp)
Compiling shader "Obi/Fluid/Colors/FluidColorsBlend" pass "FluidColors" (fp)
Serialized binary data for shader Obi/Fluid/Colors/FluidColorsBlend in 0.00s
Compiling shader "Obi/URP/Simple Particles" pass "ParticleFwdBase" (vp)
Compiling shader "Obi/URP/Simple Particles" pass "ParticleFwdBase" (fp)
Compiling shader "Obi/URP/Simple Particles" pass "ShadowCaster" (vp)
Compiling shader "Obi/URP/Simple Particles" pass "ShadowCaster" (fp)
Serialized binary data for shader Obi/URP/Simple Particles in 0.00s
Shader warning in 'Obi/URP/Simple Particles': implicit truncation of vector type at line 61 (on metal)
Shader warning in 'Obi/URP/Simple Particles': implicit truncation of vector type at line 81 (on metal)
Shader warning in 'Obi/URP/Simple Particles': 'BillboardSphereNormals': implicit truncation of vector type at line 135 (on metal)
Shader warning in 'Obi/URP/Simple Particles': 'TEXTURE2D': macro redefinition. Previous definition found at Assets/Obi/Resources/ObiMaterials/ObiUtils.cginc:8. at /Users/Romaha/Documents/Projects/2021/CatoScience/Library/PackageCache/com.unity.render-pipelines.core@12.1.7/ShaderLibrary/API/D3D11.hlsl(48)
Shader warning in 'Obi/URP/Simple Particles': 'TEXTURE2D_FLOAT': macro redefinition. Previous definition found at Assets/Obi/Resources/ObiMaterials/ObiUtils.cginc:16. at /Users/Romaha/Documents/Projects/2021/CatoScience/Library/PackageCache/com.unity.render-pipelines.core@12.1.7/ShaderLibrary/API/D3D11.hlsl(54)
Shader warning in 'Obi/URP/Simple Particles': 'TEXTURE2D_HALF': macro redefinition. Previous definition found at Assets/Obi/Resources/ObiMaterials/ObiUtils.cginc:12. at /Users/Romaha/Documents/Projects/2021/CatoScience/Library/PackageCache/com.unity.render-pipelines.core@12.1.7/ShaderLibrary/API/D3D11.hlsl(60)
Shader warning in 'Obi/URP/Simple Particles': 'SAMPLER': macro redefinition. Previous definition found at Assets/Obi/Resources/ObiMaterials/ObiUtils.cginc:24. at /Users/Romaha/Documents/Projects/2021/CatoScience/Library/PackageCache/com.unity.render-pipelines.core@12.1.7/ShaderLibrary/API/D3D11.hlsl(75)
Shader warning in 'Obi/URP/Simple Particles': 'SAMPLE_TEXTURE2D': macro redefinition. Previous definition found at Assets/Obi/Resources/ObiMaterials/ObiUtils.cginc:20. at /Users/Romaha/Documents/Projects/2021/CatoScience/Library/PackageCache/com.unity.render-pipelines.core@12.1.7/ShaderLibrary/API/D3D11.hlsl(118)
Shader warning in 'Obi/URP/Simple Particles': 'TEXTURE2D': macro redefinition. Previous definition found at Assets/Obi/Resources/ObiMaterials/ObiUtils.cginc:8. at /Users/Romaha/Documents/Projects/2021/CatoScience/Library/PackageCache/com.unity.render-pipelines.core@12.1.7/ShaderLibrary/API/Metal.hlsl(39)
Shader warning in 'Obi/URP/Simple Particles': 'TEXTURE2D_FLOAT': macro redefinition. Previous definition found at Assets/Obi/Resources/ObiMaterials/ObiUtils.cginc:16. at /Users/Romaha/Documents/Projects/2021/CatoScience/Library/PackageCache/com.unity.render-pipelines.core@12.1.7/ShaderLibrary/API/Metal.hlsl(45)
Shader warning in 'Obi/URP/Simple Particles': 'TEXTURE2D_HALF': macro redefinition. Previous definition found at Assets/Obi/Resources/ObiMaterials/ObiUtils.cginc:12. at /Users/Romaha/Documents/Projects/2021/CatoScience/Library/PackageCache/com.unity.render-pipelines.core@12.1.7/ShaderLibrary/API/Metal.hlsl(51)
Shader warning in 'Obi/URP/Simple Particles': 'SAMPLER': macro redefinition. Previous definition found at Assets/Obi/Resources/ObiMaterials/ObiUtils.cginc:24. at /Users/Romaha/Documents/Projects/2021/CatoScience/Library/PackageCache/com.unity.render-pipelines.core@12.1.7/ShaderLibrary/API/Metal.hlsl(66)
Shader warning in 'Obi/URP/Simple Particles': 'SAMPLE_TEXTURE2D': macro redefinition. Previous definition found at Assets/Obi/Resources/ObiMaterials/ObiUtils.cginc:20. at /Users/Romaha/Documents/Projects/2021/CatoScience/Library/PackageCache/com.unity.render-pipelines.core@12.1.7/ShaderLibrary/API/Metal.hlsl(109)
Shader warning in 'Obi/URP/Simple Particles': implicit truncation of vector type at Assets/Obi/Resources/ObiMaterials/URP/ObiLightingURP.cginc(10) (on metal)
Shader warning in 'Obi/URP/Simple Particles': implicit truncation of vector type at Assets/Obi/Resources/ObiMaterials/URP/ObiLightingURP.cginc(17) (on metal)
Shader warning in 'Obi/URP/Simple Particles': implicit truncation of vector type at Assets/Obi/Resources/ObiMaterials/URP/ObiLightingURP.cginc(30) (on metal)
Compiling shader "Obi/Fluid/FluidShading" pass "FluidShader" (vp)
Compiling shader "Obi/Fluid/FluidShading" pass "FluidShader" (fp)
Serialized binary data for shader Obi/Fluid/FluidShading in 0.00s
Compiling shader "Obi/URP/Fluid/FluidShading" pass "FluidShader" (vp)
Compiling shader "Obi/URP/Fluid/FluidShading" pass "FluidShader" (fp)
Serialized binary data for shader Obi/URP/Fluid/FluidShading in 0.00s
Shader warning in 'Obi/URP/Fluid/FluidShading': implicit truncation of vector type at line 172 (on metal)
Shader warning in 'Obi/URP/Fluid/FluidShading': implicit truncation of vector type at line 189 (on metal)
Shader warning in 'Obi/URP/Fluid/FluidShading': implicit truncation of vector type at Assets/Obi/Resources/ObiMaterials/URP/ObiFluidsURP.cginc(56) (on metal)
Shader warning in 'Obi/URP/Fluid/FluidShading': implicit truncation of vector type at Assets/Obi/Resources/ObiMaterials/URP/ObiLightingURP.cginc(10) (on metal)
Shader warning in 'Obi/URP/Fluid/FluidShading': implicit truncation of vector type at Assets/Obi/Resources/ObiMaterials/URP/ObiLightingURP.cginc(17) (on metal)
Shader warning in 'Obi/URP/Fluid/FluidShading': implicit truncation of vector type at Assets/Obi/Resources/ObiMaterials/URP/ObiLightingURP.cginc(30) (on metal)
Compressed shader 'Obi/URP/Fluid/FluidShading' on metal from 1.37MB to 0.05MB
Compressed shader 'Obi/URP/Fluid/FluidShading' in 0.01s
Can I just ignore it or it's need to pay attention?
Hi,
This can be safely ignored, the warning is just letting you know that the non-generic version of UnsafeList has been deprecated. Latest version of the Collections package has it entirely replaced with a generic version.
If you want to get rid of the warning, you can open up Obi/Scripts/Common/Backends/Burst/DataStructures/NativeMultilevelGrid.cs and replace the Cell<K> struct inside it with this one:
Code: public struct Cell<K> where K : unmanaged, IEquatable<K>
{
int4 coords;
UnsafeList<K> contents;
public Cell(int4 coords)
{
this.coords = coords;
contents = new UnsafeList<K>(4,Allocator.Persistent);
}
public int4 Coords
{
get { return coords; }
}
public int Length
{
get { return contents.Length; }
}
public void* ContentsPointer
{
get { return contents.Ptr; }
}
public K this[int index]
{
get
{
return contents.ElementAt(index);
}
}
public void Add(K entity)
{
contents.Add(entity);
}
public bool Remove(K entity)
{
int index = contents.IndexOf(entity);
if (index >= 0)
{
contents.RemoveAtSwapBack(index);
return true;
}
return false;
}
public void Dispose()
{
contents.Dispose();
}
}
kind regards,
|