Skip to content

Incorrect light maps being assigned on instantiation #67

Description

@MarcJamesIO

This script no longer works, unfortunately - when dynamically instantiating light-mapped prefabs using the method in the ReadMe, the incorrect lightmap is sometimes assigned to the prefab (with the incorrect lightmap index.)

image

The two lighter corridors are dragged from the project explorer into the scene with correct lightmaps. The two darker corridors are the same prefab and are instantiated at runtime. They have the incorrect lightmap attached to them.

The correct prefab lightmap:

image

The instantiated at runtime lightmap:

image

Unity 2022.3.9f URP

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions