- Home /
Question by
penguin137 · May 13, 2021 at 05:22 PM ·
inspectorlaghide
Variable lagging inspector even while hidden
A string array I made that contains 1,000,000 variables is lagging the inspector (which I expected). However, when I hid it with [HideInInspector] it still causes lag. Is there a way I can fix this? It isn't a major issue but I'd still like to avoid it.
Comment
Answer by Ytsorf · May 13, 2021 at 07:30 PM
Hi there, did you try to make the array Private?
The inspector still lags when I interact with the object
Your answer
Follow this Question
Related Questions
Error while using SerializeField and HideInInspector tags 0 Answers
Unity lag on selection 0 Answers
Hide null scripts in the inspector 1 Answer