Browse Source
Added fungus_mushroom to EditorResources Added Fungus to Editor->Preferences-Fungus -Added ability to toggle off the fungus icon in the hierarchy in case it conflicts with other tools or is just undesiredmaster
9 changed files with 258 additions and 7 deletions
After Width: | Height: | Size: 5.0 KiB |
@ -0,0 +1,92 @@ |
|||||||
|
fileFormatVersion: 2 |
||||||
|
guid: 6368c1c16ebb1694091262337e4f8c44 |
||||||
|
timeCreated: 1500456217 |
||||||
|
licenseType: Free |
||||||
|
TextureImporter: |
||||||
|
fileIDToRecycleName: {} |
||||||
|
serializedVersion: 4 |
||||||
|
mipmaps: |
||||||
|
mipMapMode: 0 |
||||||
|
enableMipMap: 0 |
||||||
|
sRGBTexture: 0 |
||||||
|
linearTexture: 0 |
||||||
|
fadeOut: 0 |
||||||
|
borderMipMap: 0 |
||||||
|
mipMapFadeDistanceStart: 1 |
||||||
|
mipMapFadeDistanceEnd: 3 |
||||||
|
bumpmap: |
||||||
|
convertToNormalMap: 0 |
||||||
|
externalNormalMap: 0 |
||||||
|
heightScale: 0.25 |
||||||
|
normalMapFilter: 0 |
||||||
|
isReadable: 0 |
||||||
|
grayScaleToAlpha: 0 |
||||||
|
generateCubemap: 6 |
||||||
|
cubemapConvolution: 0 |
||||||
|
seamlessCubemap: 0 |
||||||
|
textureFormat: 1 |
||||||
|
maxTextureSize: 2048 |
||||||
|
textureSettings: |
||||||
|
filterMode: 1 |
||||||
|
aniso: -1 |
||||||
|
mipBias: -1 |
||||||
|
wrapMode: 1 |
||||||
|
nPOTScale: 0 |
||||||
|
lightmap: 0 |
||||||
|
compressionQuality: 50 |
||||||
|
spriteMode: 1 |
||||||
|
spriteExtrude: 1 |
||||||
|
spriteMeshType: 1 |
||||||
|
alignment: 0 |
||||||
|
spritePivot: {x: 0.5, y: 0.5} |
||||||
|
spriteBorder: {x: 0, y: 0, z: 0, w: 0} |
||||||
|
spritePixelsToUnits: 100 |
||||||
|
alphaUsage: 1 |
||||||
|
alphaIsTransparency: 1 |
||||||
|
spriteTessellationDetail: -1 |
||||||
|
textureType: 2 |
||||||
|
textureShape: 1 |
||||||
|
maxTextureSizeSet: 0 |
||||||
|
compressionQualitySet: 0 |
||||||
|
textureFormatSet: 0 |
||||||
|
platformSettings: |
||||||
|
- buildTarget: DefaultTexturePlatform |
||||||
|
maxTextureSize: 1024 |
||||||
|
textureFormat: -1 |
||||||
|
textureCompression: 0 |
||||||
|
compressionQuality: 50 |
||||||
|
crunchedCompression: 0 |
||||||
|
allowsAlphaSplitting: 0 |
||||||
|
overridden: 0 |
||||||
|
- buildTarget: Standalone |
||||||
|
maxTextureSize: 1024 |
||||||
|
textureFormat: -1 |
||||||
|
textureCompression: 0 |
||||||
|
compressionQuality: 50 |
||||||
|
crunchedCompression: 0 |
||||||
|
allowsAlphaSplitting: 0 |
||||||
|
overridden: 0 |
||||||
|
- buildTarget: Android |
||||||
|
maxTextureSize: 1024 |
||||||
|
textureFormat: -1 |
||||||
|
textureCompression: 0 |
||||||
|
compressionQuality: 50 |
||||||
|
crunchedCompression: 0 |
||||||
|
allowsAlphaSplitting: 0 |
||||||
|
overridden: 0 |
||||||
|
- buildTarget: WebGL |
||||||
|
maxTextureSize: 1024 |
||||||
|
textureFormat: -1 |
||||||
|
textureCompression: 0 |
||||||
|
compressionQuality: 50 |
||||||
|
crunchedCompression: 0 |
||||||
|
allowsAlphaSplitting: 0 |
||||||
|
overridden: 0 |
||||||
|
spriteSheet: |
||||||
|
serializedVersion: 2 |
||||||
|
sprites: [] |
||||||
|
outline: [] |
||||||
|
spritePackingTag: |
||||||
|
userData: |
||||||
|
assetBundleName: |
||||||
|
assetBundleVariant: |
After Width: | Height: | Size: 5.0 KiB |
@ -0,0 +1,92 @@ |
|||||||
|
fileFormatVersion: 2 |
||||||
|
guid: 1c99c9bf7557e23469ed5dfce00504c0 |
||||||
|
timeCreated: 1500455974 |
||||||
|
licenseType: Free |
||||||
|
TextureImporter: |
||||||
|
fileIDToRecycleName: {} |
||||||
|
serializedVersion: 4 |
||||||
|
mipmaps: |
||||||
|
mipMapMode: 0 |
||||||
|
enableMipMap: 0 |
||||||
|
sRGBTexture: 0 |
||||||
|
linearTexture: 0 |
||||||
|
fadeOut: 0 |
||||||
|
borderMipMap: 0 |
||||||
|
mipMapFadeDistanceStart: 1 |
||||||
|
mipMapFadeDistanceEnd: 3 |
||||||
|
bumpmap: |
||||||
|
convertToNormalMap: 0 |
||||||
|
externalNormalMap: 0 |
||||||
|
heightScale: 0.25 |
||||||
|
normalMapFilter: 0 |
||||||
|
isReadable: 0 |
||||||
|
grayScaleToAlpha: 0 |
||||||
|
generateCubemap: 6 |
||||||
|
cubemapConvolution: 0 |
||||||
|
seamlessCubemap: 0 |
||||||
|
textureFormat: 1 |
||||||
|
maxTextureSize: 2048 |
||||||
|
textureSettings: |
||||||
|
filterMode: 1 |
||||||
|
aniso: -1 |
||||||
|
mipBias: -1 |
||||||
|
wrapMode: 1 |
||||||
|
nPOTScale: 0 |
||||||
|
lightmap: 0 |
||||||
|
compressionQuality: 50 |
||||||
|
spriteMode: 1 |
||||||
|
spriteExtrude: 1 |
||||||
|
spriteMeshType: 1 |
||||||
|
alignment: 0 |
||||||
|
spritePivot: {x: 0.5, y: 0.5} |
||||||
|
spriteBorder: {x: 0, y: 0, z: 0, w: 0} |
||||||
|
spritePixelsToUnits: 100 |
||||||
|
alphaUsage: 1 |
||||||
|
alphaIsTransparency: 1 |
||||||
|
spriteTessellationDetail: -1 |
||||||
|
textureType: 2 |
||||||
|
textureShape: 1 |
||||||
|
maxTextureSizeSet: 0 |
||||||
|
compressionQualitySet: 0 |
||||||
|
textureFormatSet: 0 |
||||||
|
platformSettings: |
||||||
|
- buildTarget: DefaultTexturePlatform |
||||||
|
maxTextureSize: 1024 |
||||||
|
textureFormat: -1 |
||||||
|
textureCompression: 0 |
||||||
|
compressionQuality: 50 |
||||||
|
crunchedCompression: 0 |
||||||
|
allowsAlphaSplitting: 0 |
||||||
|
overridden: 0 |
||||||
|
- buildTarget: Standalone |
||||||
|
maxTextureSize: 1024 |
||||||
|
textureFormat: -1 |
||||||
|
textureCompression: 0 |
||||||
|
compressionQuality: 50 |
||||||
|
crunchedCompression: 0 |
||||||
|
allowsAlphaSplitting: 0 |
||||||
|
overridden: 0 |
||||||
|
- buildTarget: Android |
||||||
|
maxTextureSize: 1024 |
||||||
|
textureFormat: -1 |
||||||
|
textureCompression: 0 |
||||||
|
compressionQuality: 50 |
||||||
|
crunchedCompression: 0 |
||||||
|
allowsAlphaSplitting: 0 |
||||||
|
overridden: 0 |
||||||
|
- buildTarget: WebGL |
||||||
|
maxTextureSize: 1024 |
||||||
|
textureFormat: -1 |
||||||
|
textureCompression: 0 |
||||||
|
compressionQuality: 50 |
||||||
|
crunchedCompression: 0 |
||||||
|
allowsAlphaSplitting: 0 |
||||||
|
overridden: 0 |
||||||
|
spriteSheet: |
||||||
|
serializedVersion: 2 |
||||||
|
sprites: [] |
||||||
|
outline: [] |
||||||
|
spritePackingTag: |
||||||
|
userData: |
||||||
|
assetBundleName: |
||||||
|
assetBundleVariant: |
@ -0,0 +1,43 @@ |
|||||||
|
using UnityEngine; |
||||||
|
using UnityEditor; |
||||||
|
|
||||||
|
namespace Fungus |
||||||
|
{ |
||||||
|
namespace EditorUtils |
||||||
|
{ |
||||||
|
/// <summary> |
||||||
|
/// Shows Fungus section in the Edit->Preferences in unity allows you to configure Fungus behaviour |
||||||
|
/// |
||||||
|
/// ref https://docs.unity3d.com/ScriptReference/PreferenceItem.html |
||||||
|
/// </summary> |
||||||
|
public class FungusEditorPreferences |
||||||
|
{ |
||||||
|
// Have we loaded the prefs yet |
||||||
|
private static bool prefsLoaded = false; |
||||||
|
|
||||||
|
public static bool hideMushroomInHierarchy = false; |
||||||
|
|
||||||
|
// Add preferences section named "My Preferences" to the Preferences Window |
||||||
|
[PreferenceItem("Fungus")] |
||||||
|
|
||||||
|
public static void PreferencesGUI() |
||||||
|
{ |
||||||
|
// Load the preferences |
||||||
|
if (!prefsLoaded) |
||||||
|
{ |
||||||
|
hideMushroomInHierarchy = EditorPrefs.GetBool("hideMushroomInHierarchy", false); |
||||||
|
prefsLoaded = true; |
||||||
|
} |
||||||
|
|
||||||
|
// Preferences GUI |
||||||
|
hideMushroomInHierarchy = EditorGUILayout.Toggle("Hide Mushroom Flowchart Icon", hideMushroomInHierarchy); |
||||||
|
|
||||||
|
// Save the preferences |
||||||
|
if (GUI.changed) |
||||||
|
{ |
||||||
|
EditorPrefs.SetBool("hideMushroomInHierarchy", hideMushroomInHierarchy); |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
|
} |
@ -0,0 +1,12 @@ |
|||||||
|
fileFormatVersion: 2 |
||||||
|
guid: cde6865c94505574e8ccf958a03f8463 |
||||||
|
timeCreated: 1500456646 |
||||||
|
licenseType: Free |
||||||
|
MonoImporter: |
||||||
|
serializedVersion: 2 |
||||||
|
defaultReferences: [] |
||||||
|
executionOrder: 0 |
||||||
|
icon: {instanceID: 0} |
||||||
|
userData: |
||||||
|
assetBundleName: |
||||||
|
assetBundleVariant: |
Loading…
Reference in new issue