studycase2
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
{
|
||||
"name": "Boxophobic.SkyboxCubemapExtended.Editor",
|
||||
"references": [
|
||||
"GUID:10f1dd4cfd6afb54da274d7d818bd8f6",
|
||||
"GUID:825ad574da7360d4e8aea558f272972e"
|
||||
],
|
||||
"optionalUnityReferences": [],
|
||||
"includePlatforms": [
|
||||
"Editor"
|
||||
],
|
||||
"excludePlatforms": [],
|
||||
"allowUnsafeCode": false,
|
||||
"overrideReferences": false,
|
||||
"precompiledReferences": [],
|
||||
"autoReferenced": true,
|
||||
"defineConstraints": [],
|
||||
"versionDefines": []
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 29bc400970c5066438cbde7676418b75
|
||||
AssemblyDefinitionImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,48 @@
|
||||
//Cristian Pop - https://boxophobic.com/
|
||||
|
||||
using UnityEngine;
|
||||
using UnityEditor;
|
||||
using Boxophobic.Utility;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace SkyboxExtended
|
||||
{
|
||||
public class MaterialGUI : ShaderGUI
|
||||
{
|
||||
public override void OnGUI(MaterialEditor materialEditor, MaterialProperty[] props)
|
||||
{
|
||||
//base.OnGUI(materialEditor, props);
|
||||
|
||||
var material0 = materialEditor.target as Material;
|
||||
|
||||
DrawDynamicInspector(material0, materialEditor, props);
|
||||
}
|
||||
|
||||
void DrawDynamicInspector(Material material, MaterialEditor materialEditor, MaterialProperty[] props)
|
||||
{
|
||||
var customPropsList = new List<MaterialProperty>();
|
||||
|
||||
for (int i = 0; i < props.Length; i++)
|
||||
{
|
||||
var prop = props[i];
|
||||
|
||||
if (BoxoUtils.IsShaderGUIPropertyHidden(prop))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
customPropsList.Add(prop);
|
||||
}
|
||||
|
||||
//Draw Custom GUI
|
||||
for (int i = 0; i < customPropsList.Count; i++)
|
||||
{
|
||||
var prop = customPropsList[i];
|
||||
|
||||
materialEditor.ShaderProperty(prop, prop.displayName);
|
||||
}
|
||||
|
||||
GUILayout.Space(10);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 39b7f3695c062924983675fcef51f7f8
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,40 @@
|
||||
using UnityEditor;
|
||||
using UnityEngine;
|
||||
|
||||
namespace SkyboxExtended
|
||||
{
|
||||
public static class SkyboxExtendedWindows
|
||||
{
|
||||
[MenuItem("Window/BOXOPHOBIC/Skybox Cubemap Extended/Discord Server", false, 8000)]
|
||||
public static void Discord()
|
||||
{
|
||||
Application.OpenURL("https://discord.com/invite/znxuXET");
|
||||
}
|
||||
|
||||
[MenuItem("Window/BOXOPHOBIC/Skybox Cubemap Extended/Publisher Page", false, 8001)]
|
||||
public static void MoreAssets()
|
||||
{
|
||||
Application.OpenURL("https://assetstore.unity.com/publishers/20529");
|
||||
}
|
||||
|
||||
[MenuItem("Window/BOXOPHOBIC/Skybox Cubemap Extended/Documentation", false, 8002)]
|
||||
public static void Documentation()
|
||||
{
|
||||
Application.OpenURL("https://docs.google.com/document/d/1ughK58Aveoet6hpdfYxY5rzkOcIkjEoR0VdN2AhngSc/edit#heading=h.gqix7il7wlwd");
|
||||
}
|
||||
|
||||
[MenuItem("Window/BOXOPHOBIC/Skybox Cubemap Extended/Changelog", false, 8003)]
|
||||
public static void Changelog()
|
||||
{
|
||||
Application.OpenURL("https://docs.google.com/document/d/1ughK58Aveoet6hpdfYxY5rzkOcIkjEoR0VdN2AhngSc/edit#heading=h.1rbujejuzjce");
|
||||
}
|
||||
|
||||
[MenuItem("Window/BOXOPHOBIC/Skybox Cubemap Extended/Write A Review", false, 9999)]
|
||||
public static void WriteAReview()
|
||||
{
|
||||
Application.OpenURL("https://assetstore.unity.com/packages/vfx/shaders/free-skybox-extended-shader-107400#reviews");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 7c986bd7ffe2fa34a857eb813db03d77
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,16 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!114 &11400000
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 0}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 93308045fbb3c5e42ba5ccb66d848632, type: 3}
|
||||
m_Name: Version
|
||||
m_EditorClassIdentifier:
|
||||
styledBanner: 0
|
||||
data: 230
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: cb530898cc05d744da0941d6160f7b92
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 11400000
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Reference in New Issue
Block a user