• Unity
  • Services
  • Made with Unity
  • Learn
  • 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
  • Forums
  • Answers
  • Feedback
  • Issue Tracker
  • Blog
  • Evangelists
  • User Groups

Navigation

  • Home
  • Unity
  • Industries
  • Made with Unity
  • Learn
  • Community
    • Forums
    • Answers
    • Feedback
    • Issue Tracker
    • Blog
    • Evangelists
    • User Groups
  • Get Unity
  • Asset Store

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 hadisajjadi · May 27, 2018 at 02:35 PM · componentdatacomponentsdata storage

Component Is Heavy

Hi. I Have a Component That Is Contain All Of My Game's Data Like a Database. But Now Viewing And Assigning in That Component Is Very Very Slow. So I can't Actually Work With My Component, And Also Can't Move My Data To Another Component. Any Suggestion To Work Fast With This Component?

Comment
Add comment · Show 1
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 hadisajjadi · May 27, 2018 at 02:38 PM 0
Share

I mean In Editor

2 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by Bunny83 · May 27, 2018 at 02:43 PM

What kind of data do you have stored in that class? Can you show some of your variable declarations? Also how much data do you have stored in your class? You may want to create some ScriptableObjects to store pure static data as assets in your project. If you have already a lot of data setup you can copy it "manually" by opening the corresponding assets in a text editor (given you set the asset serialization mode to force text). An alternative would be to write a migration editor script that moves the data over. However we can't get any more specific without more information.

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
avatar image
0

Answer by hadisajjadi · May 27, 2018 at 03:35 PM

Thank You For Answer. I have a lot of data on That Component. a lot. Such As Text And Numbers And Bool (Most of them). But a Lot. I Cant Use ScriptableObject Becuase I'm Not Created This Component In First Place And Beside The Data Is Referenced All Over The Project. So I Have To Use This Component But Is Running Heavy On Editor So Give Me Another Solution.

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 hadisajjadi · Jun 09, 2018 at 12:11 PM 0
Share

No one? Still Has a Critical Problem

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.

Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Follow this Question

Answers Answers and Comments

87 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

Related Questions

A common method to call any script that is put into a method 0 Answers

2D Animation does not start 0 Answers

Depth of field not working 0 Answers

Storing Constant data in a mobile game 0 Answers

Unity can't see any scripts 0 Answers

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges