Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 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 /
avatar image
0
Question by Bill · Jun 11, 2010 at 09:56 PM · serializationscriptableobject

Serializable types for ScriptableObject

Is it not possible for System.Object and System.Int64 to be serialized via ScriptableObject? I expected both of these types to work. However, they both are default values when I instantiate the asset. If I temporarily change both types to Int32 in my code, everything works as expected.

Comment
Add comment
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

2 Replies

· Add your reply
  • Sort: 
avatar image
3
Best Answer

Answer by Tetrad · Jun 11, 2010 at 11:20 PM

This kind of question comes up all the time. The list of serializable types that Unity supports are in this answer:

http://answers.unity3d.com/questions/1559/edit-and-continue-scripting-destroys-current-state/1583#1583

Comment
Add comment · Show 3 · 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
avatar image Bill · Jun 14, 2010 at 02:44 PM 2
Share

I did a search and could not find this post :( It should be tagged a little differently to make it easier to find. Even more this information should really be in the Unity documentation. Right now the scriptable-object page doesn't have any info at all. If that list was on the page, I wouldn't have needed to ask.

avatar image Kryptos · Jan 27, 2012 at 09:22 AM 0
Share

'Page not found'

avatar image Demigiant · Jun 13, 2012 at 07:51 AM 0
Share

Apart the link not working anymore, serializable types seem to differ if you're placing them in a serialized $$anonymous$$onoBehaviour or in a ScriptableObject. For example, a List (of any type, even floats) is correctly serialized in a $$anonymous$$onoBehaviour, but not in a ScriptableObject.

avatar image
1

Answer by chuckrussell · Apr 12, 2012 at 05:51 PM

Sorry to revive an old thread, but have you found a way to serialize System.Object via ScriptableObject?

Comment
Add comment · Show 1 · 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
avatar image Kryptos · Apr 12, 2012 at 09:34 PM 0
Share

You can't and you don't need to.

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

2 People are following this question.

avatar image avatar image

Related Questions

Custom assets give Missing (Mono Script) 0 Answers

ScriptableObject stored in MonoBehaviour lost on quit 1 Answer

Difference between assigning a value in inspector and with a custom editor script 1 Answer

How should I serialize data that is also editable in the Inspector? 2 Answers

please help me, Scriptable object's variable serialization issue 1 Answer


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