wrld3d / unity-api

Issue tracking for the WRLD Unity SDK
28 stars 8 forks source link

Add map collapse feature to Api #88

Closed jonty-dawson closed 3 years ago

jonty-dawson commented 6 years ago

It would be desirable to add environment flattening to the Api (eg see #87).

Internally, this is exposing C++ api EegeoRenderingApi::SetMapCollapsed

jonty-dawson commented 6 years ago

Actually, something similar already exists - https://docs.wrld3d.com/unity/latest/docs/types/Wrld.Space.EnvironmentFlattening.EnvironmentFlatteningApi/

Looks like it is directly modifying EnvironementFlattening rendering state (which can also be set internally by platform modules, so may lead to race/fighting). On android-api we expose EegeoRenderingApi::SetMapCollapsed - https://github.com/wrld3d/android-api/blob/master/sdk/src/main/java/com/eegeo/mapapi/rendering/RenderingApi.java#L52