Search Issue Tracker

By Design

Votes

0

Found in [Package]

1.19.19

1.20.5

1.21.1

Issue ID

ADDR-3069

Regression

No

ScriptableObjects are deleted when building Addressables

Package: Addressables

-

Reproduction steps:
1. Open the attached project “TestAddressablesScriptableObjects”
2. Click “AddressablesAndScriptableObjectTest/Run Test” in the menu bar

Expected result: The last message in the Console window is: “Ran Addressables build, test scriptable object exists [True]”
Actual result: The last message is: “Ran Addressables build, test scriptable object exists [False]”

Reproducible with: 1.19.19 (2020.3.42f1, 2021.3.14f1), 1.20.5 (2022.1.23f1), 1.21.1 (2022.2.0b15, 2023.1.0a19)

Reproducible on: macOS 12.4 (Intel)

  1. Resolution Note:

    The scriptable objects are cleared during the build. In order to prevent this from happening, the scriptableObject needs to be hidden from the clearing system using hideFlags like testScriptableObject.hideFlags |= HideFlags.HideAndDontSave;

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.