needle-tools / ar-simulation

AR Simulation for Unity • Right in the Editor • Minimally Invasive
109 stars 10 forks source link

Simulated environment textures get included in builds for IOS/Android #55

Closed ROBYER1 closed 3 years ago

ROBYER1 commented 3 years ago

Describe the bug Simulated environment textures get included in builds for IOS/Android

From the build log:

Screenshot 2021-05-20 at 10 18 48

Steps to reproduce the behavior

  1. Import ARSim to a project for android/ios
  2. Add a simulated environment manager to the scene, use the apartment scene for example
  3. Activate the environment in the scene (see the instances appear)
  4. Build the scene for IOS/Android, check the build log to see the environment textures are included

Expected behavior Anything from ARSim should be excluded from the build as it adds 50mb+ to the builds

Actual behavior Environment Simulation assets get included in builds

Versions (please complete the following information):

marwie commented 3 years ago

For future reference: issue was because SimulatedEnvironmentManager gameobject was not tagged with EditorOnly tag