Quantcast
Channel: Questions in topic: "error"
Viewing all articles
Browse latest Browse all 7934

PostProcessingFactory.cs

$
0
0
Got a compiler error after installing post processing stack fom unity technologies : Assets/PostProcessing/Editor/PostProcessingFactory.cs(20,33): error CS0117: `Path' does not contain a definition for `GetFileName' the code : namespace UnityEditor.PostProcessing { public class PostProcessingFactory { [MenuItem("Assets/Create/Post-Processing Profile", priority = 201)] static void MenuCreatePostProcessingProfile() { var icon = EditorGUIUtility.FindTexture("ScriptableObject Icon"); ProjectWindowUtil.StartNameEditingIfProjectWindowExists(0, ScriptableObject.CreateInstance(), "New Post-Processing Profile.asset", icon, null); } internal static PostProcessingProfile CreatePostProcessingProfileAtPath(string path) { var profile = ScriptableObject.CreateInstance(); profile.name = Path.GetFileName(path); AssetDatabase.CreateAsset(profile, path); return profile; } } installed from asset store, No changes in code, using unity 5.5 ! where is the trouble please ?

Viewing all articles
Browse latest Browse all 7934

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>