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
1
Question by Fattie · Sep 12, 2013 at 01:40 PM · editorimportingmonocompile

Determine WHAT was just compiled........

Here's a really important question,

You edit a script and you see this:

alt text

How to determine what was just compiled?

Or indeed "Imported".

How can you tell what was just compiled? Someone intelligent must know the answer. For example can you look at some binaries, or something, and see the dates, or?? Any ideas?

THANKS!!

wot.png (17.2 kB)
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 clunk47 · Sep 12, 2013 at 05:37 PM 2
Share

The only thing I can think of is to look in the Editor Log, or output log for builds. I know you can open the dll files in your data folder and get quite a bit of info from them as far as a build goes. I use Windows 7, so I don't know anything about this if you're using $$anonymous$$AC lol. I may be way off, but I have found the logs to be useful as far as seeing what scripts are being loaded.

1 Reply

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

Answer by Jamora · Sep 13, 2013 at 02:26 PM

This class will debug all the imported assets. It's an editor class so remember to put it inside an Editor folder. Have a further look at the AssetPostprocessor class, maybe you'll get ideas.

     // name this say HappyScript.js (it's javascript) and drop in Editor/ folder
     
     class MyPostprocessor extends AssetPostprocessor {
 
         static function OnPostprocessAllAssets (
             importedAssets : String[],
             deletedAssets : String[],
             movedAssets : String[],
             movedFromAssetPaths : String[]) {
         
             for (var str in importedAssets){
                 Debug.Log("Reimported Asset: " + str);
                 
             }
 
             for (var str in deletedAssets)
                 Debug.Log("Deleted Asset: " + str);
 
             for (var i=0;i<movedAssets.Length;i++)
                 Debug.Log("Moved Asset: " + movedAssets[i] + " from: " + movedFromAssetPaths[i]);
             
         }
     }


Comment
Add comment · Show 4 · 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 Fattie · Sep 13, 2013 at 02:30 PM 1
Share

Holy shit - that looks clever. Let me test that out.....

avatar image clunk47 · Sep 13, 2013 at 02:44 PM 1
Share

Double holy shit lol

avatar image Fattie · Sep 13, 2013 at 03:35 PM 1
Share

Frickin' amazing.

It instantly showed me the culprit

(Some idiotic package someone installed, would install itself four times, every time there was any change to any project file - bizarre eh)

This is the greatest answer ever on this site.

avatar image clunk47 · Sep 13, 2013 at 04:36 PM 0
Share

Coolness, looks like you figured it out, and now I have some new knowledge :D

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

17 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

Related Questions

Mono.Cairo On Android 0 Answers

Unity editor keeps on crashing 1 Answer

Linking a file outside the Asset folder to update an asset on reimport 0 Answers

Callbacks Lost after scripts compiled. 0 Answers

Why do Two Instances of MonoDevelop Open when I double-click a CS file in Inspector? 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