Skip to content
This repository was archived by the owner on Nov 30, 2020. It is now read-only.

Commit b178de8

Browse files
committed
Better icon handling
1 parent b8ca0c6 commit b178de8

3 files changed

Lines changed: 1 addition & 85 deletions

File tree

-17.4 KB
Binary file not shown.

PostProcessing/Editor Resources/UI/Icon.png.meta

Lines changed: 0 additions & 84 deletions
This file was deleted.

PostProcessing/Editor/PostProcessingFactory.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ public class PostProcessingFactory
1010
[MenuItem("Assets/Create/Post-Processing Profile", priority = 201)]
1111
static void MenuCreatePostProcessingProfile()
1212
{
13-
var icon = EditorResources.Load<Texture2D>("UI/Icon.png");
13+
var icon = EditorGUIUtility.FindTexture("ScriptableObject Icon");
1414
ProjectWindowUtil.StartNameEditingIfProjectWindowExists(0, ScriptableObject.CreateInstance<DoCreatePostProcessingProfile>(), "New Post-Processing Profile.asset", icon, null);
1515
}
1616

0 commit comments

Comments
 (0)