-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
- Loading branch information
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
using UnityEngine; | ||
using UnityEditor; | ||
using System.Collections; | ||
|
||
public class CheckValidShaders : ScriptableObject | ||
{ | ||
[MenuItem ("Tools/Check valid shaders")] | ||
static void DoRecord() | ||
{ | ||
GameObject[] objs = Selection.gameObjects; | ||
foreach (GameObject obj in objs) { | ||
if (obj.GetComponent<MeshRenderer> ()) { | ||
MeshRenderer render = obj.GetComponent<MeshRenderer> (); | ||
if(render.sharedMaterial.shader) { | ||
if(!render.sharedMaterial.shader.name.Contains("Dualstick")) | ||
Debug.Log ("weird shader " + render.sharedMaterial.shader.name + " @ " + obj.name, obj.transform); | ||
} | ||
} | ||
} | ||
} | ||
} | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
|
||
using UnityEditor; | ||
using UnityEngine; | ||
|
||
class CopyMoodBox : ScriptableWizard { | ||
|
||
static MoodBoxData data; | ||
|
||
[MenuItem ("Tools/CopyMoodBox")] | ||
static void Copy () { | ||
if (!Selection.activeGameObject) | ||
return; | ||
data = ((MoodBox)Selection.activeGameObject.GetComponent<MoodBox>()).data; | ||
} | ||
|
||
[MenuItem ("Tools/PasteMoodBox")] | ||
static void Paste () { | ||
if (0==Selection.gameObjects.Length) | ||
return; | ||
|
||
MoodBoxData copyHere; | ||
int i = 0; | ||
|
||
foreach (GameObject obj in Selection.gameObjects) { | ||
if (obj.GetComponent<MoodBox>()) { | ||
copyHere = ((MoodBox)obj.GetComponent<MoodBox>()).data; | ||
|
||
copyHere.noiseAmount = data.noiseAmount; | ||
copyHere.colorMixBlend = data.colorMixBlend; | ||
copyHere.colorMix = data.colorMix; | ||
copyHere.fogY = data.fogY; | ||
copyHere.fogColor = data.fogColor; | ||
|
||
i++; | ||
} | ||
} | ||
|
||
Debug.Log ("Mood Box pasted " + i + " times."); | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
using UnityEngine; | ||
using UnityEditor; | ||
using System.Collections; | ||
|
||
public class TransformCopier : ScriptableObject | ||
{ | ||
private static Vector3 position; | ||
private static Quaternion rotation; | ||
//private static Vector3 scale; | ||
|
||
[MenuItem ("Tools/Transform Copier/Copy Transform &%c")] | ||
static void DoRecord() | ||
{ | ||
position = Selection.activeTransform.localPosition; | ||
rotation = Selection.activeTransform.localRotation; | ||
//scale = Selection.activeTransform.localScale; | ||
|
||
// EditorUtility.DisplayDialog("Transform Copy", "Local position, rotation, & scale of "+myName +" copied relative to parent.", "OK", ""); | ||
} | ||
|
||
[MenuItem ("Tools/Transform Copier/Paste Transform &%v")] | ||
static void DoApply() | ||
{ | ||
Selection.activeTransform.localPosition = position; | ||
Selection.activeTransform.localRotation = rotation; | ||
//Selection.activeTransform.localScale = scale; | ||
|
||
// EditorUtility.DisplayDialog("Transform Paste", "Local position, rotation, and scale of "+myName +" pasted relative to parent of "+Selection.activeTransform.name+".", "OK", ""); | ||
} | ||
} | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.