- Added a title animation for The Chase.
- Lightning Round SFX no longer play in nested NetworkEventTarget.All function.
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
|
||||
using UnityEngine;
|
||||
using UnityEditor;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Draws a vector2 field for vector properties.
|
||||
/// Usage: [ShowAsVector2] _Vector2("Vector 2", Vector) = (0,0,0,0)
|
||||
/// </summary>
|
||||
public class ShowAsVector2Drawer : MaterialPropertyDrawer
|
||||
{
|
||||
public override void OnGUI(Rect position, MaterialProperty prop, GUIContent label, MaterialEditor editor)
|
||||
{
|
||||
if (prop.type == MaterialProperty.PropType.Vector)
|
||||
{
|
||||
EditorGUIUtility.labelWidth = 0f;
|
||||
EditorGUIUtility.fieldWidth = 0f;
|
||||
|
||||
if (!EditorGUIUtility.wideMode)
|
||||
{
|
||||
EditorGUIUtility.wideMode = true;
|
||||
EditorGUIUtility.labelWidth = EditorGUIUtility.currentViewWidth - 212;
|
||||
}
|
||||
|
||||
EditorGUI.BeginChangeCheck();
|
||||
EditorGUI.showMixedValue = prop.hasMixedValue;
|
||||
Vector4 vec = EditorGUI.Vector2Field(position, label, prop.vectorValue);
|
||||
if (EditorGUI.EndChangeCheck())
|
||||
{
|
||||
prop.vectorValue = vec;
|
||||
}
|
||||
}
|
||||
else
|
||||
editor.DefaultShaderProperty(prop, label.text);
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 0e888690466f3484b971065ea4aaf4e0
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Reference in New Issue
Block a user