Hi, I just updated my Unity project to 2021.3.4f1 and now have a problematic bug. My Inspector fields are behind the “Add Component” button and cannot be clicked (I guess because they’re behind another layer).
Here’s the Script
using UnityEngine;
[System.Serializable]
public class GenerationSettings
{
[Header("World Generation Descriptors")]
//world generation descriptors
public string planetDescriptionFileName;
public Material material;
[Header("Render Detail Settings")]
//Render detail settings
public int chunkProcessQueueSize = 1000;
public float maximumRenderDistance = 1000;
public int baseChunkSize = 64;
public float baseChunkResolution = 2;
public int chunkCountBeforeScale = 2;
[Header("CPU GPU Balance")]
//cpu gpu balance
public bool getMaterialLodOnGpu = false;
public int switchToGpuLodAtCellCount = 100;
public bool filterCellsAndComputeVertexNormalOnGpu = false;
[Header("Mesh Assignment")]
//Settings for how quickly new meshes are allocated to be rendered to the gpu
public int meshDataArrayMaxSize;
[Header("Runtime Controls")]
//runtime controls
public bool updateChunks = true;
public bool renderSeams = true;
}
public class PlanetsGenerationSettings : MonoBehaviour
{
[Header("Compute Shader for checking Material Booleans")]
public ComputeShader ChunkMaterialsShader;
[Header("UI Prefabs for Generation Status")]
public GameObject PlanetGenInfoUIPrefab;
[Header("GIZMOS")]
public bool chunkSizePositionBoxes;
[Header("Worlds to Create at Runtime")]
public GenerationSettings[] planetsSettings;
}
Not sure how to get around this, lol, but it’s driving me crazy. I even tried and Editor script but still encountered the same issue. Any thoughts?
Thanks!