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 MrThreepwood · May 16, 2013 at 05:11 AM · scene viewprocedural generationeditor extension

Using A Paused Test Run As Scene

Currently I'm working on a grid based game, and have a script run that takes any 3d object and then tiles it. The tiles initially know how high they are and each character knows how high a "step" they can take moving from tile to tile. However, I would like to be able to go in and edit further information into each tile, such as a movement cost or an affect to be had when someone is on that tile.

Since these tiles don't actually exist in the scene until the scene is started, I can't do that manually. Is there a way to use a paused scene as a scene? Or to keep objects in a test run? I don't have a good way to proceduraly generate the info the tiles need, but placing thousands of tiles by hand doesn't seem like fun either.

Edit: Alrighty, been dinging around with the unity editor extension, found some rather useful examples of changing the unity inspector guis and the like. Really nice and all, still not sure how this allows me to instantiate/change objects in the editor. Any example would be great.

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 robertbu · May 16, 2013 at 05:24 AM 0
Share

This question has come up before, and there does not appear to be a way to stop the game and use the result. Given what you are doing, consider writing an Editor extension that uses your tile generation code. Then you could edit the tiles after your script has run.

avatar image MrThreepwood · May 21, 2013 at 03:43 AM 0
Share

Awesome, thanks for the answer. I guess I wasn't aware that editor extensions were a thing, I'll look into those though. As well as unity is documented I'm sure I'll find it easily enough.

avatar image robertbu · May 21, 2013 at 04:16 AM 0
Share

http://docs.unity3d.com/Documentation/Components/gui-ExtendingEditor.html

avatar image yoyo · May 21, 2013 at 05:55 AM 1
Share

If you select all the root objects in the Hierarchy while the game is paused and press Ctrl-C (copy), then stop the game, delete everything in the scene, and press Ctrl-V (paste) you will now have the scene as it was when the game was running. You can then save this as a new scene. (Just be careful you don't overwrite your original data!)

0 Replies

· Add your reply
  • Sort: 

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

14 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

Related Questions

Editor Scripting: change selected objects layer with button press 0 Answers

If I create GameObjects in OnSceneGUI, how can I destroy them when my control is no longer selected? 1 Answer

Rotate Scene View camera 3 Answers

When I drop Environment Prefab in hierarchy 0 Answers

Why the colors in the game view are pink and not like in the scene view? 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