- Home /
What does it mean? : Resource ID out of range in GetResource
I'm getting this error continuously (even when not running the game) but there is no Google-solution.
@grimmy I just started getting it myself and been trying to figure it out and no luck finding a solution as of yet. For me, it occurs while doing a test run in the editor or a build. At first everything is ok but seems to happen after an amount of time and once it happens, it's just starts strea$$anonymous$$g those errors constantly, even if I stop playback.
I'm perfor$$anonymous$$g another test verify I've isolated my problem but wanted to ask what version of Unity you were using and if you happened to be using the Post Processing Stack v2 in your project?
I believe in my case the problem could be related to the screen space reflections portion of the post process stack v2. The memory profiler shows a constant increase in textures and total object counts that never seem to go down while this is enabled. This behavior stops once I disable the screen space reflections. If you are using this effect, maybe turn it off and see if that stops it.
Yes, I am using Post Processing Stack v2. I'm using 2018.2.3f1 (64-bit). Thanks for the heads up, I will give it a go! Cheers
Same here, it simply starts after some time and I have to restart
Answer by redwyre · Jan 23, 2019 at 03:39 PM
This issue suggests it's an issue with RenderTargets not getting cleaned up properly: https://github.com/Unity-Technologies/PostProcessing/issues/643
You can also make sure you aren't redundantly re-creating render targets (when they are the same width and height)
Answer by a436t4ataf · Jul 01, 2020 at 02:01 PM
Common cause seems to be: Unity's RenderTexture class has an annoying bug, if you call .Release() ... it simply doesn't work properly if the RT was created using RenderTexture.GetTemporary()
Instead, you must use RenderTexture.ReleaseTemporary() - the docs don't explicitly state this, it's inferred.
Your answer
![](https://koobas.hobune.stream/wayback/20220612173016im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Help! Does Unity3D can load resources lazily? 3 Answers
The best way to load a bunch o resources 1 Answer
How to load nested prefab? 1 Answer
A question about resource config for android! 0 Answers
How do I load my txt file in iOS 1 Answer