Comments (3)
I was having the same error on builds only.
For the record (and Google searches) the problem is:
you are referencing an object in a public property of a script that was generated dynamically in the editor.
This happens easily on scripts that can run both in editor and at runtime.
Once you run the build, this script is expecting this reference to exist but it doesn't because it hasn't been generated yet, so it returns null and raises an error.
However, since that object is very likely to be generated later by code, your game will run just fine.
The solution is to ensure you never reference an object generated by code in a public property of a script.
Public Static objects are fine though...
from assetbundles-browser.
i have this problem too. i check the script, but i can't find the UNITY_EDITOR macro. i only add a NGUI TweenScale componet to GameObject prefab. I checked TweenScale and it's parent UITweener. i an sure there is no UNITY_EDITOR
from assetbundles-browser.
Thanks for letting me know. I'll do some research and see if I can figure out what this would be.
from assetbundles-browser.
Related Issues (20)
- How to resolve is auto included in multiple bundles HOT 7
- Standard Compression (LZMA) cannot display any component if used UI_Default shader
- Asset Details Panel: String too long for TextMeshGenerator. Cutting off characters. HOT 1
- Cannot see AssetBundles from packages folders (PackageManager)
- Want to show dependencies for individual assets in a column of Config
- Release v1.8.0 on Package Manager
- Streaming asset path
- Asset sizes should be shown as imported sizes, not on-disk sizes
- How to share AssetBundleBrowser settings with git? HOT 3
- [New Feature]SBP support HOT 2
- No way to sort assets by type HOT 2
- Not able to build asset bundle for Standalone OSX Intel or Standalone OSX 64
- Merge different manifest files into one main platform manifest file HOT 2
- error dependecy with SpriteAtlas
- Assets in embedded packages are not visible
- Is this project abandoned? HOT 3
- 【AD. Repo Share】Enhance Repo,Support Huge Project, etc
- [help]Hollolens2 single eye bug
- NavMesh Issue while Loading Assets into Game [Android] HOT 1
- How to trigger build bundles from code?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from assetbundles-browser.