DynamicAlcove.cs
Dynamically creates a 3D alcove environment around the HologramCamera in Unity. Supports runtime updates, adjustable dimensions, and subdivided meshes for improved visual quality.
Fields & Properties
float borderThickness
float backWallDistance
Material boxBGMaterial
int meshSubdivisionsX
int meshSubdivisionsY
bool showInHierarchy
Methods
void RecreateBox()
void CreateBox(float cameraSize, float screenAspect)
void DestroyBox()
GameObject CreateWall(string name, Material material, Transform parent)
Mesh CreateSubdividedQuad(Vector3 bottomLeft, Vector3 bottomRight, Vector3 topLeft, Vector3 topRight, int subdivisionsX, int subdivisionsY )
Last updated
Was this helpful?