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 R3xyS3xy · May 27, 2016 at 04:57 PM · unity 5terrainbeginnerfirst-person

all compilers have to be fixed befor entering game mode ..

I saw other posts about this same problem but doesnt seem to apply on mine , i havent deleted any scripts or anything it just tell me 3 erros which i know i have to fix but i dont know how i went to the script and i dont an expert so couldent find any errorr , this is what the errors says : *Assets/Editor/ImageEffects/CreaseShadingEditor.cs(8,6): error CS1503: Argument #1' cannot convert object' expression to type System.Type' *Assets/Editor/ImageEffects/CreaseShadingEditor.cs(8,6): error CS1502: The best overloaded method match for UnityEditor.CustomEditor.CustomEditor(System.Type)' has some invalid arguments *Assets/Editor/ImageEffects/CreaseShadingEditor.cs(8,26): error CS0122: `UnityStandardAssets.ImageEffects.CreaseShading' is inaccessible due to its protection level

when i press on them ( take me to the error ) it shows this script on all of the erros ( doesnt seem to marker any line).

SCRIPT : namespace UnityStandardAssets.ImageEffects { [CustomEditor(typeof(CreaseShading))] class CreaseShadingEditor : Editor { SerializedObject serObj;

     SerializedProperty m_intensity;
     SerializedProperty m_softness;
     SerializedProperty m_spread;

     AnimBool m_showSoftnessWarning = new AnimBool();
     AnimBool m_showSpreadWarning = new AnimBool();

     private bool softnessWarningValue { get { return m_softness.intValue > 4; } }
     private bool spreadWarningValue { get { return m_spread.floatValue > 4; } }

     void OnEnable () {
         serObj = new SerializedObject (target);

         m_intensity = serObj.FindProperty("intensity");
         m_softness = serObj.FindProperty("softness");
         m_spread = serObj.FindProperty("spread");

         m_showSoftnessWarning.valueChanged.AddListener(Repaint);
         m_showSpreadWarning.valueChanged.AddListener(Repaint);

         m_showSoftnessWarning.value = softnessWarningValue;
         m_showSpreadWarning.value = spreadWarningValue;
     }

     public override void OnInspectorGUI () {
         serObj.Update ();

         EditorGUILayout.Slider(m_intensity, -5.0f, 5.0f, new GUIContent("Intensity"));

         EditorGUILayout.IntSlider(m_softness, 0, 15, new GUIContent("Softness"));
         m_showSoftnessWarning.target = softnessWarningValue;
         if (EditorGUILayout.BeginFadeGroup(m_showSoftnessWarning.faded))
         {
             EditorGUILayout.HelpBox("High Softness value might reduce performance.", MessageType.Warning, false);
         }
         EditorGUILayout.EndFadeGroup();

         EditorGUILayout.Slider(m_spread, 0.0f, 50.0f, new GUIContent("Spread"));
         m_showSpreadWarning.target = spreadWarningValue;
         if (EditorGUILayout.BeginFadeGroup(m_showSpreadWarning.faded))
         {
             EditorGUILayout.HelpBox("High Spread value might introduce visual artifacts.", MessageType.Warning, false);
         }
         EditorGUILayout.EndFadeGroup();

         serObj.ApplyModifiedProperties ();
     }
 }

}

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 R3xyS3xy · May 27, 2016 at 04:02 PM 0
Share

Anyone????

3 Replies

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

Answer by R3xyS3xy · May 29, 2016 at 06:46 AM

i figured out how to fix it , if u want to know how i did it attleast , i jsut deleted the script it told me there is problem in ( the script look kinda useless to me anyways . it was in editor something forgot ) and thats all , no problems at all , i have saved the script incase in the future ill need it but fornow everything working fine,

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 JuanC1108 · May 30, 2016 at 01:53 AM 0
Share

I used that method but the camera doesn't work. $$anonymous$$aybe it's for the drivers that I have. What drivers you have installed?

avatar image
0

Answer by R3xyS3xy · May 27, 2016 at 06:49 PM

It worked but when i opened a new folder and addes a c# script ( the script is empty i just added it ) the error is appearing AGAIN and same ERROR exactly ( same line in the older script ) . i realy need help , does anyone here knows whats the problem ?

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 JuanC1108 · May 27, 2016 at 11:30 PM

Sorry Bro! I have the same problem and if a put typeof(CreaseShadingEditor)) the error disappear but the camera doesn't work

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 R3xyS3xy · May 28, 2016 at 08:53 AM 0
Share

yea i guess so , every time i add anything to the project this doesn work and i need to restart the project i guess it cannot be fixed for now/

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

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

Which Unity Tutorials should I watch? 0 Answers

Diamond Square Algorithm Problems 0 Answers

Different Display of Plant Object Based on Distance 0 Answers

Add more map 0 Answers

Procedural Terrain Diamond Square Height Issue 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