Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
  • Help Room /
avatar image
0
Question by mrjordan · Aug 05, 2018 at 10:15 PM · inspectorassetsscriptableobject

ScriptableObjects corrupted? Reaching "uneditable/unreferenceable" state in Inspector

I have a few ScriptableObjects (in this case, GunData) and I've been able to successfully create/reference assets in a GunData field in the inspector.

Occasionally, these assets will become unable to be referenced or edited in the inspector, although I've confirmed that the file contents are exactly the same as they were.

I posted a GIF of this on Twitter: https://twitter.com/Ploogle/status/1026228856448057350

I have no idea what's going on. Any ideas?

Comment
Add comment · Show 4
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image NoDumbQuestion · Aug 06, 2018 at 03:16 AM 0
Share

Try press Ctrl + S (refresh scriptable object might help too). It will save changed scriptable object to Disk.

avatar image mrjordan NoDumbQuestion · Aug 06, 2018 at 06:21 PM 0
Share

Ctrl + S isn't working, probably because the asset isn't loading into the Inspector at this point.

I can see that the binaries look good. For comparison, two ScriptableObject .asset files, first one loads and the second does not:


%YA$$anonymous$$L 1.1 %TAG !u! tag:unity3d.com,2011: --- !u!114 &11400000 $$anonymous$$onoBehaviour: m_ObjectHideFlags: 0 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 0} m_GameObject: {fileID: 0} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 0} m_Name: Gun_ m_EditorClassIdentifier: Assembly-CSharp::GunData RateOfFire: 1 $$anonymous$$agazineSize: 1 ReloadSpeed: 1 TurnRate: 1 Range: 0 FireType: 0 Sight: {fileID: 0} ProjectileTemplate: {fileID: 0}


%YA$$anonymous$$L 1.1 %TAG !u! tag:unity3d.com,2011: --- !u!114 &11400000 $$anonymous$$onoBehaviour: m_ObjectHideFlags: 0 m_PrefabParentObject: {fileID: 0} m_PrefabInternal: {fileID: 0} m_GameObject: {fileID: 0} m_Enabled: 1 m_EditorHideFlags: 0 m_Script: {fileID: 0} m_Name: Gun_NewGun m_EditorClassIdentifier: Assembly-CSharp::GunData RateOfFire: 1 $$anonymous$$agazineSize: 1 ReloadSpeed: 1 TurnRate: 1 Range: 0 FireType: 0 Sight: {fileID: 0} ProjectileTemplate: {fileID: 0}

avatar image NoDumbQuestion mrjordan · Aug 07, 2018 at 01:38 AM 0
Share

I remember in old Unity 5+. Scriptable object asset have bugs not update to last to date with the script.

So like if you change the scripts for data of GunData. The old scriptable object might not compatible with new Gundata Scripts => Unity mistook data and script.

Other mistake is like not set scriptable object for System.Serializeable

Show more comments

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by YaGa · Dec 05, 2021 at 02:32 PM

Try clean and rebuild your solution. That works for me, sometimes after view tries.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

156 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

How do you assign the value of a ScriptableObject (from asset) to a component variable? 0 Answers

AssetDatabase.LoadAssetAtPath Not finding assets 0 Answers

ScriptableObject not saving to Asset properly 0 Answers

Custom inspector to get asset path 0 Answers

How to redraw a texture on a prefab instance when a property in the inspector is changed by the developer? 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges