Initial commit
8
Assets/Materials.meta
Normal file
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 4bae734ec82fce24a992c7b49e7eeba8
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
BIN
Assets/Materials/1-Shockwave.tiff
Normal file
166
Assets/Materials/1-Shockwave.tiff.meta
Normal file
@@ -0,0 +1,166 @@
|
||||
fileFormatVersion: 2
|
||||
guid: d0c75f6dab76e0349a13bf74539c7fac
|
||||
TextureImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 12
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 1
|
||||
sRGBTexture: 1
|
||||
linearTexture: 0
|
||||
fadeOut: 0
|
||||
borderMipMap: 0
|
||||
mipMapsPreserveCoverage: 0
|
||||
alphaTestReferenceValue: 0.5
|
||||
mipMapFadeDistanceStart: 1
|
||||
mipMapFadeDistanceEnd: 3
|
||||
bumpmap:
|
||||
convertToNormalMap: 0
|
||||
externalNormalMap: 0
|
||||
heightScale: 0.25
|
||||
normalMapFilter: 0
|
||||
flipGreenChannel: 0
|
||||
isReadable: 0
|
||||
streamingMipmaps: 0
|
||||
streamingMipmapsPriority: 0
|
||||
vTOnly: 0
|
||||
ignoreMipmapLimit: 0
|
||||
grayScaleToAlpha: 0
|
||||
generateCubemap: 6
|
||||
cubemapConvolution: 0
|
||||
seamlessCubemap: 0
|
||||
textureFormat: 1
|
||||
maxTextureSize: 2048
|
||||
textureSettings:
|
||||
serializedVersion: 2
|
||||
filterMode: 1
|
||||
aniso: 1
|
||||
mipBias: 0
|
||||
wrapU: 0
|
||||
wrapV: 0
|
||||
wrapW: 0
|
||||
nPOTScale: 1
|
||||
lightmap: 0
|
||||
compressionQuality: 50
|
||||
spriteMode: 0
|
||||
spriteExtrude: 1
|
||||
spriteMeshType: 1
|
||||
alignment: 0
|
||||
spritePivot: {x: 0.5, y: 0.5}
|
||||
spritePixelsToUnits: 100
|
||||
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||
spriteGenerateFallbackPhysicsShape: 1
|
||||
alphaUsage: 1
|
||||
alphaIsTransparency: 0
|
||||
spriteTessellationDetail: -1
|
||||
textureType: 0
|
||||
textureShape: 1
|
||||
singleChannelComponent: 0
|
||||
flipbookRows: 1
|
||||
flipbookColumns: 1
|
||||
maxTextureSizeSet: 0
|
||||
compressionQualitySet: 0
|
||||
textureFormatSet: 0
|
||||
ignorePngGamma: 0
|
||||
applyGammaDecoding: 0
|
||||
swizzle: 50462976
|
||||
cookieLightType: 0
|
||||
platformSettings:
|
||||
- serializedVersion: 3
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
buildTarget: WebGL
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
buildTarget: Standalone
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
buildTarget: iPhone
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
buildTarget: Android
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
- serializedVersion: 3
|
||||
buildTarget: Server
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
ignorePlatformSupport: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
spriteSheet:
|
||||
serializedVersion: 2
|
||||
sprites: []
|
||||
outline: []
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID:
|
||||
internalID: 0
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
secondaryTextures: []
|
||||
nameFileIdTable: {}
|
||||
mipmapLimitGroupName:
|
||||
pSDRemoveMatte: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
8
Assets/Materials/Active.meta
Normal file
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: b4a8830ee337fd840b5466fcebc9ce75
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
8
Assets/Materials/Active/Editor.meta
Normal file
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: d35b39debbe26964d9e7c57032a03f6a
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
178
Assets/Materials/Active/Editor/CustomViewAnalogInput.cs
Normal file
@@ -0,0 +1,178 @@
|
||||
using System;
|
||||
using UnityEngine;
|
||||
using UnityEditor;
|
||||
|
||||
/// <summary>
|
||||
/// This script changes the Inpsector view for AxisInput to make the serialized Input field appear at the top of the script in the inspector
|
||||
/// </summary>
|
||||
|
||||
namespace Kineractive
|
||||
{
|
||||
[CustomEditor(typeof(AnalogInput))]
|
||||
[CanEditMultipleObjects]
|
||||
public class CustomViewAnalogInput : UnityEditor.Editor
|
||||
{
|
||||
SerializedProperty BypassInput;
|
||||
SerializedProperty axisInput;
|
||||
SerializedProperty repeatingInput;
|
||||
SerializedProperty handSide;
|
||||
SerializedProperty position;
|
||||
SerializedProperty moveSpeed;
|
||||
SerializedProperty rotateSpeed;
|
||||
SerializedProperty returnPosition;
|
||||
SerializedProperty inputAnim;
|
||||
SerializedProperty OnInput;
|
||||
SerializedProperty inputEndAnim;
|
||||
SerializedProperty OnInputEnd;
|
||||
|
||||
|
||||
SerializedProperty axisInputString;
|
||||
SerializedProperty inputAnimString;
|
||||
SerializedProperty inputEndAnimString;
|
||||
|
||||
SerializedProperty sendFloat;
|
||||
SerializedProperty invertInput;
|
||||
|
||||
protected string[] inputChoices;
|
||||
int inputChoiceIndex = 0;
|
||||
|
||||
protected string[] inputAnimChoices;
|
||||
int inputAnimChoiceIndex = 0;
|
||||
|
||||
protected string[] inputEndAnimChoices;
|
||||
int inputEndAnimChoiceIndex = 0;
|
||||
|
||||
|
||||
void OnEnable()
|
||||
{
|
||||
BypassInput = serializedObject.FindProperty("BypassInput");
|
||||
axisInput = serializedObject.FindProperty("axisInput");
|
||||
repeatingInput = serializedObject.FindProperty("repeatingInput");
|
||||
sendFloat = serializedObject.FindProperty("SendFloat");
|
||||
handSide = serializedObject.FindProperty("handSide");
|
||||
position = serializedObject.FindProperty("position");
|
||||
moveSpeed = serializedObject.FindProperty("moveSpeed");
|
||||
rotateSpeed = serializedObject.FindProperty("rotateSpeed");
|
||||
returnPosition = serializedObject.FindProperty("returnPosition");
|
||||
inputAnim = serializedObject.FindProperty("inputAnim");
|
||||
OnInput= serializedObject.FindProperty("OnInput");
|
||||
inputEndAnim = serializedObject.FindProperty("inputEndAnim");
|
||||
OnInputEnd = serializedObject.FindProperty("OnInputEnd");
|
||||
invertInput = serializedObject.FindProperty("invertInput");
|
||||
|
||||
KineractiveManager iMan = FindObjectOfType<KineractiveManager>();
|
||||
if (iMan != null)
|
||||
{
|
||||
if (iMan.PlayerInputs != null)
|
||||
{
|
||||
inputChoices = iMan.PlayerInputs.AxisInputs;
|
||||
}
|
||||
else
|
||||
{
|
||||
inputChoices = new string[] { "No 'Player Inputs' set in Interactive Manager" };
|
||||
Debug.LogWarning("'Player Inputs' field in Interactive Manager is empty. Please insert a Player Inputs scriptable object into the empty field.");
|
||||
}
|
||||
|
||||
if (iMan.PlayerAnims != null)
|
||||
{
|
||||
inputAnimChoices = iMan.PlayerAnims.Anims;
|
||||
inputEndAnimChoices = iMan.PlayerAnims.Anims;
|
||||
}
|
||||
else
|
||||
{
|
||||
inputAnimChoices = new string[] { "No 'Player Anims' set in Interactive Manager" };
|
||||
Debug.LogWarning("'Player Anims' field in Interactive Manager is empty. Please insert a Player Anims scriptable object into the empty field.");
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
inputChoices = new string[] { "Not Found: Interactive Manager" };
|
||||
inputAnimChoices = new string[] { "Not Found: Interactive Manager" };
|
||||
inputEndAnimChoices = new string[] { "Not Found: Interactive Manager" };
|
||||
Debug.LogWarning("Interactive Manager not found - Please add the Interactive Manager component to this scene");
|
||||
}
|
||||
|
||||
|
||||
|
||||
axisInputString = serializedObject.FindProperty("axisInputString");
|
||||
inputChoiceIndex = Array.IndexOf(inputChoices, axisInputString.stringValue);
|
||||
|
||||
inputAnimString = serializedObject.FindProperty("inputAnimString");
|
||||
inputAnimChoiceIndex = Array.IndexOf(inputAnimChoices, inputAnimString.stringValue);
|
||||
|
||||
inputEndAnimString = serializedObject.FindProperty("inputEndAnimString");
|
||||
inputEndAnimChoiceIndex = Array.IndexOf(inputEndAnimChoices, inputEndAnimString.stringValue);
|
||||
|
||||
}
|
||||
|
||||
public override void OnInspectorGUI()
|
||||
{
|
||||
serializedObject.Update();
|
||||
CustomViewHelper.DisplayTitle("Analog Input", CustomViewHelper.IconTypes.AnalogInput);
|
||||
EditorGUILayout.BeginVertical(CustomViewHelper.BodyBG);
|
||||
CustomViewHelper.DisplayHeader("Input Type");
|
||||
|
||||
|
||||
inputChoiceIndex = EditorGUILayout.Popup("Axis Input", inputChoiceIndex, inputChoices);
|
||||
if (inputChoiceIndex < 0)
|
||||
inputChoiceIndex = 0;
|
||||
|
||||
axisInputString.stringValue = inputChoices[inputChoiceIndex];
|
||||
|
||||
EditorGUILayout.PropertyField(invertInput);
|
||||
|
||||
EditorGUILayout.EndVertical();
|
||||
|
||||
EditorGUILayout.BeginVertical(CustomViewHelper.BodyBG);
|
||||
EditorGUILayout.PropertyField(BypassInput, new GUIContent("Bypass", "Turn off this input? Manually here, or by script, or by event."));
|
||||
EditorGUILayout.EndVertical();
|
||||
|
||||
|
||||
|
||||
|
||||
EditorGUILayout.BeginVertical(CustomViewHelper.BodyBG);
|
||||
CustomViewHelper.DisplayHeader("Hands");
|
||||
EditorGUILayout.PropertyField(handSide);
|
||||
EditorGUILayout.PropertyField(moveSpeed);
|
||||
EditorGUILayout.PropertyField(rotateSpeed);
|
||||
EditorGUILayout.EndVertical();
|
||||
|
||||
EditorGUILayout.BeginVertical(CustomViewHelper.BodyBG);
|
||||
CustomViewHelper.DisplayHeader("Analog Event");
|
||||
EditorGUILayout.PropertyField(sendFloat);
|
||||
EditorGUILayout.EndVertical();
|
||||
|
||||
EditorGUILayout.BeginVertical(CustomViewHelper.BodyBG);
|
||||
CustomViewHelper.DisplayHeader("When Input Starts (Axis is not 0)");
|
||||
EditorGUILayout.PropertyField(position, new GUIContent("Move\\Rotate to:", "The hand will move and rotate to this position when key is pressed (and/or held) down"));
|
||||
|
||||
|
||||
inputAnimChoiceIndex = EditorGUILayout.Popup("Input Animation", inputAnimChoiceIndex, inputAnimChoices);
|
||||
if (inputAnimChoiceIndex < 0)
|
||||
inputAnimChoiceIndex = 0;
|
||||
|
||||
inputAnimString.stringValue = inputAnimChoices[inputAnimChoiceIndex];
|
||||
|
||||
EditorGUILayout.PropertyField(OnInput, new GUIContent("On Input Start"));
|
||||
EditorGUILayout.EndVertical();
|
||||
|
||||
EditorGUILayout.BeginVertical(CustomViewHelper.BodyBG);
|
||||
CustomViewHelper.DisplayHeader("When Input Ends (Axis is 0)");
|
||||
EditorGUILayout.PropertyField(returnPosition);
|
||||
|
||||
|
||||
inputEndAnimChoiceIndex = EditorGUILayout.Popup("Input End Animation", inputEndAnimChoiceIndex, inputEndAnimChoices);
|
||||
if (inputEndAnimChoiceIndex < 0)
|
||||
inputEndAnimChoiceIndex = 0;
|
||||
|
||||
inputEndAnimString.stringValue = inputEndAnimChoices[inputEndAnimChoiceIndex];
|
||||
|
||||
EditorGUILayout.PropertyField(OnInputEnd, new GUIContent("On Input End"));
|
||||
EditorGUILayout.EndVertical();
|
||||
|
||||
|
||||
|
||||
serializedObject.ApplyModifiedProperties();
|
||||
}
|
||||
}
|
||||
}
|
||||
11
Assets/Materials/Active/Editor/CustomViewAnalogInput.cs.meta
Normal file
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: f831a7193e7d4a240904498962d0454d
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
168
Assets/Materials/Active/Editor/CustomViewAxisInput.cs
Normal file
@@ -0,0 +1,168 @@
|
||||
using System;
|
||||
using UnityEngine;
|
||||
using UnityEditor;
|
||||
|
||||
/// <summary>
|
||||
/// This script changes the Inpsector view for AxisInput to make the serialized Input field appear at the top of the script in the inspector
|
||||
/// </summary>
|
||||
|
||||
namespace Kineractive
|
||||
{
|
||||
[CustomEditor(typeof(AxisInput))]
|
||||
[CanEditMultipleObjects]
|
||||
public class CustomViewAxisInput : UnityEditor.Editor
|
||||
{
|
||||
SerializedProperty BypassInput;
|
||||
SerializedProperty axisInput;
|
||||
SerializedProperty repeatingInput;
|
||||
SerializedProperty axisPolarity;
|
||||
SerializedProperty handSide;
|
||||
SerializedProperty position;
|
||||
SerializedProperty moveSpeed;
|
||||
SerializedProperty rotateSpeed;
|
||||
SerializedProperty returnPosition;
|
||||
SerializedProperty inputAnim;
|
||||
SerializedProperty OnInput;
|
||||
SerializedProperty inputEndAnim;
|
||||
SerializedProperty OnInputEnd;
|
||||
|
||||
|
||||
SerializedProperty axisInputString;
|
||||
SerializedProperty inputAnimString;
|
||||
SerializedProperty inputEndAnimString;
|
||||
|
||||
protected string[] inputChoices;
|
||||
int inputChoiceIndex = 0;
|
||||
|
||||
protected string[] inputAnimChoices;
|
||||
int inputAnimChoiceIndex = 0;
|
||||
|
||||
protected string[] inputEndAnimChoices;
|
||||
int inputEndAnimChoiceIndex = 0;
|
||||
|
||||
|
||||
void OnEnable()
|
||||
{
|
||||
BypassInput = serializedObject.FindProperty("BypassInput");
|
||||
axisInput = serializedObject.FindProperty("axisInput");
|
||||
repeatingInput = serializedObject.FindProperty("repeatingInput");
|
||||
axisPolarity = serializedObject.FindProperty("axisPolarity");
|
||||
handSide = serializedObject.FindProperty("handSide");
|
||||
position = serializedObject.FindProperty("position");
|
||||
moveSpeed = serializedObject.FindProperty("moveSpeed");
|
||||
rotateSpeed = serializedObject.FindProperty("rotateSpeed");
|
||||
returnPosition = serializedObject.FindProperty("returnPosition");
|
||||
inputAnim = serializedObject.FindProperty("inputAnim");
|
||||
OnInput= serializedObject.FindProperty("OnInput");
|
||||
inputEndAnim = serializedObject.FindProperty("inputEndAnim");
|
||||
OnInputEnd = serializedObject.FindProperty("OnInputEnd");
|
||||
|
||||
KineractiveManager iMan = FindObjectOfType<KineractiveManager>();
|
||||
if (iMan != null)
|
||||
{
|
||||
if (iMan.PlayerInputs != null)
|
||||
{
|
||||
inputChoices = iMan.PlayerInputs.AxisInputs;
|
||||
}
|
||||
else
|
||||
{
|
||||
inputChoices = new string[] { "No 'Player Inputs' set in Interactive Manager" };
|
||||
Debug.LogWarning("'Player Inputs' field in Interactive Manager is empty. Please insert a Player Inputs scriptable object into the empty field.");
|
||||
}
|
||||
|
||||
if (iMan.PlayerAnims != null)
|
||||
{
|
||||
inputAnimChoices = iMan.PlayerAnims.Anims;
|
||||
inputEndAnimChoices = iMan.PlayerAnims.Anims;
|
||||
}
|
||||
else
|
||||
{
|
||||
inputAnimChoices = new string[] { "No 'Player Anims' set in Interactive Manager" };
|
||||
Debug.LogWarning("'Player Anims' field in Interactive Manager is empty. Please insert a Player Anims scriptable object into the empty field.");
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
inputChoices = new string[] { "Not Found: Interactive Manager" };
|
||||
inputAnimChoices = new string[] { "Not Found: Interactive Manager" };
|
||||
inputEndAnimChoices = new string[] { "Not Found: Interactive Manager" };
|
||||
Debug.LogWarning("Interactive Manager not found - Please add the Interactive Manager component to this scene");
|
||||
}
|
||||
|
||||
|
||||
|
||||
axisInputString = serializedObject.FindProperty("axisInputString");
|
||||
inputChoiceIndex = Array.IndexOf(inputChoices, axisInputString.stringValue);
|
||||
|
||||
inputAnimString = serializedObject.FindProperty("inputAnimString");
|
||||
inputAnimChoiceIndex = Array.IndexOf(inputAnimChoices, inputAnimString.stringValue);
|
||||
|
||||
inputEndAnimString = serializedObject.FindProperty("inputEndAnimString");
|
||||
inputEndAnimChoiceIndex = Array.IndexOf(inputEndAnimChoices, inputEndAnimString.stringValue);
|
||||
|
||||
}
|
||||
|
||||
public override void OnInspectorGUI()
|
||||
{
|
||||
serializedObject.Update();
|
||||
CustomViewHelper.DisplayTitle("Axis Input", CustomViewHelper.IconTypes.AxisInput);
|
||||
EditorGUILayout.BeginVertical(CustomViewHelper.BodyBG);
|
||||
CustomViewHelper.DisplayHeader("Input Type");
|
||||
|
||||
|
||||
inputChoiceIndex = EditorGUILayout.Popup("Axis Input", inputChoiceIndex, inputChoices);
|
||||
if (inputChoiceIndex < 0)
|
||||
inputChoiceIndex = 0;
|
||||
|
||||
axisInputString.stringValue = inputChoices[inputChoiceIndex];
|
||||
|
||||
EditorGUILayout.PropertyField(axisPolarity);
|
||||
EditorGUILayout.PropertyField(repeatingInput, new GUIContent("Repeating"));
|
||||
EditorGUILayout.EndVertical();
|
||||
|
||||
EditorGUILayout.BeginVertical(CustomViewHelper.BodyBG);
|
||||
EditorGUILayout.PropertyField(BypassInput, new GUIContent("Bypass", "Turn off this input? Manually here, or by script, or by event."));
|
||||
EditorGUILayout.EndVertical();
|
||||
|
||||
|
||||
|
||||
|
||||
EditorGUILayout.BeginVertical(CustomViewHelper.BodyBG);
|
||||
CustomViewHelper.DisplayHeader("Hands");
|
||||
EditorGUILayout.PropertyField(handSide);
|
||||
EditorGUILayout.PropertyField(moveSpeed);
|
||||
EditorGUILayout.PropertyField(rotateSpeed);
|
||||
EditorGUILayout.EndVertical();
|
||||
|
||||
EditorGUILayout.BeginVertical(CustomViewHelper.BodyBG);
|
||||
CustomViewHelper.DisplayHeader("When Input Starts (Axis is not 0)");
|
||||
EditorGUILayout.PropertyField(position, new GUIContent("Move\\Rotate to:", "The hand will move and rotate to this position when key is pressed (and/or held) down"));
|
||||
|
||||
|
||||
inputAnimChoiceIndex = EditorGUILayout.Popup("Input Animation", inputAnimChoiceIndex, inputAnimChoices);
|
||||
if (inputAnimChoiceIndex < 0)
|
||||
inputAnimChoiceIndex = 0;
|
||||
|
||||
inputAnimString.stringValue = inputAnimChoices[inputAnimChoiceIndex];
|
||||
|
||||
EditorGUILayout.PropertyField(OnInput, new GUIContent("On Input Start"));
|
||||
EditorGUILayout.EndVertical();
|
||||
|
||||
EditorGUILayout.BeginVertical(CustomViewHelper.BodyBG);
|
||||
CustomViewHelper.DisplayHeader("When Input Ends (Axis returns to 0)");
|
||||
EditorGUILayout.PropertyField(returnPosition);
|
||||
|
||||
|
||||
inputEndAnimChoiceIndex = EditorGUILayout.Popup("Input End Animation", inputEndAnimChoiceIndex, inputEndAnimChoices);
|
||||
if (inputEndAnimChoiceIndex < 0)
|
||||
inputEndAnimChoiceIndex = 0;
|
||||
|
||||
inputEndAnimString.stringValue = inputEndAnimChoices[inputEndAnimChoiceIndex];
|
||||
|
||||
EditorGUILayout.PropertyField(OnInputEnd, new GUIContent("On Input End"));
|
||||
EditorGUILayout.EndVertical();
|
||||
|
||||
serializedObject.ApplyModifiedProperties();
|
||||
}
|
||||
}
|
||||
}
|
||||
11
Assets/Materials/Active/Editor/CustomViewAxisInput.cs.meta
Normal file
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 66cd777c23c75ee47989eced51012792
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
167
Assets/Materials/Active/Editor/CustomViewButtonInput.cs
Normal file
@@ -0,0 +1,167 @@
|
||||
using System;
|
||||
using UnityEngine;
|
||||
using UnityEditor;
|
||||
|
||||
namespace Kineractive
|
||||
{
|
||||
[CustomEditor(typeof(ButtonInput))]
|
||||
[CanEditMultipleObjects]
|
||||
public class CustomViewBinaryInput : UnityEditor.Editor
|
||||
{
|
||||
SerializedProperty BypassInput;
|
||||
|
||||
SerializedProperty repeatingInput;
|
||||
|
||||
|
||||
SerializedProperty handSide;
|
||||
SerializedProperty position;
|
||||
SerializedProperty moveSpeed;
|
||||
SerializedProperty rotateSpeed;
|
||||
SerializedProperty returnPosition;
|
||||
|
||||
SerializedProperty OnInput;
|
||||
|
||||
SerializedProperty OnInputEnd;
|
||||
|
||||
SerializedProperty buttonInputString;
|
||||
SerializedProperty inputAnimString;
|
||||
SerializedProperty inputEndAnimString;
|
||||
|
||||
protected string[] inputChoices;
|
||||
int inputChoiceIndex = 0;
|
||||
|
||||
protected string[] inputAnimChoices;
|
||||
int inputAnimChoiceIndex = 0;
|
||||
|
||||
protected string[] inputEndAnimChoices;
|
||||
int inputEndAnimChoiceIndex = 0;
|
||||
|
||||
void OnEnable()
|
||||
{
|
||||
BypassInput = serializedObject.FindProperty("BypassInput");
|
||||
|
||||
repeatingInput = serializedObject.FindProperty("repeatingInput");
|
||||
|
||||
|
||||
handSide = serializedObject.FindProperty("handSide");
|
||||
position = serializedObject.FindProperty("position");
|
||||
moveSpeed = serializedObject.FindProperty("moveSpeed");
|
||||
rotateSpeed = serializedObject.FindProperty("rotateSpeed");
|
||||
returnPosition = serializedObject.FindProperty("returnPosition");
|
||||
|
||||
OnInput = serializedObject.FindProperty("OnInput");
|
||||
|
||||
OnInputEnd = serializedObject.FindProperty("OnInputEnd");
|
||||
|
||||
|
||||
KineractiveManager iMan = FindObjectOfType<KineractiveManager>();
|
||||
if (iMan != null)
|
||||
{
|
||||
if (iMan.PlayerInputs != null)
|
||||
{
|
||||
inputChoices = iMan.PlayerInputs.ButtonInputs;
|
||||
}
|
||||
else
|
||||
{
|
||||
inputChoices = new string[] { "No 'Player Inputs' set in Interactive Manager" };
|
||||
Debug.LogWarning("'Player Inputs' field in Interactive Manager is empty. Please insert a Player Inputs scriptable object into the empty field.");
|
||||
}
|
||||
|
||||
if (iMan.PlayerAnims != null)
|
||||
{
|
||||
inputAnimChoices = iMan.PlayerAnims.Anims;
|
||||
inputEndAnimChoices = iMan.PlayerAnims.Anims;
|
||||
}
|
||||
else
|
||||
{
|
||||
inputAnimChoices = new string[] { "No 'Player Anims' set in Interactive Manager" };
|
||||
Debug.LogWarning("'Player Anims' field in Interactive Manager is empty. Please insert a Player Anims scriptable object into the empty field.");
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
inputChoices = new string[] { "Not Found: Interactive Manager" };
|
||||
inputAnimChoices = new string[] { "Not Found: Interactive Manager" };
|
||||
inputEndAnimChoices = new string[] { "Not Found: Interactive Manager" };
|
||||
Debug.LogWarning("Interactive Manager not found - Please add the Interactive Manager component to this scene");
|
||||
}
|
||||
|
||||
|
||||
|
||||
buttonInputString = serializedObject.FindProperty("buttonInputString");
|
||||
inputChoiceIndex = Array.IndexOf(inputChoices, buttonInputString.stringValue);
|
||||
|
||||
inputAnimString = serializedObject.FindProperty("inputAnimString");
|
||||
inputAnimChoiceIndex = Array.IndexOf(inputAnimChoices, inputAnimString.stringValue);
|
||||
|
||||
inputEndAnimString = serializedObject.FindProperty("inputEndAnimString");
|
||||
inputEndAnimChoiceIndex = Array.IndexOf(inputEndAnimChoices, inputEndAnimString.stringValue);
|
||||
|
||||
|
||||
}
|
||||
|
||||
public override void OnInspectorGUI()
|
||||
{
|
||||
serializedObject.Update();
|
||||
|
||||
|
||||
|
||||
CustomViewHelper.DisplayTitle("Button Input", CustomViewHelper.IconTypes.ButtonInput);
|
||||
EditorGUILayout.BeginVertical(CustomViewHelper.BodyBG);
|
||||
|
||||
CustomViewHelper.DisplayHeader("Input Type");
|
||||
|
||||
inputChoiceIndex = EditorGUILayout.Popup("Button Input", inputChoiceIndex, inputChoices);
|
||||
if (inputChoiceIndex < 0)
|
||||
inputChoiceIndex = 0;
|
||||
|
||||
buttonInputString.stringValue = inputChoices[inputChoiceIndex];
|
||||
EditorGUILayout.PropertyField(repeatingInput, new GUIContent("Repeating Input", ""));
|
||||
|
||||
EditorGUILayout.EndVertical();
|
||||
|
||||
EditorGUILayout.BeginVertical(CustomViewHelper.BodyBG);
|
||||
EditorGUILayout.PropertyField(BypassInput, new GUIContent("Bypass", "Turn off this input? Manually here, or by script, or by event."));
|
||||
EditorGUILayout.EndVertical();
|
||||
|
||||
EditorGUILayout.BeginVertical(CustomViewHelper.BodyBG);
|
||||
CustomViewHelper.DisplayHeader("Hands");
|
||||
EditorGUILayout.PropertyField(handSide);
|
||||
EditorGUILayout.PropertyField(moveSpeed);
|
||||
EditorGUILayout.PropertyField(rotateSpeed);
|
||||
EditorGUILayout.EndVertical();
|
||||
|
||||
EditorGUILayout.BeginVertical(CustomViewHelper.BodyBG);
|
||||
CustomViewHelper.DisplayHeader("When Input Starts (Button Is Down / Pushed)");
|
||||
EditorGUILayout.PropertyField(position, new GUIContent("Move\\Rotate to:", "The hand will move and rotate to this position when key is pressed (and/or held) down"));
|
||||
|
||||
|
||||
|
||||
inputAnimChoiceIndex = EditorGUILayout.Popup("Input Animation", inputAnimChoiceIndex, inputAnimChoices);
|
||||
if (inputAnimChoiceIndex < 0)
|
||||
inputAnimChoiceIndex = 0;
|
||||
|
||||
inputAnimString.stringValue = inputAnimChoices[inputAnimChoiceIndex];
|
||||
|
||||
|
||||
EditorGUILayout.PropertyField(OnInput, new GUIContent("On Input Start"));
|
||||
EditorGUILayout.EndVertical();
|
||||
|
||||
EditorGUILayout.BeginVertical(CustomViewHelper.BodyBG);
|
||||
CustomViewHelper.DisplayHeader("When Input Ends (Button Is Up / Released)");
|
||||
EditorGUILayout.PropertyField(returnPosition);
|
||||
|
||||
|
||||
inputEndAnimChoiceIndex = EditorGUILayout.Popup("Input End Animation", inputEndAnimChoiceIndex, inputEndAnimChoices);
|
||||
if (inputEndAnimChoiceIndex < 0)
|
||||
inputEndAnimChoiceIndex = 0;
|
||||
|
||||
inputEndAnimString.stringValue = inputEndAnimChoices[inputEndAnimChoiceIndex];
|
||||
|
||||
EditorGUILayout.PropertyField(OnInputEnd, new GUIContent("On Input End"));
|
||||
EditorGUILayout.EndVertical();
|
||||
|
||||
serializedObject.ApplyModifiedProperties();
|
||||
}
|
||||
}
|
||||
}
|
||||
11
Assets/Materials/Active/Editor/CustomViewButtonInput.cs.meta
Normal file
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 3753ec794844bd34caa58d9635412f61
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,58 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using UnityEditor;
|
||||
|
||||
namespace Kineractive
|
||||
{
|
||||
[CustomEditor(typeof(Ent_AudioClipPlayer))]
|
||||
[CanEditMultipleObjects]
|
||||
public class CustomViewEntAudioClipPlayer : UnityEditor.Editor
|
||||
{
|
||||
|
||||
SerializedProperty audioClip;
|
||||
SerializedProperty playOnStart;
|
||||
SerializedProperty interruptCurrentClip;
|
||||
SerializedProperty volumeChangeAmount;
|
||||
SerializedProperty pitchChangeAmount;
|
||||
SerializedProperty minPitch;
|
||||
SerializedProperty maxPitch;
|
||||
|
||||
|
||||
void OnEnable()
|
||||
{
|
||||
audioClip = serializedObject.FindProperty("audioClip");
|
||||
playOnStart = serializedObject.FindProperty("playOnStart");
|
||||
interruptCurrentClip = serializedObject.FindProperty("interruptCurrentClip");
|
||||
volumeChangeAmount = serializedObject.FindProperty("volumeChangeAmount");
|
||||
pitchChangeAmount = serializedObject.FindProperty("pitchChangeAmount");
|
||||
minPitch = serializedObject.FindProperty("minPitch");
|
||||
maxPitch = serializedObject.FindProperty("maxPitch");
|
||||
}
|
||||
|
||||
public override void OnInspectorGUI()
|
||||
{
|
||||
serializedObject.Update();
|
||||
CustomViewHelper.DisplayTitle("Audio Clip Player", CustomViewHelper.IconTypes.Audio);
|
||||
EditorGUILayout.BeginVertical(CustomViewHelper.BodyBG);
|
||||
|
||||
EditorGUILayout.PropertyField(audioClip);
|
||||
EditorGUILayout.PropertyField(playOnStart);
|
||||
|
||||
EditorGUILayout.PropertyField(interruptCurrentClip);
|
||||
EditorGUILayout.EndVertical();
|
||||
|
||||
EditorGUILayout.BeginVertical(CustomViewHelper.BodyBG);
|
||||
EditorGUILayout.PropertyField(volumeChangeAmount);
|
||||
EditorGUILayout.EndVertical();
|
||||
|
||||
EditorGUILayout.BeginVertical(CustomViewHelper.BodyBG);
|
||||
EditorGUILayout.PropertyField(pitchChangeAmount);
|
||||
EditorGUILayout.PropertyField(minPitch);
|
||||
EditorGUILayout.PropertyField(maxPitch);
|
||||
EditorGUILayout.EndVertical();
|
||||
|
||||
serializedObject.ApplyModifiedProperties();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 98d6180f6441e9543b3c2d6df4fb98e2
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
57
Assets/Materials/Active/Editor/CustomViewEntLight.cs
Normal file
@@ -0,0 +1,57 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using UnityEditor;
|
||||
|
||||
namespace Kineractive
|
||||
{
|
||||
[CustomEditor(typeof(Ent_Light))]
|
||||
[CanEditMultipleObjects]
|
||||
public class CustomViewEntLight : UnityEditor.Editor
|
||||
{
|
||||
|
||||
SerializedProperty intensityStep;
|
||||
SerializedProperty rangeStep;
|
||||
|
||||
SerializedProperty minIntensity;
|
||||
SerializedProperty maxIntensity;
|
||||
SerializedProperty minRange;
|
||||
SerializedProperty maxRange;
|
||||
|
||||
|
||||
void OnEnable()
|
||||
{
|
||||
intensityStep = serializedObject.FindProperty("intensityStep");
|
||||
rangeStep = serializedObject.FindProperty("rangeStep");
|
||||
|
||||
minIntensity = serializedObject.FindProperty("minIntensity");
|
||||
maxIntensity = serializedObject.FindProperty("maxIntensity");
|
||||
minRange = serializedObject.FindProperty("minRange");
|
||||
maxRange = serializedObject.FindProperty("maxRange");
|
||||
}
|
||||
|
||||
public override void OnInspectorGUI()
|
||||
{
|
||||
serializedObject.Update();
|
||||
CustomViewHelper.DisplayTitle("Light", CustomViewHelper.IconTypes.Light);
|
||||
EditorGUILayout.BeginVertical(CustomViewHelper.BodyBG);
|
||||
EditorGUILayout.PropertyField(intensityStep);
|
||||
EditorGUILayout.PropertyField(rangeStep);
|
||||
EditorGUILayout.EndVertical();
|
||||
|
||||
EditorGUILayout.BeginVertical(CustomViewHelper.BodyBG);
|
||||
CustomViewHelper.DisplayHeader("Light Intensity");
|
||||
EditorGUILayout.PropertyField(minIntensity);
|
||||
EditorGUILayout.PropertyField(maxIntensity);
|
||||
EditorGUILayout.EndVertical();
|
||||
|
||||
EditorGUILayout.BeginVertical(CustomViewHelper.BodyBG);
|
||||
CustomViewHelper.DisplayHeader("Light Range");
|
||||
EditorGUILayout.PropertyField(minRange);
|
||||
EditorGUILayout.PropertyField(maxRange);
|
||||
EditorGUILayout.EndVertical();
|
||||
|
||||
serializedObject.ApplyModifiedProperties();
|
||||
}
|
||||
}
|
||||
}
|
||||
11
Assets/Materials/Active/Editor/CustomViewEntLight.cs.meta
Normal file
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: d050cefe1be9da34bbca09d49c609dd8
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
173
Assets/Materials/Active/Editor/CustomViewHelper.cs
Normal file
@@ -0,0 +1,173 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using UnityEditor;
|
||||
|
||||
namespace Kineractive
|
||||
{
|
||||
public class CustomViewHelper : UnityEditor.Editor
|
||||
{
|
||||
public enum IconTypes
|
||||
{
|
||||
Manager,
|
||||
Trigger,
|
||||
Resting,
|
||||
KeyCodeInput,
|
||||
ButtonInput,
|
||||
AxisInput,
|
||||
SelfInput,
|
||||
Button,
|
||||
Rotator,
|
||||
RotatorAnalog,
|
||||
MoverAnalog,
|
||||
Light,
|
||||
Shortcut,
|
||||
Audio,
|
||||
Swapper,
|
||||
Mover,
|
||||
AnalogInput
|
||||
}
|
||||
|
||||
|
||||
private static GUIStyle GetIcon(IconTypes iconType)
|
||||
{
|
||||
|
||||
GUIStyle managerIcon;
|
||||
Texture2D titleTexture = Resources.Load<Texture2D>(iconType.ToString());
|
||||
managerIcon = new GUIStyle(GUI.skin.box);
|
||||
managerIcon.normal.background = titleTexture;
|
||||
|
||||
|
||||
return managerIcon;
|
||||
}
|
||||
|
||||
|
||||
private static GUIStyle TitleText
|
||||
{
|
||||
get
|
||||
{
|
||||
GUIStyle titleText;
|
||||
|
||||
Font titleFont = (Font)Resources.GetBuiltinResource(typeof(Font), "Arial.ttf");
|
||||
if (titleFont == null) { titleFont = EditorStyles.standardFont; }
|
||||
|
||||
titleText = new GUIStyle(GUI.skin.label);
|
||||
titleText.font = titleFont;
|
||||
titleText.fontSize = 18;
|
||||
titleText.fontStyle = FontStyle.Bold;
|
||||
titleText.normal.textColor = (new Color(.2f,.2f,.2f));
|
||||
titleText.fixedHeight = 33f;
|
||||
titleText.alignment = TextAnchor.MiddleLeft;
|
||||
|
||||
return titleText;
|
||||
}
|
||||
}
|
||||
|
||||
private static GUIStyle HeadingText
|
||||
{
|
||||
get
|
||||
{
|
||||
GUIStyle headingText;
|
||||
Font heading1Font = (Font)Resources.GetBuiltinResource(typeof(Font), "Arial.ttf");
|
||||
|
||||
headingText = new GUIStyle(GUI.skin.label);
|
||||
headingText.font = heading1Font;
|
||||
headingText.fontSize = 12;
|
||||
|
||||
headingText.normal.textColor = (new Color(.0f, .66f, 1f));
|
||||
headingText.fixedHeight = 18f;
|
||||
headingText.fixedWidth = 300f;
|
||||
|
||||
|
||||
|
||||
return headingText;
|
||||
}
|
||||
}
|
||||
|
||||
private static GUIStyle TitleBG
|
||||
{
|
||||
get
|
||||
{
|
||||
GUIStyle titleBG;
|
||||
|
||||
Texture2D bgTexture = Resources.Load<Texture2D>("BGTitle");
|
||||
|
||||
titleBG = new GUIStyle(GUI.skin.box);
|
||||
titleBG.normal.background = bgTexture;
|
||||
|
||||
|
||||
|
||||
return titleBG;
|
||||
}
|
||||
}
|
||||
|
||||
private static GUIStyle HeaderBG
|
||||
{
|
||||
get
|
||||
{
|
||||
GUIStyle headerBG;
|
||||
|
||||
Texture2D bgTexture = Resources.Load<Texture2D>("BGHeader");
|
||||
|
||||
headerBG = new GUIStyle(GUI.skin.box);
|
||||
headerBG.normal.background = bgTexture;
|
||||
|
||||
return headerBG;
|
||||
}
|
||||
}
|
||||
|
||||
public static GUIStyle BodyBG
|
||||
{
|
||||
get
|
||||
{
|
||||
GUIStyle bodyBG;
|
||||
|
||||
Texture2D bgTexture = Resources.Load<Texture2D>(EditorGUIUtility.isProSkin ? "BGGroupPro" : "BGGroupPersonal");
|
||||
|
||||
bodyBG = new GUIStyle(GUI.skin.box);
|
||||
bodyBG.normal.background = bgTexture;
|
||||
|
||||
return bodyBG;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public static void DisplayTitle(string titleText, IconTypes iconType)
|
||||
{
|
||||
EditorGUILayout.BeginHorizontal(TitleBG);
|
||||
|
||||
EditorGUILayout.LabelField("", GetIcon(iconType), GUILayout.Width(32f), GUILayout.Height(32f));
|
||||
|
||||
GUILayout.Space(5);
|
||||
|
||||
EditorGUILayout.LabelField(titleText, TitleText);
|
||||
|
||||
GUILayout.FlexibleSpace();
|
||||
EditorGUILayout.EndHorizontal();
|
||||
}
|
||||
|
||||
public static void DisplayHeader(string headerText)
|
||||
{
|
||||
EditorGUILayout.BeginHorizontal(HeaderBG);
|
||||
|
||||
GUILayout.Space(5);
|
||||
|
||||
EditorGUILayout.LabelField(headerText, HeadingText);
|
||||
|
||||
GUILayout.FlexibleSpace();
|
||||
|
||||
EditorGUILayout.EndHorizontal();
|
||||
}
|
||||
|
||||
//Thanks alexanderameye from Unity Forum!
|
||||
public static void DrawUILine(Color color, int thickness = 2, int padding = 10)
|
||||
{
|
||||
Rect r = EditorGUILayout.GetControlRect(GUILayout.Height(padding + thickness));
|
||||
r.height = thickness;
|
||||
r.y += padding / 2;
|
||||
r.x -= 2;
|
||||
r.width += 6;
|
||||
EditorGUI.DrawRect(r, color);
|
||||
}
|
||||
}
|
||||
}
|
||||
11
Assets/Materials/Active/Editor/CustomViewHelper.cs.meta
Normal file
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: fa77dd99a18f8c94cb390b731ab9abcd
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
64
Assets/Materials/Active/Editor/CustomViewInputHandler.cs
Normal file
@@ -0,0 +1,64 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using UnityEditor;
|
||||
|
||||
namespace Kineractive
|
||||
{
|
||||
[CustomEditor(typeof(InputHandler))]
|
||||
[CanEditMultipleObjects]
|
||||
public class CustomViewInputHandler : UnityEditor.Editor
|
||||
{
|
||||
SerializedProperty usageInstructions;
|
||||
SerializedProperty controlsIconTexture;
|
||||
SerializedProperty crosshairTexture;
|
||||
SerializedProperty crosshairScale;
|
||||
SerializedProperty maxInteractionRange;
|
||||
SerializedProperty KineractiveInputs;
|
||||
|
||||
|
||||
|
||||
void OnEnable()
|
||||
{
|
||||
usageInstructions = serializedObject.FindProperty("usageInstructions");
|
||||
controlsIconTexture = serializedObject.FindProperty("controlsIconTexture");
|
||||
crosshairTexture = serializedObject.FindProperty("crosshairTexture");
|
||||
crosshairScale = serializedObject.FindProperty("crosshairScale");
|
||||
maxInteractionRange = serializedObject.FindProperty("maxInteractionRange");
|
||||
KineractiveInputs = serializedObject.FindProperty("KineractiveInputs");
|
||||
|
||||
}
|
||||
|
||||
public override void OnInspectorGUI()
|
||||
{
|
||||
serializedObject.Update();
|
||||
|
||||
if (!EditorApplication.isPlaying)
|
||||
{
|
||||
GameObject go = Selection.activeGameObject;
|
||||
InputHandler ih = go.GetComponent<InputHandler>();
|
||||
ih.enabled = false;
|
||||
}
|
||||
|
||||
|
||||
CustomViewHelper.DisplayTitle("Input Handler", CustomViewHelper.IconTypes.Trigger);
|
||||
EditorGUILayout.BeginVertical(CustomViewHelper.BodyBG);
|
||||
EditorGUILayout.PropertyField(maxInteractionRange);
|
||||
EditorGUILayout.EndVertical();
|
||||
EditorGUILayout.BeginVertical(CustomViewHelper.BodyBG);
|
||||
CustomViewHelper.DisplayHeader("UI & Feedback");
|
||||
EditorGUILayout.PropertyField(usageInstructions);
|
||||
EditorGUILayout.PropertyField(controlsIconTexture);
|
||||
EditorGUILayout.PropertyField(crosshairTexture);
|
||||
EditorGUILayout.PropertyField(crosshairScale);
|
||||
EditorGUILayout.EndVertical();
|
||||
|
||||
EditorGUILayout.BeginVertical(CustomViewHelper.BodyBG);
|
||||
CustomViewHelper.DisplayHeader("Inputs To Check");
|
||||
EditorGUILayout.PropertyField(KineractiveInputs, true);
|
||||
EditorGUILayout.EndVertical();
|
||||
|
||||
serializedObject.ApplyModifiedProperties();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 33b5d0d11c70e04498978e694585bbc4
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,33 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using UnityEditor;
|
||||
|
||||
namespace Kineractive
|
||||
{
|
||||
[CustomEditor(typeof(InputHandlerResting))]
|
||||
[CanEditMultipleObjects]
|
||||
public class CustomViewRestingInteractive : UnityEditor.Editor
|
||||
{
|
||||
|
||||
SerializedProperty KineractiveInputs;
|
||||
|
||||
|
||||
void OnEnable()
|
||||
{
|
||||
KineractiveInputs = serializedObject.FindProperty("KineractiveInputs");
|
||||
}
|
||||
|
||||
public override void OnInspectorGUI()
|
||||
{
|
||||
serializedObject.Update();
|
||||
CustomViewHelper.DisplayTitle("Input Handler Resting", CustomViewHelper.IconTypes.Resting);
|
||||
EditorGUILayout.BeginVertical(CustomViewHelper.BodyBG);
|
||||
CustomViewHelper.DisplayHeader("Inputs To Check");
|
||||
EditorGUILayout.PropertyField(KineractiveInputs, true);
|
||||
EditorGUILayout.EndVertical();
|
||||
|
||||
serializedObject.ApplyModifiedProperties();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 1c36719396bf3234a910ccffd4314a55
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
134
Assets/Materials/Active/Editor/CustomViewKeyCodeInput.cs
Normal file
@@ -0,0 +1,134 @@
|
||||
using System;
|
||||
using UnityEngine;
|
||||
using UnityEditor;
|
||||
|
||||
namespace Kineractive
|
||||
{
|
||||
[CustomEditor(typeof(KeycodeInput))]
|
||||
[CanEditMultipleObjects]
|
||||
public class CustomViewKeyCodeInput : UnityEditor.Editor
|
||||
{
|
||||
SerializedProperty BypassInput;
|
||||
SerializedProperty keyCodeInput;
|
||||
SerializedProperty repeatingInput;
|
||||
SerializedProperty handSide;
|
||||
SerializedProperty position;
|
||||
SerializedProperty moveSpeed;
|
||||
SerializedProperty rotateSpeed;
|
||||
SerializedProperty returnPosition;
|
||||
|
||||
SerializedProperty OnInput;
|
||||
|
||||
SerializedProperty OnInputEnd;
|
||||
|
||||
|
||||
SerializedProperty inputAnimString;
|
||||
SerializedProperty inputEndAnimString;
|
||||
|
||||
protected string[] inputAnimChoices;
|
||||
int inputAnimChoiceIndex = 0;
|
||||
|
||||
protected string[] inputEndAnimChoices;
|
||||
int inputEndAnimChoiceIndex = 0;
|
||||
|
||||
|
||||
|
||||
|
||||
void OnEnable()
|
||||
{
|
||||
BypassInput = serializedObject.FindProperty("BypassInput");
|
||||
keyCodeInput = serializedObject.FindProperty("keyCodeInput");
|
||||
repeatingInput = serializedObject.FindProperty("repeatingInput");
|
||||
handSide = serializedObject.FindProperty("handSide");
|
||||
position = serializedObject.FindProperty("position");
|
||||
moveSpeed = serializedObject.FindProperty("moveSpeed");
|
||||
rotateSpeed = serializedObject.FindProperty("rotateSpeed");
|
||||
returnPosition = serializedObject.FindProperty("returnPosition");
|
||||
|
||||
OnInput = serializedObject.FindProperty("OnInput");
|
||||
|
||||
OnInputEnd = serializedObject.FindProperty("OnInputEnd");
|
||||
|
||||
KineractiveManager iMan = FindObjectOfType<KineractiveManager>();
|
||||
if (iMan != null)
|
||||
{
|
||||
if (iMan.PlayerAnims != null)
|
||||
{
|
||||
inputAnimChoices = iMan.PlayerAnims.Anims;
|
||||
inputEndAnimChoices = iMan.PlayerAnims.Anims;
|
||||
}
|
||||
else
|
||||
{
|
||||
inputAnimChoices = new string[] { "No 'Player Anims' set in Interactive Manager" };
|
||||
Debug.LogWarning("'Player Anims' field in Interactive Manager is empty. Please insert a Player Anims scriptable object into the empty field.");
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
inputAnimChoices = new string[] { "Not Found: Interactive Manager" };
|
||||
inputEndAnimChoices = new string[] { "Not Found: Interactive Manager" };
|
||||
Debug.LogWarning("Interactive Manager not found - Please add the Interactive Manager component to this scene");
|
||||
}
|
||||
|
||||
inputAnimString = serializedObject.FindProperty("inputAnimString");
|
||||
inputAnimChoiceIndex = Array.IndexOf(inputAnimChoices, inputAnimString.stringValue);
|
||||
|
||||
inputEndAnimString = serializedObject.FindProperty("inputEndAnimString");
|
||||
inputEndAnimChoiceIndex = Array.IndexOf(inputEndAnimChoices, inputEndAnimString.stringValue);
|
||||
|
||||
}
|
||||
|
||||
public override void OnInspectorGUI()
|
||||
{
|
||||
serializedObject.Update();
|
||||
CustomViewHelper.DisplayTitle("Key Code Input", CustomViewHelper.IconTypes.KeyCodeInput);
|
||||
EditorGUILayout.BeginVertical(CustomViewHelper.BodyBG);
|
||||
CustomViewHelper.DisplayHeader("Input Type");
|
||||
EditorGUILayout.PropertyField(keyCodeInput);
|
||||
EditorGUILayout.PropertyField(repeatingInput, new GUIContent("Repeating"));
|
||||
EditorGUILayout.EndVertical();
|
||||
|
||||
EditorGUILayout.BeginVertical(CustomViewHelper.BodyBG);
|
||||
EditorGUILayout.PropertyField(BypassInput, new GUIContent("Bypass", "Turn off this input? Manually here, or by script, or by event."));
|
||||
EditorGUILayout.EndVertical();
|
||||
|
||||
|
||||
EditorGUILayout.BeginVertical(CustomViewHelper.BodyBG);
|
||||
CustomViewHelper.DisplayHeader("Hands");
|
||||
EditorGUILayout.PropertyField(handSide);
|
||||
EditorGUILayout.PropertyField(moveSpeed);
|
||||
EditorGUILayout.PropertyField(rotateSpeed);
|
||||
EditorGUILayout.EndVertical();
|
||||
|
||||
EditorGUILayout.BeginVertical(CustomViewHelper.BodyBG);
|
||||
CustomViewHelper.DisplayHeader("When Input Starts");
|
||||
EditorGUILayout.PropertyField(position, new GUIContent("Move\\Rotate to:", "The hand will move and rotate to this position when key is pressed (and/or held) down"));
|
||||
|
||||
|
||||
inputAnimChoiceIndex = EditorGUILayout.Popup("Input Animation", inputAnimChoiceIndex, inputAnimChoices);
|
||||
if (inputAnimChoiceIndex < 0)
|
||||
inputAnimChoiceIndex = 0;
|
||||
|
||||
inputAnimString.stringValue = inputAnimChoices[inputAnimChoiceIndex];
|
||||
|
||||
EditorGUILayout.PropertyField(OnInput, new GUIContent("On Input Start"));
|
||||
EditorGUILayout.EndVertical();
|
||||
|
||||
EditorGUILayout.BeginVertical(CustomViewHelper.BodyBG);
|
||||
CustomViewHelper.DisplayHeader("When Input Ends");
|
||||
EditorGUILayout.PropertyField(returnPosition);
|
||||
|
||||
|
||||
inputEndAnimChoiceIndex = EditorGUILayout.Popup("Input End Animation", inputEndAnimChoiceIndex, inputEndAnimChoices);
|
||||
if (inputEndAnimChoiceIndex < 0)
|
||||
inputEndAnimChoiceIndex = 0;
|
||||
|
||||
inputEndAnimString.stringValue = inputEndAnimChoices[inputEndAnimChoiceIndex];
|
||||
|
||||
EditorGUILayout.PropertyField(OnInputEnd, new GUIContent("On Input End"));
|
||||
EditorGUILayout.EndVertical();
|
||||
|
||||
serializedObject.ApplyModifiedProperties();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 845faae2481386e4c89a226de605bc10
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
161
Assets/Materials/Active/Editor/CustomViewKineractiveManager.cs
Normal file
@@ -0,0 +1,161 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using UnityEditor;
|
||||
|
||||
namespace Kineractive
|
||||
{
|
||||
[CustomEditor(typeof(KineractiveManager))]
|
||||
[CanEditMultipleObjects]
|
||||
public class CustomViewKineractiveManager : UnityEditor.Editor
|
||||
{
|
||||
SerializedProperty interactChecksPerSec;
|
||||
SerializedProperty rayDistance;
|
||||
SerializedProperty rayOriginTransform;
|
||||
SerializedProperty layerMask;
|
||||
|
||||
|
||||
SerializedProperty returnToRestMoveSpeed;
|
||||
SerializedProperty returnToRestRotateSpeed;
|
||||
SerializedProperty idleMoveSpeed;
|
||||
SerializedProperty idleRotateSpeed;
|
||||
|
||||
SerializedProperty leftHandHelper;
|
||||
SerializedProperty rightHandHelper;
|
||||
SerializedProperty leftHandRest;
|
||||
SerializedProperty rightHandRest;
|
||||
|
||||
SerializedProperty handAnimator;
|
||||
|
||||
|
||||
SerializedProperty leftFootHelper;
|
||||
SerializedProperty rightFootHelper;
|
||||
|
||||
|
||||
SerializedProperty interactionText;
|
||||
SerializedProperty backgroundImage;
|
||||
SerializedProperty controlsIcon;
|
||||
SerializedProperty crosshair;
|
||||
SerializedProperty defaultCrosshairScale;
|
||||
|
||||
SerializedProperty audioSourceObject;
|
||||
|
||||
SerializedProperty playerInputs;
|
||||
SerializedProperty playerAnims;
|
||||
|
||||
|
||||
|
||||
void OnEnable()
|
||||
{
|
||||
interactChecksPerSec = serializedObject.FindProperty("interactChecksPerSec");
|
||||
rayDistance = serializedObject.FindProperty("rayDistance");
|
||||
rayOriginTransform = serializedObject.FindProperty("rayOriginTransform");
|
||||
layerMask = serializedObject.FindProperty("layerMask");
|
||||
|
||||
returnToRestMoveSpeed = serializedObject.FindProperty("returnToRestMoveSpeed");
|
||||
returnToRestRotateSpeed = serializedObject.FindProperty("returnToRestRotateSpeed");
|
||||
idleMoveSpeed = serializedObject.FindProperty("idleMoveSpeed");
|
||||
idleRotateSpeed = serializedObject.FindProperty("idleRotateSpeed");
|
||||
|
||||
|
||||
leftHandHelper = serializedObject.FindProperty("leftHandHelper");
|
||||
rightHandHelper = serializedObject.FindProperty("rightHandHelper");
|
||||
leftHandRest = serializedObject.FindProperty("leftHandRest");
|
||||
rightHandRest = serializedObject.FindProperty("rightHandRest");
|
||||
|
||||
|
||||
leftFootHelper = serializedObject.FindProperty("leftFootHelper");
|
||||
rightFootHelper = serializedObject.FindProperty("rightFootHelper");
|
||||
|
||||
handAnimator = serializedObject.FindProperty("handAnimator");
|
||||
|
||||
|
||||
interactionText = serializedObject.FindProperty("interactionText");
|
||||
backgroundImage = serializedObject.FindProperty("backgroundImage");
|
||||
controlsIcon = serializedObject.FindProperty("controlsIcon");
|
||||
crosshair = serializedObject.FindProperty("crosshair");
|
||||
defaultCrosshairScale = serializedObject.FindProperty("defaultCrosshairScale");
|
||||
|
||||
|
||||
audioSourceObject = serializedObject.FindProperty("audioSourceObject");
|
||||
|
||||
playerInputs = serializedObject.FindProperty("playerInputs");
|
||||
playerAnims = serializedObject.FindProperty("playerAnims");
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
public override void OnInspectorGUI()
|
||||
{
|
||||
serializedObject.Update();
|
||||
|
||||
CustomViewHelper.DisplayTitle("Kineractive Manager", CustomViewHelper.IconTypes.Manager);
|
||||
|
||||
EditorGUILayout.BeginVertical(CustomViewHelper.BodyBG);
|
||||
CustomViewHelper.DisplayHeader("Detection");
|
||||
EditorGUILayout.PropertyField(interactChecksPerSec, new GUIContent("Interact Checks Per/Sec", "How often the ray is fired to find \"Interactive Triggers\"."));
|
||||
EditorGUILayout.PropertyField(rayDistance, new GUIContent("Ray Distance", "How far the ray is fired."));
|
||||
EditorGUILayout.PropertyField(rayOriginTransform, new GUIContent("Ray Origin", "Start position of the ray."));
|
||||
EditorGUILayout.PropertyField(layerMask, new GUIContent("Layer Mask", "The ray will hit these layers only."));
|
||||
EditorGUILayout.EndVertical();
|
||||
|
||||
EditorGUILayout.BeginVertical(CustomViewHelper.BodyBG);
|
||||
CustomViewHelper.DisplayHeader("Hands");
|
||||
|
||||
EditorGUILayout.LabelField("Transforms", EditorStyles.boldLabel);
|
||||
EditorGUILayout.PropertyField(leftHandHelper, new GUIContent("Left Hand Helper", "The left hand IK always follows this transform. The \"Interaction_x\" scripts move this transform around."));
|
||||
EditorGUILayout.PropertyField(rightHandHelper, new GUIContent("Right Hand Helper", "The right hand IK always follows this transform. The \"Interaction_x\" scripts move this transform around."));
|
||||
EditorGUILayout.PropertyField(leftHandRest, new GUIContent("Left Hand Rest", "This is the default \"rest\" position\\rotation. The left hand will always return to here when no interactives are enabled - put this on your gun, steering wheel, joystick, etc."));
|
||||
EditorGUILayout.PropertyField(rightHandRest, new GUIContent("Right Hand Rest", "his is the default \"rest\" position\\rotation. The right hand will always return to here when no interactives are enabled - put this on your gun, steering wheel, joystick, etc."));
|
||||
|
||||
|
||||
EditorGUILayout.LabelField("", EditorStyles.boldLabel);
|
||||
EditorGUILayout.LabelField("Speeds", EditorStyles.boldLabel);
|
||||
EditorGUILayout.PropertyField(returnToRestMoveSpeed, new GUIContent("Return To Rest Move Speed", "How fast the hands return to the \"rest\" transform's position."));
|
||||
EditorGUILayout.PropertyField(returnToRestRotateSpeed, new GUIContent("Return To Rest Rotate Speed", "How fast the hands rotate to match \"rest\" transform rotation."));
|
||||
EditorGUILayout.PropertyField(idleMoveSpeed, new GUIContent("Idle Move Speed", "When the hands are at the \"rest\" position, the move speed is increased dramatically so that it can keep up with what they are attached to e.g. e.g. a moving joystick/wheel or a swaying gun etc."));
|
||||
EditorGUILayout.PropertyField(idleRotateSpeed,new GUIContent("Idle Rotate Speed", "When the hands are at the \"rest\" position, the rotation speed is increased dramatically so that it can keep up with what they are attached to e.g. a moving joystick/wheel or a swaying gun etc."));
|
||||
|
||||
|
||||
EditorGUILayout.LabelField("", EditorStyles.boldLabel);
|
||||
EditorGUILayout.LabelField("Animation", EditorStyles.boldLabel);
|
||||
EditorGUILayout.PropertyField(handAnimator, new GUIContent("Hand Animator", "The animator that controls what the fingers on the hand do (point, grip, thumbs up, etc). It is not required, as the IK does most of the work, but for games where the hands are visible up close, it looks better to have fingers moving to suit what they are touching."));
|
||||
EditorGUILayout.PropertyField(playerAnims, new GUIContent("Player Anims", "A list of animations which can be used by Kineractive"));
|
||||
EditorGUILayout.EndVertical();
|
||||
|
||||
|
||||
EditorGUILayout.BeginVertical(CustomViewHelper.BodyBG);
|
||||
CustomViewHelper.DisplayHeader("Feet");
|
||||
|
||||
EditorGUILayout.PropertyField(leftFootHelper, new GUIContent("Left Foot Helper", "The left Foot IK always follows this transform. The \"Interaction_x\" scripts move this transform around."));
|
||||
EditorGUILayout.PropertyField(rightFootHelper, new GUIContent("Right Foot Helper", "The right Foot IK always follows this transform. The \"Interaction_x\" scripts move this transform around."));
|
||||
|
||||
EditorGUILayout.EndVertical();
|
||||
|
||||
|
||||
EditorGUILayout.BeginVertical(CustomViewHelper.BodyBG);
|
||||
CustomViewHelper.DisplayHeader("UI");
|
||||
EditorGUILayout.PropertyField(interactionText, new GUIContent("Interaction Text", "This field helps other scripts find the Text box which they will use to put their interaction instructions on when the player looks at an interactive object"));
|
||||
EditorGUILayout.PropertyField(backgroundImage, new GUIContent("Text Background", "This field helps other scripts find the image which is used as a background for the text instructions"));
|
||||
EditorGUILayout.PropertyField(controlsIcon, new GUIContent("Controls Icon", "This field helps other scripts find the icon field on the UI canvas - they will display their help icons here"));
|
||||
EditorGUILayout.PropertyField(crosshair, new GUIContent("Crosshair", "This field helps other scripts find the crosshair on the UI canvas which changes to display various crosshairs or icons as set in the currently enabled Interactive Trigger object"));
|
||||
EditorGUILayout.PropertyField(defaultCrosshairScale, new GUIContent("Default Crosshair Scale", "The size the crosshair should return to after it has been modified by an Interactive Trigger"));
|
||||
EditorGUILayout.EndVertical();
|
||||
|
||||
EditorGUILayout.BeginVertical(CustomViewHelper.BodyBG);
|
||||
CustomViewHelper.DisplayHeader("Audio");
|
||||
EditorGUILayout.PropertyField(audioSourceObject, new GUIContent("Audio Source", "An AudioSource moves to the current Interactive Trigger. This way we don't need to put an audiosource onto every single Interactive Trigger"));
|
||||
EditorGUILayout.EndVertical();
|
||||
|
||||
serializedObject.ApplyModifiedProperties();
|
||||
|
||||
EditorGUILayout.BeginVertical(CustomViewHelper.BodyBG);
|
||||
CustomViewHelper.DisplayHeader("Player Inputs");
|
||||
EditorGUILayout.PropertyField(playerInputs, new GUIContent("Player Inputs", "Select which Player Inputs scriptable object is used to configure the player inputs"));
|
||||
EditorGUILayout.EndVertical();
|
||||
|
||||
serializedObject.ApplyModifiedProperties();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 6163e83af83680a49972fac99082b0e4
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
131
Assets/Materials/Active/Editor/CustomViewSelfActivatedInput.cs
Normal file
@@ -0,0 +1,131 @@
|
||||
using System;
|
||||
using UnityEngine;
|
||||
using UnityEditor;
|
||||
|
||||
namespace Kineractive
|
||||
{
|
||||
[CustomEditor(typeof(SelfActivatedInput))]
|
||||
[CanEditMultipleObjects]
|
||||
public class CustomViewSelfActivatedInput : UnityEditor.Editor
|
||||
{
|
||||
SerializedProperty handSide;
|
||||
SerializedProperty position;
|
||||
SerializedProperty moveSpeed;
|
||||
SerializedProperty rotateSpeed;
|
||||
|
||||
|
||||
SerializedProperty OnInput;
|
||||
|
||||
SerializedProperty OnInputEnd;
|
||||
|
||||
|
||||
SerializedProperty inputAnimString;
|
||||
SerializedProperty inputEndAnimString;
|
||||
|
||||
protected string[] inputAnimChoices;
|
||||
int inputAnimChoiceIndex = 0;
|
||||
|
||||
protected string[] inputEndAnimChoices;
|
||||
int inputEndAnimChoiceIndex = 0;
|
||||
|
||||
SerializedProperty BypassInput;
|
||||
|
||||
SerializedProperty repeatingInput;
|
||||
|
||||
|
||||
void OnEnable()
|
||||
{
|
||||
BypassInput = serializedObject.FindProperty("BypassInput");
|
||||
|
||||
repeatingInput = serializedObject.FindProperty("repeatingInput");
|
||||
|
||||
|
||||
handSide = serializedObject.FindProperty("handSide");
|
||||
position = serializedObject.FindProperty("position");
|
||||
moveSpeed = serializedObject.FindProperty("moveSpeed");
|
||||
rotateSpeed = serializedObject.FindProperty("rotateSpeed");
|
||||
|
||||
OnInput = serializedObject.FindProperty("OnInput");
|
||||
|
||||
OnInputEnd = serializedObject.FindProperty("OnInputEnd");
|
||||
|
||||
KineractiveManager iMan = FindObjectOfType<KineractiveManager>();
|
||||
if (iMan != null)
|
||||
{
|
||||
if (iMan.PlayerAnims != null)
|
||||
{
|
||||
inputAnimChoices = iMan.PlayerAnims.Anims;
|
||||
inputEndAnimChoices = iMan.PlayerAnims.Anims;
|
||||
}
|
||||
else
|
||||
{
|
||||
inputAnimChoices = new string[] { "No 'Player Anims' set in Interactive Manager" };
|
||||
Debug.LogWarning("'Player Anims' field in Interactive Manager is empty. Please insert a Player Anims scriptable object into the empty field.");
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
inputAnimChoices = new string[] { "Not Found: Interactive Manager" };
|
||||
inputEndAnimChoices = new string[] { "Not Found: Interactive Manager" };
|
||||
Debug.LogWarning("Interactive Manager not found - Please add the Interactive Manager component to this scene");
|
||||
}
|
||||
|
||||
inputAnimString = serializedObject.FindProperty("inputAnimString");
|
||||
inputAnimChoiceIndex = Array.IndexOf(inputAnimChoices, inputAnimString.stringValue);
|
||||
|
||||
inputEndAnimString = serializedObject.FindProperty("inputEndAnimString");
|
||||
inputEndAnimChoiceIndex = Array.IndexOf(inputEndAnimChoices, inputEndAnimString.stringValue);
|
||||
|
||||
}
|
||||
|
||||
public override void OnInspectorGUI()
|
||||
{
|
||||
serializedObject.Update();
|
||||
CustomViewHelper.DisplayTitle("Self Activated Input", CustomViewHelper.IconTypes.SelfInput);
|
||||
|
||||
EditorGUILayout.BeginVertical(CustomViewHelper.BodyBG);
|
||||
EditorGUILayout.PropertyField(repeatingInput, new GUIContent("Repeating", "Keep repeating the OnInput event, while this component is active."));
|
||||
EditorGUILayout.EndVertical();
|
||||
|
||||
EditorGUILayout.BeginVertical(CustomViewHelper.BodyBG);
|
||||
EditorGUILayout.PropertyField(BypassInput, new GUIContent("Bypass", "Turn off this input? Manually here, or by script, or by event."));
|
||||
EditorGUILayout.EndVertical();
|
||||
|
||||
EditorGUILayout.BeginVertical(CustomViewHelper.BodyBG);
|
||||
CustomViewHelper.DisplayHeader("Hands");
|
||||
EditorGUILayout.PropertyField(handSide);
|
||||
EditorGUILayout.PropertyField(moveSpeed);
|
||||
EditorGUILayout.PropertyField(rotateSpeed);
|
||||
EditorGUILayout.EndVertical();
|
||||
|
||||
EditorGUILayout.BeginVertical(CustomViewHelper.BodyBG);
|
||||
CustomViewHelper.DisplayHeader("When Self Activated Input Starts");
|
||||
EditorGUILayout.PropertyField(position, new GUIContent("Move\\Rotate to:", "The hand will move and rotate to this position the Interactive Trigger is enabled"));
|
||||
|
||||
inputAnimChoiceIndex = EditorGUILayout.Popup("Input Animation", inputAnimChoiceIndex, inputAnimChoices);
|
||||
if (inputAnimChoiceIndex < 0)
|
||||
inputAnimChoiceIndex = 0;
|
||||
|
||||
inputAnimString.stringValue = inputAnimChoices[inputAnimChoiceIndex];
|
||||
|
||||
EditorGUILayout.PropertyField(OnInput, new GUIContent("On Input Start"));
|
||||
EditorGUILayout.EndVertical();
|
||||
|
||||
EditorGUILayout.BeginVertical(CustomViewHelper.BodyBG);
|
||||
CustomViewHelper.DisplayHeader("When Self Activated Input Ends");
|
||||
|
||||
EditorGUILayout.TextField("Move\\Rotate to:", "This hand will return to the rest position.");
|
||||
|
||||
inputEndAnimChoiceIndex = EditorGUILayout.Popup("Input End Animation", inputEndAnimChoiceIndex, inputEndAnimChoices);
|
||||
if (inputEndAnimChoiceIndex < 0)
|
||||
inputEndAnimChoiceIndex = 0;
|
||||
|
||||
inputEndAnimString.stringValue = inputEndAnimChoices[inputEndAnimChoiceIndex];
|
||||
|
||||
EditorGUILayout.PropertyField(OnInputEnd, new GUIContent("On Input End"));
|
||||
EditorGUILayout.EndVertical();
|
||||
|
||||
serializedObject.ApplyModifiedProperties();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 179e4bf1cae75064eb8bea9b4a3760e6
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
33
Assets/Materials/Active/Editor/CustomViewShortcut.cs
Normal file
@@ -0,0 +1,33 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using UnityEditor;
|
||||
|
||||
namespace Kineractive
|
||||
{
|
||||
[CustomEditor(typeof(Shortcut))]
|
||||
[CanEditMultipleObjects]
|
||||
public class CustomViewShortcut : UnityEditor.Editor
|
||||
{
|
||||
|
||||
SerializedProperty Shortcuts;
|
||||
|
||||
|
||||
void OnEnable()
|
||||
{
|
||||
Shortcuts = serializedObject.FindProperty("Shortcuts");
|
||||
}
|
||||
|
||||
public override void OnInspectorGUI()
|
||||
{
|
||||
serializedObject.Update();
|
||||
CustomViewHelper.DisplayTitle("ShortCut", CustomViewHelper.IconTypes.Shortcut);
|
||||
EditorGUILayout.BeginVertical(CustomViewHelper.BodyBG);
|
||||
|
||||
EditorGUILayout.PropertyField(Shortcuts, true);
|
||||
EditorGUILayout.EndVertical();
|
||||
|
||||
serializedObject.ApplyModifiedProperties();
|
||||
}
|
||||
}
|
||||
}
|
||||
11
Assets/Materials/Active/Editor/CustomViewShortcut.cs.meta
Normal file
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 1d9625df74a968f4db1a68d95865e733
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
140
Assets/Materials/Active/Editor/CustomViewTouchableButton.cs
Normal file
@@ -0,0 +1,140 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using UnityEditor;
|
||||
|
||||
namespace Kineractive
|
||||
{
|
||||
[CustomEditor(typeof(ButtonTouchable))]
|
||||
[CanEditMultipleObjects]
|
||||
public class CustomViewTouchableButton : UnityEditor.Editor
|
||||
{
|
||||
|
||||
SerializedProperty inPosition;
|
||||
|
||||
SerializedProperty outPosition;
|
||||
|
||||
SerializedProperty pressedPosition;
|
||||
|
||||
SerializedProperty theButton;
|
||||
SerializedProperty startPushedIn;
|
||||
|
||||
SerializedProperty onInPosition;
|
||||
SerializedProperty onOutPosition;
|
||||
SerializedProperty onPress;
|
||||
|
||||
SerializedProperty inClip;
|
||||
SerializedProperty outClip;
|
||||
SerializedProperty pressedClip;
|
||||
|
||||
SerializedProperty inClipVolume;
|
||||
SerializedProperty outClipVolume;
|
||||
SerializedProperty pressedClipVolume;
|
||||
|
||||
SerializedProperty buttonIsToggle;
|
||||
|
||||
|
||||
|
||||
void OnEnable()
|
||||
{
|
||||
buttonIsToggle = serializedObject.FindProperty("buttonIsToggle");
|
||||
|
||||
outClip = serializedObject.FindProperty("outClip");
|
||||
inClip = serializedObject.FindProperty("inClip");
|
||||
pressedClip = serializedObject.FindProperty("pressedClip");
|
||||
|
||||
outClipVolume = serializedObject.FindProperty("outClipVolume");
|
||||
inClipVolume = serializedObject.FindProperty("inClipVolume");
|
||||
pressedClipVolume = serializedObject.FindProperty("pressedClipVolume");
|
||||
|
||||
inPosition = serializedObject.FindProperty("inPosition");
|
||||
outPosition = serializedObject.FindProperty("outPosition");
|
||||
pressedPosition = serializedObject.FindProperty("pressedPosition");
|
||||
|
||||
theButton = serializedObject.FindProperty("theButton");
|
||||
|
||||
startPushedIn = serializedObject.FindProperty("startPushedIn");
|
||||
|
||||
onInPosition = serializedObject.FindProperty("onInPosition");
|
||||
onOutPosition = serializedObject.FindProperty("onOutPosition");
|
||||
onPress = serializedObject.FindProperty("onPress");
|
||||
|
||||
onInPosition = serializedObject.FindProperty("onInPosition");
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
public override void OnInspectorGUI()
|
||||
{
|
||||
serializedObject.Update();
|
||||
CustomViewHelper.DisplayTitle("Button (Touchable)", CustomViewHelper.IconTypes.Button);
|
||||
|
||||
EditorGUILayout.BeginVertical(CustomViewHelper.BodyBG);
|
||||
EditorGUILayout.PropertyField(theButton);
|
||||
|
||||
EditorGUILayout.PropertyField(buttonIsToggle);
|
||||
EditorGUILayout.PropertyField(startPushedIn);
|
||||
|
||||
|
||||
EditorGUILayout.EndVertical();
|
||||
|
||||
EditorGUILayout.BeginVertical(CustomViewHelper.BodyBG);
|
||||
CustomViewHelper.DisplayHeader("Button Pressed");
|
||||
|
||||
EditorGUILayout.PropertyField(pressedPosition);
|
||||
|
||||
EditorGUILayout.Space();
|
||||
EditorGUILayout.Space();
|
||||
|
||||
EditorGUILayout.PropertyField(pressedClip);
|
||||
EditorGUILayout.PropertyField(pressedClipVolume);
|
||||
|
||||
|
||||
EditorGUILayout.Space();
|
||||
EditorGUILayout.Space();
|
||||
|
||||
EditorGUILayout.PropertyField(onPress);
|
||||
EditorGUILayout.EndVertical();
|
||||
|
||||
EditorGUILayout.BeginVertical(CustomViewHelper.BodyBG);
|
||||
CustomViewHelper.DisplayHeader("Button In");
|
||||
|
||||
EditorGUILayout.PropertyField(inPosition);
|
||||
|
||||
EditorGUILayout.Space();
|
||||
EditorGUILayout.Space();
|
||||
|
||||
EditorGUILayout.PropertyField(inClip);
|
||||
EditorGUILayout.PropertyField(inClipVolume);
|
||||
|
||||
EditorGUILayout.Space();
|
||||
EditorGUILayout.Space();
|
||||
|
||||
EditorGUILayout.PropertyField(onInPosition);
|
||||
EditorGUILayout.EndVertical();
|
||||
|
||||
EditorGUILayout.BeginVertical(CustomViewHelper.BodyBG);
|
||||
CustomViewHelper.DisplayHeader("Button Out");
|
||||
EditorGUILayout.PropertyField(outPosition);
|
||||
|
||||
EditorGUILayout.Space();
|
||||
EditorGUILayout.Space();
|
||||
|
||||
EditorGUILayout.PropertyField(outClip);
|
||||
EditorGUILayout.PropertyField(outClipVolume);
|
||||
|
||||
EditorGUILayout.Space();
|
||||
EditorGUILayout.Space();
|
||||
|
||||
EditorGUILayout.PropertyField(onOutPosition);
|
||||
|
||||
EditorGUILayout.EndVertical();
|
||||
|
||||
serializedObject.ApplyModifiedProperties();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: fe1bffe76ce98a7499f6030d5c93adce
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
95
Assets/Materials/Active/Editor/CustomViewTouchableMover.cs
Normal file
@@ -0,0 +1,95 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using UnityEditor;
|
||||
|
||||
namespace Kineractive
|
||||
{
|
||||
[CustomEditor(typeof(Mover))]
|
||||
[CanEditMultipleObjects]
|
||||
public class CustomViewTouchableMover : UnityEditor.Editor
|
||||
{
|
||||
|
||||
|
||||
SerializedProperty positionsArray;
|
||||
SerializedProperty eventsArray;
|
||||
SerializedProperty audioClips;
|
||||
SerializedProperty audioVolume;
|
||||
SerializedProperty positionToStartAt;
|
||||
SerializedProperty movableObject;
|
||||
SerializedProperty canLoop;
|
||||
SerializedProperty setsOfPositions;
|
||||
|
||||
|
||||
void OnEnable()
|
||||
{
|
||||
positionsArray = serializedObject.FindProperty("positionsArray");
|
||||
eventsArray = serializedObject.FindProperty("eventsArray");
|
||||
positionToStartAt = serializedObject.FindProperty("positionToStartAt");
|
||||
movableObject = serializedObject.FindProperty("movableObject");
|
||||
canLoop = serializedObject.FindProperty("canLoop");
|
||||
|
||||
|
||||
audioClips = serializedObject.FindProperty("audioClips");
|
||||
audioVolume = serializedObject.FindProperty("audioVolume");
|
||||
|
||||
setsOfPositions = serializedObject.FindProperty("setsOfPositions");
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
public override void OnInspectorGUI()
|
||||
{
|
||||
serializedObject.Update();
|
||||
CustomViewHelper.DisplayTitle("Mover", CustomViewHelper.IconTypes.Mover);
|
||||
|
||||
EditorGUILayout.BeginVertical(CustomViewHelper.BodyBG);
|
||||
|
||||
EditorGUILayout.PropertyField(movableObject);
|
||||
EditorGUILayout.PropertyField(canLoop);
|
||||
|
||||
EditorGUILayout.PropertyField(setsOfPositions);
|
||||
|
||||
|
||||
EditorGUILayout.PropertyField(positionToStartAt);
|
||||
positionToStartAt.intValue = Mathf.Clamp(positionToStartAt.intValue, (int)0, (int)setsOfPositions.intValue - 1);
|
||||
|
||||
|
||||
eventsArray.arraySize = setsOfPositions.intValue;
|
||||
positionsArray.arraySize = setsOfPositions.intValue;
|
||||
audioClips.arraySize = setsOfPositions.intValue;
|
||||
audioVolume.arraySize = setsOfPositions.intValue;
|
||||
|
||||
|
||||
|
||||
EditorGUILayout.EndVertical();
|
||||
|
||||
|
||||
for (int i = 0; i < positionsArray.arraySize; i++)
|
||||
{
|
||||
EditorGUILayout.BeginVertical(CustomViewHelper.BodyBG);
|
||||
CustomViewHelper.DisplayHeader("Position " + i);
|
||||
|
||||
EditorGUILayout.PropertyField(positionsArray.GetArrayElementAtIndex(i), new GUIContent("Move To:", "local coordinates " + i));
|
||||
|
||||
EditorGUILayout.Space();
|
||||
EditorGUILayout.Space();
|
||||
|
||||
EditorGUILayout.PropertyField(audioClips.GetArrayElementAtIndex(i), new GUIContent("Play Sound", "play sound at position " + i));
|
||||
EditorGUILayout.PropertyField(audioVolume.GetArrayElementAtIndex(i), new GUIContent("Volume", "play sound at angle " + i));
|
||||
|
||||
EditorGUILayout.Space();
|
||||
EditorGUILayout.Space();
|
||||
|
||||
EditorGUILayout.PropertyField(eventsArray.GetArrayElementAtIndex(i), new GUIContent("Events", "Do action at position " + i));
|
||||
EditorGUILayout.EndVertical();
|
||||
}
|
||||
|
||||
serializedObject.ApplyModifiedProperties();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 323e97c31d1fd8146af6de9853ea2ae9
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
119
Assets/Materials/Active/Editor/CustomViewTouchableMoverAnalog.cs
Normal file
@@ -0,0 +1,119 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using UnityEditor;
|
||||
|
||||
namespace Kineractive
|
||||
{
|
||||
[CustomEditor(typeof(MoverAnalog))]
|
||||
[CanEditMultipleObjects]
|
||||
public class CustomViewTouchableMoverAnalog : UnityEditor.Editor
|
||||
{
|
||||
SerializedProperty objectToMove;
|
||||
|
||||
SerializedProperty dynamicFloatEvent;
|
||||
SerializedProperty minEvent;
|
||||
SerializedProperty maxEvent;
|
||||
SerializedProperty outOfMinEvent;
|
||||
SerializedProperty outOfMaxEvent;
|
||||
|
||||
SerializedProperty increasePositionSound;
|
||||
SerializedProperty decreasePositionSound;
|
||||
SerializedProperty incVolume;
|
||||
SerializedProperty decVolume;
|
||||
|
||||
SerializedProperty minPosition;
|
||||
SerializedProperty maxPosition;
|
||||
SerializedProperty moveSpeedIncrease;
|
||||
SerializedProperty moveSpeedDecrease;
|
||||
|
||||
SerializedProperty startPosition;
|
||||
SerializedProperty moveAxis;
|
||||
|
||||
|
||||
|
||||
void OnEnable()
|
||||
{
|
||||
objectToMove = serializedObject.FindProperty("objectToMove");
|
||||
dynamicFloatEvent = serializedObject.FindProperty("dynamicFloatEvent");
|
||||
minEvent = serializedObject.FindProperty("minEvent");
|
||||
maxEvent = serializedObject.FindProperty("maxEvent");
|
||||
outOfMinEvent = serializedObject.FindProperty("outOfMinEvent");
|
||||
outOfMaxEvent = serializedObject.FindProperty("outOfMaxEvent");
|
||||
increasePositionSound = serializedObject.FindProperty("increasePositionSound");
|
||||
decreasePositionSound = serializedObject.FindProperty("decreasePositionSound");
|
||||
|
||||
incVolume = serializedObject.FindProperty("incVolume");
|
||||
decVolume = serializedObject.FindProperty("decVolume");
|
||||
|
||||
minPosition = serializedObject.FindProperty("minPosition");
|
||||
maxPosition = serializedObject.FindProperty("maxPosition");
|
||||
moveSpeedDecrease = serializedObject.FindProperty("moveSpeedDecrease");
|
||||
moveSpeedIncrease = serializedObject.FindProperty("moveSpeedIncrease");
|
||||
startPosition = serializedObject.FindProperty("startPosition");
|
||||
moveAxis = serializedObject.FindProperty("moveAxis");
|
||||
|
||||
|
||||
}
|
||||
|
||||
public override void OnInspectorGUI()
|
||||
{
|
||||
serializedObject.Update();
|
||||
CustomViewHelper.DisplayTitle("Mover Analog", CustomViewHelper.IconTypes.MoverAnalog);
|
||||
|
||||
EditorGUILayout.BeginVertical(CustomViewHelper.BodyBG);
|
||||
EditorGUILayout.PropertyField(objectToMove);
|
||||
EditorGUILayout.PropertyField(moveAxis);
|
||||
|
||||
EditorGUILayout.PropertyField(startPosition);
|
||||
EditorGUILayout.Space();
|
||||
EditorGUILayout.PropertyField(dynamicFloatEvent, new GUIContent("Send Normalized Float"));
|
||||
EditorGUILayout.EndVertical();
|
||||
|
||||
EditorGUILayout.BeginVertical(CustomViewHelper.BodyBG);
|
||||
CustomViewHelper.DisplayHeader("Decrease Position");
|
||||
EditorGUILayout.PropertyField(minPosition);
|
||||
EditorGUILayout.PropertyField(moveSpeedDecrease);
|
||||
|
||||
EditorGUILayout.Space();
|
||||
EditorGUILayout.Space();
|
||||
|
||||
EditorGUILayout.PropertyField(decreasePositionSound, new GUIContent("Decrease Sound"));
|
||||
EditorGUILayout.PropertyField(decVolume);
|
||||
|
||||
EditorGUILayout.Space();
|
||||
EditorGUILayout.Space();
|
||||
|
||||
EditorGUILayout.PropertyField(minEvent, new GUIContent("When Position Minimum Is Reached"));
|
||||
|
||||
EditorGUILayout.Space();
|
||||
EditorGUILayout.Space();
|
||||
EditorGUILayout.PropertyField(outOfMaxEvent, new GUIContent("When moving out of Max Position"));
|
||||
|
||||
EditorGUILayout.EndVertical();
|
||||
|
||||
EditorGUILayout.BeginVertical(CustomViewHelper.BodyBG);
|
||||
CustomViewHelper.DisplayHeader("Increase Position");
|
||||
EditorGUILayout.PropertyField(maxPosition);
|
||||
EditorGUILayout.PropertyField(moveSpeedIncrease);
|
||||
|
||||
EditorGUILayout.Space();
|
||||
EditorGUILayout.Space();
|
||||
EditorGUILayout.PropertyField(increasePositionSound, new GUIContent("Increase Sound"));
|
||||
EditorGUILayout.PropertyField(incVolume);
|
||||
|
||||
EditorGUILayout.Space();
|
||||
EditorGUILayout.Space();
|
||||
EditorGUILayout.PropertyField(maxEvent, new GUIContent("When Position Maximum Is Reached"));
|
||||
|
||||
EditorGUILayout.Space();
|
||||
EditorGUILayout.Space();
|
||||
|
||||
EditorGUILayout.PropertyField(outOfMinEvent, new GUIContent("When moving out of Min Position"));
|
||||
|
||||
EditorGUILayout.EndVertical();
|
||||
|
||||
serializedObject.ApplyModifiedProperties();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: bdab05052a6bcf3468c47db45917c415
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
94
Assets/Materials/Active/Editor/CustomViewTouchableRotator.cs
Normal file
@@ -0,0 +1,94 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using UnityEditor;
|
||||
|
||||
namespace Kineractive
|
||||
{
|
||||
[CustomEditor(typeof(Rotator))]
|
||||
[CanEditMultipleObjects]
|
||||
public class CustomViewTouchableRotator : UnityEditor.Editor
|
||||
{
|
||||
|
||||
|
||||
SerializedProperty rotationsArray;
|
||||
SerializedProperty eventsArray;
|
||||
SerializedProperty audioClips;
|
||||
SerializedProperty audioVolume;
|
||||
SerializedProperty rotationToStartAt;
|
||||
SerializedProperty hinge;
|
||||
SerializedProperty canLoop;
|
||||
SerializedProperty setsOfRotations;
|
||||
|
||||
|
||||
void OnEnable()
|
||||
{
|
||||
rotationsArray = serializedObject.FindProperty("rotationsArray");
|
||||
eventsArray = serializedObject.FindProperty("eventsArray");
|
||||
rotationToStartAt = serializedObject.FindProperty("rotationToStartAt");
|
||||
hinge = serializedObject.FindProperty("hinge");
|
||||
canLoop = serializedObject.FindProperty("canLoop");
|
||||
|
||||
|
||||
audioClips = serializedObject.FindProperty("audioClips");
|
||||
audioVolume = serializedObject.FindProperty("audioVolume");
|
||||
|
||||
setsOfRotations = serializedObject.FindProperty("setsOfRotations");
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
public override void OnInspectorGUI()
|
||||
{
|
||||
serializedObject.Update();
|
||||
CustomViewHelper.DisplayTitle("Rotator", CustomViewHelper.IconTypes.Rotator);
|
||||
|
||||
EditorGUILayout.BeginVertical(CustomViewHelper.BodyBG);
|
||||
|
||||
EditorGUILayout.PropertyField(hinge);
|
||||
EditorGUILayout.PropertyField(canLoop);
|
||||
|
||||
EditorGUILayout.PropertyField(setsOfRotations);
|
||||
|
||||
|
||||
EditorGUILayout.PropertyField(rotationToStartAt);
|
||||
rotationToStartAt.intValue = Mathf.Clamp(rotationToStartAt.intValue, (int)0, (int)setsOfRotations.intValue - 1);
|
||||
|
||||
|
||||
eventsArray.arraySize = setsOfRotations.intValue;
|
||||
rotationsArray.arraySize = setsOfRotations.intValue;
|
||||
audioClips.arraySize = setsOfRotations.intValue;
|
||||
audioVolume.arraySize = setsOfRotations.intValue;
|
||||
|
||||
|
||||
|
||||
EditorGUILayout.EndVertical();
|
||||
|
||||
|
||||
for (int i = 0; i < rotationsArray.arraySize; i++)
|
||||
{
|
||||
EditorGUILayout.BeginVertical(CustomViewHelper.BodyBG);
|
||||
CustomViewHelper.DisplayHeader("Rotation " + i);
|
||||
|
||||
EditorGUILayout.PropertyField(rotationsArray.GetArrayElementAtIndex(i), new GUIContent("Rotate To:", "angles for rotation " + i));
|
||||
EditorGUILayout.Space();
|
||||
EditorGUILayout.Space();
|
||||
|
||||
EditorGUILayout.PropertyField(audioClips.GetArrayElementAtIndex(i), new GUIContent("Play Sound", "play sound at angle " + i));
|
||||
EditorGUILayout.PropertyField(audioVolume.GetArrayElementAtIndex(i), new GUIContent("Volume", "volume of sound " + i));
|
||||
|
||||
EditorGUILayout.Space();
|
||||
EditorGUILayout.Space();
|
||||
|
||||
EditorGUILayout.PropertyField(eventsArray.GetArrayElementAtIndex(i), new GUIContent("Events", "Do action at angle " + i));
|
||||
EditorGUILayout.EndVertical();
|
||||
}
|
||||
|
||||
serializedObject.ApplyModifiedProperties();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: e0674c77f0ef89544807fa4353e96582
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,120 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using UnityEditor;
|
||||
|
||||
namespace Kineractive
|
||||
{
|
||||
[CustomEditor(typeof(RotatorAnalog))]
|
||||
[CanEditMultipleObjects]
|
||||
public class CustomViewTouchableRotatorAnalog : UnityEditor.Editor
|
||||
{
|
||||
SerializedProperty hinge;
|
||||
|
||||
SerializedProperty dynamicFloatEvent;
|
||||
SerializedProperty minEvent;
|
||||
SerializedProperty maxEvent;
|
||||
SerializedProperty outOfMinEvent;
|
||||
SerializedProperty outOfMaxEvent;
|
||||
|
||||
SerializedProperty increaseRotationSound;
|
||||
SerializedProperty decreaseRotationSound;
|
||||
SerializedProperty incVolume;
|
||||
SerializedProperty decVolume;
|
||||
|
||||
SerializedProperty minRotation;
|
||||
SerializedProperty maxRotation;
|
||||
SerializedProperty rotateSpeedIncrease;
|
||||
SerializedProperty rotateSpeedDecrease;
|
||||
|
||||
SerializedProperty startRotation;
|
||||
SerializedProperty rotationAxis;
|
||||
SerializedProperty coordinateSystem;
|
||||
|
||||
|
||||
void OnEnable()
|
||||
{
|
||||
hinge = serializedObject.FindProperty("hinge");
|
||||
dynamicFloatEvent = serializedObject.FindProperty("dynamicFloatEvent");
|
||||
minEvent = serializedObject.FindProperty("minEvent");
|
||||
maxEvent = serializedObject.FindProperty("maxEvent");
|
||||
outOfMinEvent = serializedObject.FindProperty("outOfMinEvent");
|
||||
outOfMaxEvent = serializedObject.FindProperty("outOfMaxEvent");
|
||||
increaseRotationSound = serializedObject.FindProperty("increaseRotationSound");
|
||||
decreaseRotationSound = serializedObject.FindProperty("decreaseRotationSound");
|
||||
|
||||
incVolume = serializedObject.FindProperty("incVolume");
|
||||
decVolume = serializedObject.FindProperty("decVolume");
|
||||
|
||||
minRotation = serializedObject.FindProperty("minRotation");
|
||||
maxRotation = serializedObject.FindProperty("maxRotation");
|
||||
rotateSpeedDecrease = serializedObject.FindProperty("rotateSpeedDecrease");
|
||||
rotateSpeedIncrease = serializedObject.FindProperty("rotateSpeedIncrease");
|
||||
startRotation = serializedObject.FindProperty("startRotation");
|
||||
rotationAxis = serializedObject.FindProperty("rotationAxis");
|
||||
coordinateSystem = serializedObject.FindProperty("coordinateSystem");
|
||||
|
||||
}
|
||||
|
||||
public override void OnInspectorGUI()
|
||||
{
|
||||
serializedObject.Update();
|
||||
CustomViewHelper.DisplayTitle("Rotator Analog", CustomViewHelper.IconTypes.RotatorAnalog);
|
||||
|
||||
EditorGUILayout.BeginVertical(CustomViewHelper.BodyBG);
|
||||
EditorGUILayout.PropertyField(hinge);
|
||||
EditorGUILayout.PropertyField(rotationAxis);
|
||||
EditorGUILayout.PropertyField(coordinateSystem);
|
||||
EditorGUILayout.PropertyField(startRotation);
|
||||
EditorGUILayout.PropertyField(dynamicFloatEvent, new GUIContent("Send Normalized Float"));
|
||||
EditorGUILayout.EndVertical();
|
||||
|
||||
EditorGUILayout.BeginVertical(CustomViewHelper.BodyBG);
|
||||
CustomViewHelper.DisplayHeader("Decrease Rotation");
|
||||
EditorGUILayout.PropertyField(minRotation);
|
||||
EditorGUILayout.PropertyField(rotateSpeedDecrease);
|
||||
|
||||
EditorGUILayout.Space();
|
||||
EditorGUILayout.Space();
|
||||
|
||||
EditorGUILayout.PropertyField(decreaseRotationSound, new GUIContent("Decrease Sound"));
|
||||
EditorGUILayout.PropertyField(decVolume);
|
||||
|
||||
EditorGUILayout.Space();
|
||||
EditorGUILayout.Space();
|
||||
|
||||
EditorGUILayout.PropertyField(minEvent, new GUIContent("When Rotation Minimum Is Reached"));
|
||||
|
||||
EditorGUILayout.Space();
|
||||
EditorGUILayout.Space();
|
||||
EditorGUILayout.PropertyField(outOfMaxEvent, new GUIContent("When rotating out of Max Rotation"));
|
||||
|
||||
EditorGUILayout.EndVertical();
|
||||
|
||||
EditorGUILayout.BeginVertical(CustomViewHelper.BodyBG);
|
||||
CustomViewHelper.DisplayHeader("Increase Rotation");
|
||||
EditorGUILayout.PropertyField(maxRotation);
|
||||
EditorGUILayout.PropertyField(rotateSpeedIncrease);
|
||||
|
||||
EditorGUILayout.Space();
|
||||
EditorGUILayout.Space();
|
||||
|
||||
EditorGUILayout.PropertyField(increaseRotationSound, new GUIContent("Increase Sound"));
|
||||
EditorGUILayout.PropertyField(incVolume);
|
||||
|
||||
EditorGUILayout.Space();
|
||||
EditorGUILayout.Space();
|
||||
|
||||
EditorGUILayout.PropertyField(maxEvent, new GUIContent("When Rotation Maximum Is Reached"));
|
||||
|
||||
EditorGUILayout.Space();
|
||||
EditorGUILayout.Space();
|
||||
|
||||
EditorGUILayout.PropertyField(outOfMinEvent, new GUIContent("When rotating out of Min Rotation"));
|
||||
EditorGUILayout.EndVertical();
|
||||
|
||||
|
||||
serializedObject.ApplyModifiedProperties();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 64cf564af7b7ebd4dac39a009f2a2622
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
8
Assets/Materials/Active/Editor/Resources.meta
Normal file
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: daeabd3138f3ac74398b0915ca8c8f00
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
BIN
Assets/Materials/Active/Editor/Resources/AnalogInput.png
Normal file
|
After Width: | Height: | Size: 1.8 KiB |
@@ -0,0 +1,90 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 7591fff21651b1948bdccc680874ce5e
|
||||
TextureImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 10
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 1
|
||||
sRGBTexture: 1
|
||||
linearTexture: 0
|
||||
fadeOut: 0
|
||||
borderMipMap: 0
|
||||
mipMapsPreserveCoverage: 0
|
||||
alphaTestReferenceValue: 0.5
|
||||
mipMapFadeDistanceStart: 1
|
||||
mipMapFadeDistanceEnd: 3
|
||||
bumpmap:
|
||||
convertToNormalMap: 0
|
||||
externalNormalMap: 0
|
||||
heightScale: 0.25
|
||||
normalMapFilter: 0
|
||||
isReadable: 0
|
||||
streamingMipmaps: 0
|
||||
streamingMipmapsPriority: 0
|
||||
grayScaleToAlpha: 0
|
||||
generateCubemap: 6
|
||||
cubemapConvolution: 0
|
||||
seamlessCubemap: 0
|
||||
textureFormat: 1
|
||||
maxTextureSize: 2048
|
||||
textureSettings:
|
||||
serializedVersion: 2
|
||||
filterMode: -1
|
||||
aniso: -1
|
||||
mipBias: -100
|
||||
wrapU: -1
|
||||
wrapV: -1
|
||||
wrapW: -1
|
||||
nPOTScale: 1
|
||||
lightmap: 0
|
||||
compressionQuality: 50
|
||||
spriteMode: 0
|
||||
spriteExtrude: 1
|
||||
spriteMeshType: 1
|
||||
alignment: 0
|
||||
spritePivot: {x: 0.5, y: 0.5}
|
||||
spritePixelsToUnits: 100
|
||||
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||
spriteGenerateFallbackPhysicsShape: 1
|
||||
alphaUsage: 1
|
||||
alphaIsTransparency: 0
|
||||
spriteTessellationDetail: -1
|
||||
textureType: 0
|
||||
textureShape: 1
|
||||
singleChannelComponent: 0
|
||||
maxTextureSizeSet: 0
|
||||
compressionQualitySet: 0
|
||||
textureFormatSet: 0
|
||||
platformSettings:
|
||||
- serializedVersion: 2
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
spriteSheet:
|
||||
serializedVersion: 2
|
||||
sprites: []
|
||||
outline: []
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID:
|
||||
internalID: 0
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
secondaryTextures: []
|
||||
spritePackingTag:
|
||||
pSDRemoveMatte: 0
|
||||
pSDShowRemoveMatteOption: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
BIN
Assets/Materials/Active/Editor/Resources/Audio.png
Normal file
|
After Width: | Height: | Size: 2.2 KiB |
90
Assets/Materials/Active/Editor/Resources/Audio.png.meta
Normal file
@@ -0,0 +1,90 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 733574b6c8ef2fe49a6264d5376947cb
|
||||
TextureImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 10
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 1
|
||||
sRGBTexture: 1
|
||||
linearTexture: 0
|
||||
fadeOut: 0
|
||||
borderMipMap: 0
|
||||
mipMapsPreserveCoverage: 0
|
||||
alphaTestReferenceValue: 0.5
|
||||
mipMapFadeDistanceStart: 1
|
||||
mipMapFadeDistanceEnd: 3
|
||||
bumpmap:
|
||||
convertToNormalMap: 0
|
||||
externalNormalMap: 0
|
||||
heightScale: 0.25
|
||||
normalMapFilter: 0
|
||||
isReadable: 0
|
||||
streamingMipmaps: 0
|
||||
streamingMipmapsPriority: 0
|
||||
grayScaleToAlpha: 0
|
||||
generateCubemap: 6
|
||||
cubemapConvolution: 0
|
||||
seamlessCubemap: 0
|
||||
textureFormat: 1
|
||||
maxTextureSize: 2048
|
||||
textureSettings:
|
||||
serializedVersion: 2
|
||||
filterMode: -1
|
||||
aniso: -1
|
||||
mipBias: -100
|
||||
wrapU: -1
|
||||
wrapV: -1
|
||||
wrapW: -1
|
||||
nPOTScale: 1
|
||||
lightmap: 0
|
||||
compressionQuality: 50
|
||||
spriteMode: 0
|
||||
spriteExtrude: 1
|
||||
spriteMeshType: 1
|
||||
alignment: 0
|
||||
spritePivot: {x: 0.5, y: 0.5}
|
||||
spritePixelsToUnits: 100
|
||||
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||
spriteGenerateFallbackPhysicsShape: 1
|
||||
alphaUsage: 1
|
||||
alphaIsTransparency: 0
|
||||
spriteTessellationDetail: -1
|
||||
textureType: 0
|
||||
textureShape: 1
|
||||
singleChannelComponent: 0
|
||||
maxTextureSizeSet: 0
|
||||
compressionQualitySet: 0
|
||||
textureFormatSet: 0
|
||||
platformSettings:
|
||||
- serializedVersion: 2
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
spriteSheet:
|
||||
serializedVersion: 2
|
||||
sprites: []
|
||||
outline: []
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID:
|
||||
internalID: 0
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
secondaryTextures: []
|
||||
spritePackingTag:
|
||||
pSDRemoveMatte: 0
|
||||
pSDShowRemoveMatteOption: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
BIN
Assets/Materials/Active/Editor/Resources/AxisInput.png
Normal file
|
After Width: | Height: | Size: 1.8 KiB |
91
Assets/Materials/Active/Editor/Resources/AxisInput.png.meta
Normal file
@@ -0,0 +1,91 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 5a44b69b059d820409195f51a27750fa
|
||||
TextureImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 10
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 1
|
||||
sRGBTexture: 1
|
||||
linearTexture: 0
|
||||
fadeOut: 0
|
||||
borderMipMap: 0
|
||||
mipMapsPreserveCoverage: 0
|
||||
alphaTestReferenceValue: 0.5
|
||||
mipMapFadeDistanceStart: 1
|
||||
mipMapFadeDistanceEnd: 3
|
||||
bumpmap:
|
||||
convertToNormalMap: 0
|
||||
externalNormalMap: 0
|
||||
heightScale: 0.25
|
||||
normalMapFilter: 0
|
||||
isReadable: 0
|
||||
streamingMipmaps: 0
|
||||
streamingMipmapsPriority: 0
|
||||
grayScaleToAlpha: 0
|
||||
generateCubemap: 6
|
||||
cubemapConvolution: 0
|
||||
seamlessCubemap: 0
|
||||
textureFormat: 1
|
||||
maxTextureSize: 2048
|
||||
textureSettings:
|
||||
serializedVersion: 2
|
||||
filterMode: -1
|
||||
aniso: -1
|
||||
mipBias: -100
|
||||
wrapU: -1
|
||||
wrapV: -1
|
||||
wrapW: -1
|
||||
nPOTScale: 1
|
||||
lightmap: 0
|
||||
compressionQuality: 50
|
||||
spriteMode: 0
|
||||
spriteExtrude: 1
|
||||
spriteMeshType: 1
|
||||
alignment: 0
|
||||
spritePivot: {x: 0.5, y: 0.5}
|
||||
spritePixelsToUnits: 100
|
||||
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||
spriteGenerateFallbackPhysicsShape: 1
|
||||
alphaUsage: 1
|
||||
alphaIsTransparency: 0
|
||||
spriteTessellationDetail: -1
|
||||
textureType: 0
|
||||
textureShape: 1
|
||||
singleChannelComponent: 0
|
||||
maxTextureSizeSet: 0
|
||||
compressionQualitySet: 0
|
||||
textureFormatSet: 0
|
||||
platformSettings:
|
||||
- serializedVersion: 3
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
spriteSheet:
|
||||
serializedVersion: 2
|
||||
sprites: []
|
||||
outline: []
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID:
|
||||
internalID: 0
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
secondaryTextures: []
|
||||
spritePackingTag:
|
||||
pSDRemoveMatte: 0
|
||||
pSDShowRemoveMatteOption: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
BIN
Assets/Materials/Active/Editor/Resources/Button.png
Normal file
|
After Width: | Height: | Size: 1.8 KiB |
90
Assets/Materials/Active/Editor/Resources/Button.png.meta
Normal file
@@ -0,0 +1,90 @@
|
||||
fileFormatVersion: 2
|
||||
guid: f5345b585a8b6d841b1330fcad517ac2
|
||||
TextureImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 10
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 1
|
||||
sRGBTexture: 1
|
||||
linearTexture: 0
|
||||
fadeOut: 0
|
||||
borderMipMap: 0
|
||||
mipMapsPreserveCoverage: 0
|
||||
alphaTestReferenceValue: 0.5
|
||||
mipMapFadeDistanceStart: 1
|
||||
mipMapFadeDistanceEnd: 3
|
||||
bumpmap:
|
||||
convertToNormalMap: 0
|
||||
externalNormalMap: 0
|
||||
heightScale: 0.25
|
||||
normalMapFilter: 0
|
||||
isReadable: 0
|
||||
streamingMipmaps: 0
|
||||
streamingMipmapsPriority: 0
|
||||
grayScaleToAlpha: 0
|
||||
generateCubemap: 6
|
||||
cubemapConvolution: 0
|
||||
seamlessCubemap: 0
|
||||
textureFormat: 1
|
||||
maxTextureSize: 2048
|
||||
textureSettings:
|
||||
serializedVersion: 2
|
||||
filterMode: -1
|
||||
aniso: -1
|
||||
mipBias: -100
|
||||
wrapU: -1
|
||||
wrapV: -1
|
||||
wrapW: -1
|
||||
nPOTScale: 1
|
||||
lightmap: 0
|
||||
compressionQuality: 50
|
||||
spriteMode: 0
|
||||
spriteExtrude: 1
|
||||
spriteMeshType: 1
|
||||
alignment: 0
|
||||
spritePivot: {x: 0.5, y: 0.5}
|
||||
spritePixelsToUnits: 100
|
||||
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||
spriteGenerateFallbackPhysicsShape: 1
|
||||
alphaUsage: 1
|
||||
alphaIsTransparency: 0
|
||||
spriteTessellationDetail: -1
|
||||
textureType: 0
|
||||
textureShape: 1
|
||||
singleChannelComponent: 0
|
||||
maxTextureSizeSet: 0
|
||||
compressionQualitySet: 0
|
||||
textureFormatSet: 0
|
||||
platformSettings:
|
||||
- serializedVersion: 2
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
spriteSheet:
|
||||
serializedVersion: 2
|
||||
sprites: []
|
||||
outline: []
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID:
|
||||
internalID: 0
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
secondaryTextures: []
|
||||
spritePackingTag:
|
||||
pSDRemoveMatte: 0
|
||||
pSDShowRemoveMatteOption: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
BIN
Assets/Materials/Active/Editor/Resources/ButtonInput.png
Normal file
|
After Width: | Height: | Size: 2.1 KiB |
@@ -0,0 +1,90 @@
|
||||
fileFormatVersion: 2
|
||||
guid: f187facad9f44ab4696b81ebd326e622
|
||||
TextureImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 10
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 1
|
||||
sRGBTexture: 1
|
||||
linearTexture: 0
|
||||
fadeOut: 0
|
||||
borderMipMap: 0
|
||||
mipMapsPreserveCoverage: 0
|
||||
alphaTestReferenceValue: 0.5
|
||||
mipMapFadeDistanceStart: 1
|
||||
mipMapFadeDistanceEnd: 3
|
||||
bumpmap:
|
||||
convertToNormalMap: 0
|
||||
externalNormalMap: 0
|
||||
heightScale: 0.25
|
||||
normalMapFilter: 0
|
||||
isReadable: 0
|
||||
streamingMipmaps: 0
|
||||
streamingMipmapsPriority: 0
|
||||
grayScaleToAlpha: 0
|
||||
generateCubemap: 6
|
||||
cubemapConvolution: 0
|
||||
seamlessCubemap: 0
|
||||
textureFormat: 1
|
||||
maxTextureSize: 2048
|
||||
textureSettings:
|
||||
serializedVersion: 2
|
||||
filterMode: -1
|
||||
aniso: -1
|
||||
mipBias: -100
|
||||
wrapU: -1
|
||||
wrapV: -1
|
||||
wrapW: -1
|
||||
nPOTScale: 1
|
||||
lightmap: 0
|
||||
compressionQuality: 50
|
||||
spriteMode: 0
|
||||
spriteExtrude: 1
|
||||
spriteMeshType: 1
|
||||
alignment: 0
|
||||
spritePivot: {x: 0.5, y: 0.5}
|
||||
spritePixelsToUnits: 100
|
||||
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||
spriteGenerateFallbackPhysicsShape: 1
|
||||
alphaUsage: 1
|
||||
alphaIsTransparency: 0
|
||||
spriteTessellationDetail: -1
|
||||
textureType: 0
|
||||
textureShape: 1
|
||||
singleChannelComponent: 0
|
||||
maxTextureSizeSet: 0
|
||||
compressionQualitySet: 0
|
||||
textureFormatSet: 0
|
||||
platformSettings:
|
||||
- serializedVersion: 2
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
spriteSheet:
|
||||
serializedVersion: 2
|
||||
sprites: []
|
||||
outline: []
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID:
|
||||
internalID: 0
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
secondaryTextures: []
|
||||
spritePackingTag:
|
||||
pSDRemoveMatte: 0
|
||||
pSDShowRemoveMatteOption: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
BIN
Assets/Materials/Active/Editor/Resources/CoordinateSender.png
Normal file
|
After Width: | Height: | Size: 2.4 KiB |
@@ -0,0 +1,91 @@
|
||||
fileFormatVersion: 2
|
||||
guid: fc68f4746f96a1e47ab9d8fa095439ce
|
||||
TextureImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 10
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 1
|
||||
sRGBTexture: 1
|
||||
linearTexture: 0
|
||||
fadeOut: 0
|
||||
borderMipMap: 0
|
||||
mipMapsPreserveCoverage: 0
|
||||
alphaTestReferenceValue: 0.5
|
||||
mipMapFadeDistanceStart: 1
|
||||
mipMapFadeDistanceEnd: 3
|
||||
bumpmap:
|
||||
convertToNormalMap: 0
|
||||
externalNormalMap: 0
|
||||
heightScale: 0.25
|
||||
normalMapFilter: 0
|
||||
isReadable: 0
|
||||
streamingMipmaps: 0
|
||||
streamingMipmapsPriority: 0
|
||||
grayScaleToAlpha: 0
|
||||
generateCubemap: 6
|
||||
cubemapConvolution: 0
|
||||
seamlessCubemap: 0
|
||||
textureFormat: 1
|
||||
maxTextureSize: 2048
|
||||
textureSettings:
|
||||
serializedVersion: 2
|
||||
filterMode: -1
|
||||
aniso: -1
|
||||
mipBias: -100
|
||||
wrapU: -1
|
||||
wrapV: -1
|
||||
wrapW: -1
|
||||
nPOTScale: 1
|
||||
lightmap: 0
|
||||
compressionQuality: 50
|
||||
spriteMode: 0
|
||||
spriteExtrude: 1
|
||||
spriteMeshType: 1
|
||||
alignment: 0
|
||||
spritePivot: {x: 0.5, y: 0.5}
|
||||
spritePixelsToUnits: 100
|
||||
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||
spriteGenerateFallbackPhysicsShape: 1
|
||||
alphaUsage: 1
|
||||
alphaIsTransparency: 0
|
||||
spriteTessellationDetail: -1
|
||||
textureType: 0
|
||||
textureShape: 1
|
||||
singleChannelComponent: 0
|
||||
maxTextureSizeSet: 0
|
||||
compressionQualitySet: 0
|
||||
textureFormatSet: 0
|
||||
platformSettings:
|
||||
- serializedVersion: 3
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
spriteSheet:
|
||||
serializedVersion: 2
|
||||
sprites: []
|
||||
outline: []
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID:
|
||||
internalID: 0
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
secondaryTextures: []
|
||||
spritePackingTag:
|
||||
pSDRemoveMatte: 0
|
||||
pSDShowRemoveMatteOption: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
BIN
Assets/Materials/Active/Editor/Resources/Counter.png
Normal file
|
After Width: | Height: | Size: 2.3 KiB |
91
Assets/Materials/Active/Editor/Resources/Counter.png.meta
Normal file
@@ -0,0 +1,91 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 2915624e27045444da8d3ec4649bc0a2
|
||||
TextureImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 10
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 1
|
||||
sRGBTexture: 1
|
||||
linearTexture: 0
|
||||
fadeOut: 0
|
||||
borderMipMap: 0
|
||||
mipMapsPreserveCoverage: 0
|
||||
alphaTestReferenceValue: 0.5
|
||||
mipMapFadeDistanceStart: 1
|
||||
mipMapFadeDistanceEnd: 3
|
||||
bumpmap:
|
||||
convertToNormalMap: 0
|
||||
externalNormalMap: 0
|
||||
heightScale: 0.25
|
||||
normalMapFilter: 0
|
||||
isReadable: 0
|
||||
streamingMipmaps: 0
|
||||
streamingMipmapsPriority: 0
|
||||
grayScaleToAlpha: 0
|
||||
generateCubemap: 6
|
||||
cubemapConvolution: 0
|
||||
seamlessCubemap: 0
|
||||
textureFormat: 1
|
||||
maxTextureSize: 2048
|
||||
textureSettings:
|
||||
serializedVersion: 2
|
||||
filterMode: -1
|
||||
aniso: -1
|
||||
mipBias: -100
|
||||
wrapU: -1
|
||||
wrapV: -1
|
||||
wrapW: -1
|
||||
nPOTScale: 1
|
||||
lightmap: 0
|
||||
compressionQuality: 50
|
||||
spriteMode: 0
|
||||
spriteExtrude: 1
|
||||
spriteMeshType: 1
|
||||
alignment: 0
|
||||
spritePivot: {x: 0.5, y: 0.5}
|
||||
spritePixelsToUnits: 100
|
||||
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||
spriteGenerateFallbackPhysicsShape: 1
|
||||
alphaUsage: 1
|
||||
alphaIsTransparency: 0
|
||||
spriteTessellationDetail: -1
|
||||
textureType: 0
|
||||
textureShape: 1
|
||||
singleChannelComponent: 0
|
||||
maxTextureSizeSet: 0
|
||||
compressionQualitySet: 0
|
||||
textureFormatSet: 0
|
||||
platformSettings:
|
||||
- serializedVersion: 3
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
spriteSheet:
|
||||
serializedVersion: 2
|
||||
sprites: []
|
||||
outline: []
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID:
|
||||
internalID: 0
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
secondaryTextures: []
|
||||
spritePackingTag:
|
||||
pSDRemoveMatte: 0
|
||||
pSDShowRemoveMatteOption: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
BIN
Assets/Materials/Active/Editor/Resources/EnableOnStart.png
Normal file
|
After Width: | Height: | Size: 1.9 KiB |
@@ -0,0 +1,91 @@
|
||||
fileFormatVersion: 2
|
||||
guid: b03d265cea0acde4c91e9cd0209c14e1
|
||||
TextureImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 10
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 1
|
||||
sRGBTexture: 1
|
||||
linearTexture: 0
|
||||
fadeOut: 0
|
||||
borderMipMap: 0
|
||||
mipMapsPreserveCoverage: 0
|
||||
alphaTestReferenceValue: 0.5
|
||||
mipMapFadeDistanceStart: 1
|
||||
mipMapFadeDistanceEnd: 3
|
||||
bumpmap:
|
||||
convertToNormalMap: 0
|
||||
externalNormalMap: 0
|
||||
heightScale: 0.25
|
||||
normalMapFilter: 0
|
||||
isReadable: 0
|
||||
streamingMipmaps: 0
|
||||
streamingMipmapsPriority: 0
|
||||
grayScaleToAlpha: 0
|
||||
generateCubemap: 6
|
||||
cubemapConvolution: 0
|
||||
seamlessCubemap: 0
|
||||
textureFormat: 1
|
||||
maxTextureSize: 2048
|
||||
textureSettings:
|
||||
serializedVersion: 2
|
||||
filterMode: -1
|
||||
aniso: -1
|
||||
mipBias: -100
|
||||
wrapU: -1
|
||||
wrapV: -1
|
||||
wrapW: -1
|
||||
nPOTScale: 1
|
||||
lightmap: 0
|
||||
compressionQuality: 50
|
||||
spriteMode: 0
|
||||
spriteExtrude: 1
|
||||
spriteMeshType: 1
|
||||
alignment: 0
|
||||
spritePivot: {x: 0.5, y: 0.5}
|
||||
spritePixelsToUnits: 100
|
||||
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||
spriteGenerateFallbackPhysicsShape: 1
|
||||
alphaUsage: 1
|
||||
alphaIsTransparency: 0
|
||||
spriteTessellationDetail: -1
|
||||
textureType: 0
|
||||
textureShape: 1
|
||||
singleChannelComponent: 0
|
||||
maxTextureSizeSet: 0
|
||||
compressionQualitySet: 0
|
||||
textureFormatSet: 0
|
||||
platformSettings:
|
||||
- serializedVersion: 3
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
spriteSheet:
|
||||
serializedVersion: 2
|
||||
sprites: []
|
||||
outline: []
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID:
|
||||
internalID: 0
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
secondaryTextures: []
|
||||
spritePackingTag:
|
||||
pSDRemoveMatte: 0
|
||||
pSDShowRemoveMatteOption: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
BIN
Assets/Materials/Active/Editor/Resources/IKControl.png
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
91
Assets/Materials/Active/Editor/Resources/IKControl.png.meta
Normal file
@@ -0,0 +1,91 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 23c85e3053f034f488cfacba9a304551
|
||||
TextureImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 10
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 1
|
||||
sRGBTexture: 1
|
||||
linearTexture: 0
|
||||
fadeOut: 0
|
||||
borderMipMap: 0
|
||||
mipMapsPreserveCoverage: 0
|
||||
alphaTestReferenceValue: 0.5
|
||||
mipMapFadeDistanceStart: 1
|
||||
mipMapFadeDistanceEnd: 3
|
||||
bumpmap:
|
||||
convertToNormalMap: 0
|
||||
externalNormalMap: 0
|
||||
heightScale: 0.25
|
||||
normalMapFilter: 0
|
||||
isReadable: 0
|
||||
streamingMipmaps: 0
|
||||
streamingMipmapsPriority: 0
|
||||
grayScaleToAlpha: 0
|
||||
generateCubemap: 6
|
||||
cubemapConvolution: 0
|
||||
seamlessCubemap: 0
|
||||
textureFormat: 1
|
||||
maxTextureSize: 2048
|
||||
textureSettings:
|
||||
serializedVersion: 2
|
||||
filterMode: -1
|
||||
aniso: -1
|
||||
mipBias: -100
|
||||
wrapU: -1
|
||||
wrapV: -1
|
||||
wrapW: -1
|
||||
nPOTScale: 1
|
||||
lightmap: 0
|
||||
compressionQuality: 50
|
||||
spriteMode: 0
|
||||
spriteExtrude: 1
|
||||
spriteMeshType: 1
|
||||
alignment: 0
|
||||
spritePivot: {x: 0.5, y: 0.5}
|
||||
spritePixelsToUnits: 100
|
||||
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||
spriteGenerateFallbackPhysicsShape: 1
|
||||
alphaUsage: 1
|
||||
alphaIsTransparency: 0
|
||||
spriteTessellationDetail: -1
|
||||
textureType: 0
|
||||
textureShape: 1
|
||||
singleChannelComponent: 0
|
||||
maxTextureSizeSet: 0
|
||||
compressionQualitySet: 0
|
||||
textureFormatSet: 0
|
||||
platformSettings:
|
||||
- serializedVersion: 3
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
spriteSheet:
|
||||
serializedVersion: 2
|
||||
sprites: []
|
||||
outline: []
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID:
|
||||
internalID: 0
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
secondaryTextures: []
|
||||
spritePackingTag:
|
||||
pSDRemoveMatte: 0
|
||||
pSDShowRemoveMatteOption: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
BIN
Assets/Materials/Active/Editor/Resources/KeyCodeInput.png
Normal file
|
After Width: | Height: | Size: 1.7 KiB |
@@ -0,0 +1,90 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 29123a553b45242469ac7413244d27d5
|
||||
TextureImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 10
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 1
|
||||
sRGBTexture: 1
|
||||
linearTexture: 0
|
||||
fadeOut: 0
|
||||
borderMipMap: 0
|
||||
mipMapsPreserveCoverage: 0
|
||||
alphaTestReferenceValue: 0.5
|
||||
mipMapFadeDistanceStart: 1
|
||||
mipMapFadeDistanceEnd: 3
|
||||
bumpmap:
|
||||
convertToNormalMap: 0
|
||||
externalNormalMap: 0
|
||||
heightScale: 0.25
|
||||
normalMapFilter: 0
|
||||
isReadable: 0
|
||||
streamingMipmaps: 0
|
||||
streamingMipmapsPriority: 0
|
||||
grayScaleToAlpha: 0
|
||||
generateCubemap: 6
|
||||
cubemapConvolution: 0
|
||||
seamlessCubemap: 0
|
||||
textureFormat: 1
|
||||
maxTextureSize: 2048
|
||||
textureSettings:
|
||||
serializedVersion: 2
|
||||
filterMode: -1
|
||||
aniso: -1
|
||||
mipBias: -100
|
||||
wrapU: -1
|
||||
wrapV: -1
|
||||
wrapW: -1
|
||||
nPOTScale: 1
|
||||
lightmap: 0
|
||||
compressionQuality: 50
|
||||
spriteMode: 0
|
||||
spriteExtrude: 1
|
||||
spriteMeshType: 1
|
||||
alignment: 0
|
||||
spritePivot: {x: 0.5, y: 0.5}
|
||||
spritePixelsToUnits: 100
|
||||
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||
spriteGenerateFallbackPhysicsShape: 1
|
||||
alphaUsage: 1
|
||||
alphaIsTransparency: 0
|
||||
spriteTessellationDetail: -1
|
||||
textureType: 0
|
||||
textureShape: 1
|
||||
singleChannelComponent: 0
|
||||
maxTextureSizeSet: 0
|
||||
compressionQualitySet: 0
|
||||
textureFormatSet: 0
|
||||
platformSettings:
|
||||
- serializedVersion: 2
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
spriteSheet:
|
||||
serializedVersion: 2
|
||||
sprites: []
|
||||
outline: []
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID:
|
||||
internalID: 0
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
secondaryTextures: []
|
||||
spritePackingTag:
|
||||
pSDRemoveMatte: 0
|
||||
pSDShowRemoveMatteOption: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
BIN
Assets/Materials/Active/Editor/Resources/Light.png
Normal file
|
After Width: | Height: | Size: 2.2 KiB |
90
Assets/Materials/Active/Editor/Resources/Light.png.meta
Normal file
@@ -0,0 +1,90 @@
|
||||
fileFormatVersion: 2
|
||||
guid: be63d04e2de71834e90882b0dc0c883d
|
||||
TextureImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 10
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 1
|
||||
sRGBTexture: 1
|
||||
linearTexture: 0
|
||||
fadeOut: 0
|
||||
borderMipMap: 0
|
||||
mipMapsPreserveCoverage: 0
|
||||
alphaTestReferenceValue: 0.5
|
||||
mipMapFadeDistanceStart: 1
|
||||
mipMapFadeDistanceEnd: 3
|
||||
bumpmap:
|
||||
convertToNormalMap: 0
|
||||
externalNormalMap: 0
|
||||
heightScale: 0.25
|
||||
normalMapFilter: 0
|
||||
isReadable: 0
|
||||
streamingMipmaps: 0
|
||||
streamingMipmapsPriority: 0
|
||||
grayScaleToAlpha: 0
|
||||
generateCubemap: 6
|
||||
cubemapConvolution: 0
|
||||
seamlessCubemap: 0
|
||||
textureFormat: 1
|
||||
maxTextureSize: 2048
|
||||
textureSettings:
|
||||
serializedVersion: 2
|
||||
filterMode: -1
|
||||
aniso: -1
|
||||
mipBias: -100
|
||||
wrapU: -1
|
||||
wrapV: -1
|
||||
wrapW: -1
|
||||
nPOTScale: 1
|
||||
lightmap: 0
|
||||
compressionQuality: 50
|
||||
spriteMode: 0
|
||||
spriteExtrude: 1
|
||||
spriteMeshType: 1
|
||||
alignment: 0
|
||||
spritePivot: {x: 0.5, y: 0.5}
|
||||
spritePixelsToUnits: 100
|
||||
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||
spriteGenerateFallbackPhysicsShape: 1
|
||||
alphaUsage: 1
|
||||
alphaIsTransparency: 0
|
||||
spriteTessellationDetail: -1
|
||||
textureType: 0
|
||||
textureShape: 1
|
||||
singleChannelComponent: 0
|
||||
maxTextureSizeSet: 0
|
||||
compressionQualitySet: 0
|
||||
textureFormatSet: 0
|
||||
platformSettings:
|
||||
- serializedVersion: 2
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
spriteSheet:
|
||||
serializedVersion: 2
|
||||
sprites: []
|
||||
outline: []
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID:
|
||||
internalID: 0
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
secondaryTextures: []
|
||||
spritePackingTag:
|
||||
pSDRemoveMatte: 0
|
||||
pSDShowRemoveMatteOption: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
BIN
Assets/Materials/Active/Editor/Resources/LockPosition.png
Normal file
|
After Width: | Height: | Size: 2.3 KiB |
@@ -0,0 +1,90 @@
|
||||
fileFormatVersion: 2
|
||||
guid: f8f3e671696a0544680330970ea50b7e
|
||||
TextureImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 10
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 1
|
||||
sRGBTexture: 1
|
||||
linearTexture: 0
|
||||
fadeOut: 0
|
||||
borderMipMap: 0
|
||||
mipMapsPreserveCoverage: 0
|
||||
alphaTestReferenceValue: 0.5
|
||||
mipMapFadeDistanceStart: 1
|
||||
mipMapFadeDistanceEnd: 3
|
||||
bumpmap:
|
||||
convertToNormalMap: 0
|
||||
externalNormalMap: 0
|
||||
heightScale: 0.25
|
||||
normalMapFilter: 0
|
||||
isReadable: 0
|
||||
streamingMipmaps: 0
|
||||
streamingMipmapsPriority: 0
|
||||
grayScaleToAlpha: 0
|
||||
generateCubemap: 6
|
||||
cubemapConvolution: 0
|
||||
seamlessCubemap: 0
|
||||
textureFormat: 1
|
||||
maxTextureSize: 2048
|
||||
textureSettings:
|
||||
serializedVersion: 2
|
||||
filterMode: -1
|
||||
aniso: -1
|
||||
mipBias: -100
|
||||
wrapU: -1
|
||||
wrapV: -1
|
||||
wrapW: -1
|
||||
nPOTScale: 1
|
||||
lightmap: 0
|
||||
compressionQuality: 50
|
||||
spriteMode: 0
|
||||
spriteExtrude: 1
|
||||
spriteMeshType: 1
|
||||
alignment: 0
|
||||
spritePivot: {x: 0.5, y: 0.5}
|
||||
spritePixelsToUnits: 100
|
||||
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||
spriteGenerateFallbackPhysicsShape: 1
|
||||
alphaUsage: 1
|
||||
alphaIsTransparency: 0
|
||||
spriteTessellationDetail: -1
|
||||
textureType: 0
|
||||
textureShape: 1
|
||||
singleChannelComponent: 0
|
||||
maxTextureSizeSet: 0
|
||||
compressionQualitySet: 0
|
||||
textureFormatSet: 0
|
||||
platformSettings:
|
||||
- serializedVersion: 2
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
spriteSheet:
|
||||
serializedVersion: 2
|
||||
sprites: []
|
||||
outline: []
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID:
|
||||
internalID: 0
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
secondaryTextures: []
|
||||
spritePackingTag:
|
||||
pSDRemoveMatte: 0
|
||||
pSDShowRemoveMatteOption: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
BIN
Assets/Materials/Active/Editor/Resources/LockRotation.png
Normal file
|
After Width: | Height: | Size: 2.3 KiB |
@@ -0,0 +1,90 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 878138a999632be40834b40fc2f7ba17
|
||||
TextureImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 10
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 1
|
||||
sRGBTexture: 1
|
||||
linearTexture: 0
|
||||
fadeOut: 0
|
||||
borderMipMap: 0
|
||||
mipMapsPreserveCoverage: 0
|
||||
alphaTestReferenceValue: 0.5
|
||||
mipMapFadeDistanceStart: 1
|
||||
mipMapFadeDistanceEnd: 3
|
||||
bumpmap:
|
||||
convertToNormalMap: 0
|
||||
externalNormalMap: 0
|
||||
heightScale: 0.25
|
||||
normalMapFilter: 0
|
||||
isReadable: 0
|
||||
streamingMipmaps: 0
|
||||
streamingMipmapsPriority: 0
|
||||
grayScaleToAlpha: 0
|
||||
generateCubemap: 6
|
||||
cubemapConvolution: 0
|
||||
seamlessCubemap: 0
|
||||
textureFormat: 1
|
||||
maxTextureSize: 2048
|
||||
textureSettings:
|
||||
serializedVersion: 2
|
||||
filterMode: -1
|
||||
aniso: -1
|
||||
mipBias: -100
|
||||
wrapU: -1
|
||||
wrapV: -1
|
||||
wrapW: -1
|
||||
nPOTScale: 1
|
||||
lightmap: 0
|
||||
compressionQuality: 50
|
||||
spriteMode: 0
|
||||
spriteExtrude: 1
|
||||
spriteMeshType: 1
|
||||
alignment: 0
|
||||
spritePivot: {x: 0.5, y: 0.5}
|
||||
spritePixelsToUnits: 100
|
||||
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||
spriteGenerateFallbackPhysicsShape: 1
|
||||
alphaUsage: 1
|
||||
alphaIsTransparency: 0
|
||||
spriteTessellationDetail: -1
|
||||
textureType: 0
|
||||
textureShape: 1
|
||||
singleChannelComponent: 0
|
||||
maxTextureSizeSet: 0
|
||||
compressionQualitySet: 0
|
||||
textureFormatSet: 0
|
||||
platformSettings:
|
||||
- serializedVersion: 2
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
spriteSheet:
|
||||
serializedVersion: 2
|
||||
sprites: []
|
||||
outline: []
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID:
|
||||
internalID: 0
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
secondaryTextures: []
|
||||
spritePackingTag:
|
||||
pSDRemoveMatte: 0
|
||||
pSDShowRemoveMatteOption: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
BIN
Assets/Materials/Active/Editor/Resources/Manager.png
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
90
Assets/Materials/Active/Editor/Resources/Manager.png.meta
Normal file
@@ -0,0 +1,90 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 20d4c1b15e58c074fb45ad44b19b4fe1
|
||||
TextureImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 10
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 1
|
||||
sRGBTexture: 1
|
||||
linearTexture: 0
|
||||
fadeOut: 0
|
||||
borderMipMap: 0
|
||||
mipMapsPreserveCoverage: 0
|
||||
alphaTestReferenceValue: 0.5
|
||||
mipMapFadeDistanceStart: 1
|
||||
mipMapFadeDistanceEnd: 3
|
||||
bumpmap:
|
||||
convertToNormalMap: 0
|
||||
externalNormalMap: 0
|
||||
heightScale: 0.25
|
||||
normalMapFilter: 0
|
||||
isReadable: 0
|
||||
streamingMipmaps: 0
|
||||
streamingMipmapsPriority: 0
|
||||
grayScaleToAlpha: 0
|
||||
generateCubemap: 6
|
||||
cubemapConvolution: 0
|
||||
seamlessCubemap: 0
|
||||
textureFormat: 1
|
||||
maxTextureSize: 2048
|
||||
textureSettings:
|
||||
serializedVersion: 2
|
||||
filterMode: -1
|
||||
aniso: -1
|
||||
mipBias: -100
|
||||
wrapU: -1
|
||||
wrapV: -1
|
||||
wrapW: -1
|
||||
nPOTScale: 1
|
||||
lightmap: 0
|
||||
compressionQuality: 50
|
||||
spriteMode: 0
|
||||
spriteExtrude: 1
|
||||
spriteMeshType: 1
|
||||
alignment: 0
|
||||
spritePivot: {x: 0.5, y: 0.5}
|
||||
spritePixelsToUnits: 100
|
||||
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||
spriteGenerateFallbackPhysicsShape: 1
|
||||
alphaUsage: 1
|
||||
alphaIsTransparency: 0
|
||||
spriteTessellationDetail: -1
|
||||
textureType: 0
|
||||
textureShape: 1
|
||||
singleChannelComponent: 0
|
||||
maxTextureSizeSet: 0
|
||||
compressionQualitySet: 0
|
||||
textureFormatSet: 0
|
||||
platformSettings:
|
||||
- serializedVersion: 2
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
spriteSheet:
|
||||
serializedVersion: 2
|
||||
sprites: []
|
||||
outline: []
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID:
|
||||
internalID: 0
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
secondaryTextures: []
|
||||
spritePackingTag:
|
||||
pSDRemoveMatte: 0
|
||||
pSDShowRemoveMatteOption: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
BIN
Assets/Materials/Active/Editor/Resources/Mover.png
Normal file
|
After Width: | Height: | Size: 1.6 KiB |
90
Assets/Materials/Active/Editor/Resources/Mover.png.meta
Normal file
@@ -0,0 +1,90 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 94bc58754a1b0f342ba187360c38bd10
|
||||
TextureImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 10
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 1
|
||||
sRGBTexture: 1
|
||||
linearTexture: 0
|
||||
fadeOut: 0
|
||||
borderMipMap: 0
|
||||
mipMapsPreserveCoverage: 0
|
||||
alphaTestReferenceValue: 0.5
|
||||
mipMapFadeDistanceStart: 1
|
||||
mipMapFadeDistanceEnd: 3
|
||||
bumpmap:
|
||||
convertToNormalMap: 0
|
||||
externalNormalMap: 0
|
||||
heightScale: 0.25
|
||||
normalMapFilter: 0
|
||||
isReadable: 0
|
||||
streamingMipmaps: 0
|
||||
streamingMipmapsPriority: 0
|
||||
grayScaleToAlpha: 0
|
||||
generateCubemap: 6
|
||||
cubemapConvolution: 0
|
||||
seamlessCubemap: 0
|
||||
textureFormat: 1
|
||||
maxTextureSize: 2048
|
||||
textureSettings:
|
||||
serializedVersion: 2
|
||||
filterMode: -1
|
||||
aniso: -1
|
||||
mipBias: -100
|
||||
wrapU: -1
|
||||
wrapV: -1
|
||||
wrapW: -1
|
||||
nPOTScale: 1
|
||||
lightmap: 0
|
||||
compressionQuality: 50
|
||||
spriteMode: 0
|
||||
spriteExtrude: 1
|
||||
spriteMeshType: 1
|
||||
alignment: 0
|
||||
spritePivot: {x: 0.5, y: 0.5}
|
||||
spritePixelsToUnits: 100
|
||||
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||
spriteGenerateFallbackPhysicsShape: 1
|
||||
alphaUsage: 1
|
||||
alphaIsTransparency: 0
|
||||
spriteTessellationDetail: -1
|
||||
textureType: 0
|
||||
textureShape: 1
|
||||
singleChannelComponent: 0
|
||||
maxTextureSizeSet: 0
|
||||
compressionQualitySet: 0
|
||||
textureFormatSet: 0
|
||||
platformSettings:
|
||||
- serializedVersion: 2
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
spriteSheet:
|
||||
serializedVersion: 2
|
||||
sprites: []
|
||||
outline: []
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID:
|
||||
internalID: 0
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
secondaryTextures: []
|
||||
spritePackingTag:
|
||||
pSDRemoveMatte: 0
|
||||
pSDShowRemoveMatteOption: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
BIN
Assets/Materials/Active/Editor/Resources/MoverAnalog.png
Normal file
|
After Width: | Height: | Size: 1.7 KiB |
@@ -0,0 +1,90 @@
|
||||
fileFormatVersion: 2
|
||||
guid: d40ed6501d5269f4688d3d936f81e237
|
||||
TextureImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 10
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 1
|
||||
sRGBTexture: 1
|
||||
linearTexture: 0
|
||||
fadeOut: 0
|
||||
borderMipMap: 0
|
||||
mipMapsPreserveCoverage: 0
|
||||
alphaTestReferenceValue: 0.5
|
||||
mipMapFadeDistanceStart: 1
|
||||
mipMapFadeDistanceEnd: 3
|
||||
bumpmap:
|
||||
convertToNormalMap: 0
|
||||
externalNormalMap: 0
|
||||
heightScale: 0.25
|
||||
normalMapFilter: 0
|
||||
isReadable: 0
|
||||
streamingMipmaps: 0
|
||||
streamingMipmapsPriority: 0
|
||||
grayScaleToAlpha: 0
|
||||
generateCubemap: 6
|
||||
cubemapConvolution: 0
|
||||
seamlessCubemap: 0
|
||||
textureFormat: 1
|
||||
maxTextureSize: 2048
|
||||
textureSettings:
|
||||
serializedVersion: 2
|
||||
filterMode: -1
|
||||
aniso: -1
|
||||
mipBias: -100
|
||||
wrapU: -1
|
||||
wrapV: -1
|
||||
wrapW: -1
|
||||
nPOTScale: 1
|
||||
lightmap: 0
|
||||
compressionQuality: 50
|
||||
spriteMode: 0
|
||||
spriteExtrude: 1
|
||||
spriteMeshType: 1
|
||||
alignment: 0
|
||||
spritePivot: {x: 0.5, y: 0.5}
|
||||
spritePixelsToUnits: 100
|
||||
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||
spriteGenerateFallbackPhysicsShape: 1
|
||||
alphaUsage: 1
|
||||
alphaIsTransparency: 0
|
||||
spriteTessellationDetail: -1
|
||||
textureType: 0
|
||||
textureShape: 1
|
||||
singleChannelComponent: 0
|
||||
maxTextureSizeSet: 0
|
||||
compressionQualitySet: 0
|
||||
textureFormatSet: 0
|
||||
platformSettings:
|
||||
- serializedVersion: 2
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
spriteSheet:
|
||||
serializedVersion: 2
|
||||
sprites: []
|
||||
outline: []
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID:
|
||||
internalID: 0
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
secondaryTextures: []
|
||||
spritePackingTag:
|
||||
pSDRemoveMatte: 0
|
||||
pSDShowRemoveMatteOption: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
BIN
Assets/Materials/Active/Editor/Resources/PositionSwapper.png
Normal file
|
After Width: | Height: | Size: 2.3 KiB |
@@ -0,0 +1,90 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 2cb96dc1a0774cc40bd543a5add16dc1
|
||||
TextureImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 10
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 1
|
||||
sRGBTexture: 1
|
||||
linearTexture: 0
|
||||
fadeOut: 0
|
||||
borderMipMap: 0
|
||||
mipMapsPreserveCoverage: 0
|
||||
alphaTestReferenceValue: 0.5
|
||||
mipMapFadeDistanceStart: 1
|
||||
mipMapFadeDistanceEnd: 3
|
||||
bumpmap:
|
||||
convertToNormalMap: 0
|
||||
externalNormalMap: 0
|
||||
heightScale: 0.25
|
||||
normalMapFilter: 0
|
||||
isReadable: 0
|
||||
streamingMipmaps: 0
|
||||
streamingMipmapsPriority: 0
|
||||
grayScaleToAlpha: 0
|
||||
generateCubemap: 6
|
||||
cubemapConvolution: 0
|
||||
seamlessCubemap: 0
|
||||
textureFormat: 1
|
||||
maxTextureSize: 2048
|
||||
textureSettings:
|
||||
serializedVersion: 2
|
||||
filterMode: -1
|
||||
aniso: -1
|
||||
mipBias: -100
|
||||
wrapU: -1
|
||||
wrapV: -1
|
||||
wrapW: -1
|
||||
nPOTScale: 1
|
||||
lightmap: 0
|
||||
compressionQuality: 50
|
||||
spriteMode: 0
|
||||
spriteExtrude: 1
|
||||
spriteMeshType: 1
|
||||
alignment: 0
|
||||
spritePivot: {x: 0.5, y: 0.5}
|
||||
spritePixelsToUnits: 100
|
||||
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||
spriteGenerateFallbackPhysicsShape: 1
|
||||
alphaUsage: 1
|
||||
alphaIsTransparency: 0
|
||||
spriteTessellationDetail: -1
|
||||
textureType: 0
|
||||
textureShape: 1
|
||||
singleChannelComponent: 0
|
||||
maxTextureSizeSet: 0
|
||||
compressionQualitySet: 0
|
||||
textureFormatSet: 0
|
||||
platformSettings:
|
||||
- serializedVersion: 2
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
spriteSheet:
|
||||
serializedVersion: 2
|
||||
sprites: []
|
||||
outline: []
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID:
|
||||
internalID: 0
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
secondaryTextures: []
|
||||
spritePackingTag:
|
||||
pSDRemoveMatte: 0
|
||||
pSDShowRemoveMatteOption: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
BIN
Assets/Materials/Active/Editor/Resources/PositionSway.png
Normal file
|
After Width: | Height: | Size: 1.8 KiB |
@@ -0,0 +1,91 @@
|
||||
fileFormatVersion: 2
|
||||
guid: e297178b464d287419215e9ac6e4887b
|
||||
TextureImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 10
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 1
|
||||
sRGBTexture: 1
|
||||
linearTexture: 0
|
||||
fadeOut: 0
|
||||
borderMipMap: 0
|
||||
mipMapsPreserveCoverage: 0
|
||||
alphaTestReferenceValue: 0.5
|
||||
mipMapFadeDistanceStart: 1
|
||||
mipMapFadeDistanceEnd: 3
|
||||
bumpmap:
|
||||
convertToNormalMap: 0
|
||||
externalNormalMap: 0
|
||||
heightScale: 0.25
|
||||
normalMapFilter: 0
|
||||
isReadable: 0
|
||||
streamingMipmaps: 0
|
||||
streamingMipmapsPriority: 0
|
||||
grayScaleToAlpha: 0
|
||||
generateCubemap: 6
|
||||
cubemapConvolution: 0
|
||||
seamlessCubemap: 0
|
||||
textureFormat: 1
|
||||
maxTextureSize: 2048
|
||||
textureSettings:
|
||||
serializedVersion: 2
|
||||
filterMode: -1
|
||||
aniso: -1
|
||||
mipBias: -100
|
||||
wrapU: -1
|
||||
wrapV: -1
|
||||
wrapW: -1
|
||||
nPOTScale: 1
|
||||
lightmap: 0
|
||||
compressionQuality: 50
|
||||
spriteMode: 0
|
||||
spriteExtrude: 1
|
||||
spriteMeshType: 1
|
||||
alignment: 0
|
||||
spritePivot: {x: 0.5, y: 0.5}
|
||||
spritePixelsToUnits: 100
|
||||
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||
spriteGenerateFallbackPhysicsShape: 1
|
||||
alphaUsage: 1
|
||||
alphaIsTransparency: 0
|
||||
spriteTessellationDetail: -1
|
||||
textureType: 0
|
||||
textureShape: 1
|
||||
singleChannelComponent: 0
|
||||
maxTextureSizeSet: 0
|
||||
compressionQualitySet: 0
|
||||
textureFormatSet: 0
|
||||
platformSettings:
|
||||
- serializedVersion: 3
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
spriteSheet:
|
||||
serializedVersion: 2
|
||||
sprites: []
|
||||
outline: []
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID:
|
||||
internalID: 0
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
secondaryTextures: []
|
||||
spritePackingTag:
|
||||
pSDRemoveMatte: 0
|
||||
pSDShowRemoveMatteOption: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
BIN
Assets/Materials/Active/Editor/Resources/Repositioner.png
Normal file
|
After Width: | Height: | Size: 2.1 KiB |
@@ -0,0 +1,91 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 40d4cf2c9a9c81f4cb3416ffccbbbd6f
|
||||
TextureImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 10
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 1
|
||||
sRGBTexture: 1
|
||||
linearTexture: 0
|
||||
fadeOut: 0
|
||||
borderMipMap: 0
|
||||
mipMapsPreserveCoverage: 0
|
||||
alphaTestReferenceValue: 0.5
|
||||
mipMapFadeDistanceStart: 1
|
||||
mipMapFadeDistanceEnd: 3
|
||||
bumpmap:
|
||||
convertToNormalMap: 0
|
||||
externalNormalMap: 0
|
||||
heightScale: 0.25
|
||||
normalMapFilter: 0
|
||||
isReadable: 0
|
||||
streamingMipmaps: 0
|
||||
streamingMipmapsPriority: 0
|
||||
grayScaleToAlpha: 0
|
||||
generateCubemap: 6
|
||||
cubemapConvolution: 0
|
||||
seamlessCubemap: 0
|
||||
textureFormat: 1
|
||||
maxTextureSize: 2048
|
||||
textureSettings:
|
||||
serializedVersion: 2
|
||||
filterMode: -1
|
||||
aniso: -1
|
||||
mipBias: -100
|
||||
wrapU: -1
|
||||
wrapV: -1
|
||||
wrapW: -1
|
||||
nPOTScale: 1
|
||||
lightmap: 0
|
||||
compressionQuality: 50
|
||||
spriteMode: 0
|
||||
spriteExtrude: 1
|
||||
spriteMeshType: 1
|
||||
alignment: 0
|
||||
spritePivot: {x: 0.5, y: 0.5}
|
||||
spritePixelsToUnits: 100
|
||||
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||
spriteGenerateFallbackPhysicsShape: 1
|
||||
alphaUsage: 1
|
||||
alphaIsTransparency: 0
|
||||
spriteTessellationDetail: -1
|
||||
textureType: 0
|
||||
textureShape: 1
|
||||
singleChannelComponent: 0
|
||||
maxTextureSizeSet: 0
|
||||
compressionQualitySet: 0
|
||||
textureFormatSet: 0
|
||||
platformSettings:
|
||||
- serializedVersion: 3
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
spriteSheet:
|
||||
serializedVersion: 2
|
||||
sprites: []
|
||||
outline: []
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID:
|
||||
internalID: 0
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
secondaryTextures: []
|
||||
spritePackingTag:
|
||||
pSDRemoveMatte: 0
|
||||
pSDShowRemoveMatteOption: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
BIN
Assets/Materials/Active/Editor/Resources/Resting.png
Normal file
|
After Width: | Height: | Size: 2.0 KiB |
90
Assets/Materials/Active/Editor/Resources/Resting.png.meta
Normal file
@@ -0,0 +1,90 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 19382ebed5e3a7f448bdc7aa36014bcf
|
||||
TextureImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 10
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 1
|
||||
sRGBTexture: 1
|
||||
linearTexture: 0
|
||||
fadeOut: 0
|
||||
borderMipMap: 0
|
||||
mipMapsPreserveCoverage: 0
|
||||
alphaTestReferenceValue: 0.5
|
||||
mipMapFadeDistanceStart: 1
|
||||
mipMapFadeDistanceEnd: 3
|
||||
bumpmap:
|
||||
convertToNormalMap: 0
|
||||
externalNormalMap: 0
|
||||
heightScale: 0.25
|
||||
normalMapFilter: 0
|
||||
isReadable: 0
|
||||
streamingMipmaps: 0
|
||||
streamingMipmapsPriority: 0
|
||||
grayScaleToAlpha: 0
|
||||
generateCubemap: 6
|
||||
cubemapConvolution: 0
|
||||
seamlessCubemap: 0
|
||||
textureFormat: 1
|
||||
maxTextureSize: 2048
|
||||
textureSettings:
|
||||
serializedVersion: 2
|
||||
filterMode: -1
|
||||
aniso: -1
|
||||
mipBias: -100
|
||||
wrapU: -1
|
||||
wrapV: -1
|
||||
wrapW: -1
|
||||
nPOTScale: 1
|
||||
lightmap: 0
|
||||
compressionQuality: 50
|
||||
spriteMode: 0
|
||||
spriteExtrude: 1
|
||||
spriteMeshType: 1
|
||||
alignment: 0
|
||||
spritePivot: {x: 0.5, y: 0.5}
|
||||
spritePixelsToUnits: 100
|
||||
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||
spriteGenerateFallbackPhysicsShape: 1
|
||||
alphaUsage: 1
|
||||
alphaIsTransparency: 0
|
||||
spriteTessellationDetail: -1
|
||||
textureType: 0
|
||||
textureShape: 1
|
||||
singleChannelComponent: 0
|
||||
maxTextureSizeSet: 0
|
||||
compressionQualitySet: 0
|
||||
textureFormatSet: 0
|
||||
platformSettings:
|
||||
- serializedVersion: 2
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
spriteSheet:
|
||||
serializedVersion: 2
|
||||
sprites: []
|
||||
outline: []
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID:
|
||||
internalID: 0
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
secondaryTextures: []
|
||||
spritePackingTag:
|
||||
pSDRemoveMatte: 0
|
||||
pSDShowRemoveMatteOption: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
BIN
Assets/Materials/Active/Editor/Resources/RotationSwapper.png
Normal file
|
After Width: | Height: | Size: 2.5 KiB |
@@ -0,0 +1,91 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 3c0064d864aeeac40b9be68ba745329e
|
||||
TextureImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 10
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 1
|
||||
sRGBTexture: 1
|
||||
linearTexture: 0
|
||||
fadeOut: 0
|
||||
borderMipMap: 0
|
||||
mipMapsPreserveCoverage: 0
|
||||
alphaTestReferenceValue: 0.5
|
||||
mipMapFadeDistanceStart: 1
|
||||
mipMapFadeDistanceEnd: 3
|
||||
bumpmap:
|
||||
convertToNormalMap: 0
|
||||
externalNormalMap: 0
|
||||
heightScale: 0.25
|
||||
normalMapFilter: 0
|
||||
isReadable: 0
|
||||
streamingMipmaps: 0
|
||||
streamingMipmapsPriority: 0
|
||||
grayScaleToAlpha: 0
|
||||
generateCubemap: 6
|
||||
cubemapConvolution: 0
|
||||
seamlessCubemap: 0
|
||||
textureFormat: 1
|
||||
maxTextureSize: 2048
|
||||
textureSettings:
|
||||
serializedVersion: 2
|
||||
filterMode: -1
|
||||
aniso: -1
|
||||
mipBias: -100
|
||||
wrapU: -1
|
||||
wrapV: -1
|
||||
wrapW: -1
|
||||
nPOTScale: 1
|
||||
lightmap: 0
|
||||
compressionQuality: 50
|
||||
spriteMode: 0
|
||||
spriteExtrude: 1
|
||||
spriteMeshType: 1
|
||||
alignment: 0
|
||||
spritePivot: {x: 0.5, y: 0.5}
|
||||
spritePixelsToUnits: 100
|
||||
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||
spriteGenerateFallbackPhysicsShape: 1
|
||||
alphaUsage: 1
|
||||
alphaIsTransparency: 0
|
||||
spriteTessellationDetail: -1
|
||||
textureType: 0
|
||||
textureShape: 1
|
||||
singleChannelComponent: 0
|
||||
maxTextureSizeSet: 0
|
||||
compressionQualitySet: 0
|
||||
textureFormatSet: 0
|
||||
platformSettings:
|
||||
- serializedVersion: 3
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
spriteSheet:
|
||||
serializedVersion: 2
|
||||
sprites: []
|
||||
outline: []
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID:
|
||||
internalID: 0
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
secondaryTextures: []
|
||||
spritePackingTag:
|
||||
pSDRemoveMatte: 0
|
||||
pSDShowRemoveMatteOption: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
BIN
Assets/Materials/Active/Editor/Resources/RotationSway.png
Normal file
|
After Width: | Height: | Size: 3.1 KiB |
@@ -0,0 +1,91 @@
|
||||
fileFormatVersion: 2
|
||||
guid: a6abd190c779b8b46b7d2394423b2fc9
|
||||
TextureImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 10
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 1
|
||||
sRGBTexture: 1
|
||||
linearTexture: 0
|
||||
fadeOut: 0
|
||||
borderMipMap: 0
|
||||
mipMapsPreserveCoverage: 0
|
||||
alphaTestReferenceValue: 0.5
|
||||
mipMapFadeDistanceStart: 1
|
||||
mipMapFadeDistanceEnd: 3
|
||||
bumpmap:
|
||||
convertToNormalMap: 0
|
||||
externalNormalMap: 0
|
||||
heightScale: 0.25
|
||||
normalMapFilter: 0
|
||||
isReadable: 0
|
||||
streamingMipmaps: 0
|
||||
streamingMipmapsPriority: 0
|
||||
grayScaleToAlpha: 0
|
||||
generateCubemap: 6
|
||||
cubemapConvolution: 0
|
||||
seamlessCubemap: 0
|
||||
textureFormat: 1
|
||||
maxTextureSize: 2048
|
||||
textureSettings:
|
||||
serializedVersion: 2
|
||||
filterMode: -1
|
||||
aniso: -1
|
||||
mipBias: -100
|
||||
wrapU: -1
|
||||
wrapV: -1
|
||||
wrapW: -1
|
||||
nPOTScale: 1
|
||||
lightmap: 0
|
||||
compressionQuality: 50
|
||||
spriteMode: 0
|
||||
spriteExtrude: 1
|
||||
spriteMeshType: 1
|
||||
alignment: 0
|
||||
spritePivot: {x: 0.5, y: 0.5}
|
||||
spritePixelsToUnits: 100
|
||||
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||
spriteGenerateFallbackPhysicsShape: 1
|
||||
alphaUsage: 1
|
||||
alphaIsTransparency: 0
|
||||
spriteTessellationDetail: -1
|
||||
textureType: 0
|
||||
textureShape: 1
|
||||
singleChannelComponent: 0
|
||||
maxTextureSizeSet: 0
|
||||
compressionQualitySet: 0
|
||||
textureFormatSet: 0
|
||||
platformSettings:
|
||||
- serializedVersion: 3
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
spriteSheet:
|
||||
serializedVersion: 2
|
||||
sprites: []
|
||||
outline: []
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID:
|
||||
internalID: 0
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
secondaryTextures: []
|
||||
spritePackingTag:
|
||||
pSDRemoveMatte: 0
|
||||
pSDShowRemoveMatteOption: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
BIN
Assets/Materials/Active/Editor/Resources/Rotator.png
Normal file
|
After Width: | Height: | Size: 2.8 KiB |
90
Assets/Materials/Active/Editor/Resources/Rotator.png.meta
Normal file
@@ -0,0 +1,90 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 31162df0bb632794992d472ee3c6e38e
|
||||
TextureImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 10
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 1
|
||||
sRGBTexture: 1
|
||||
linearTexture: 0
|
||||
fadeOut: 0
|
||||
borderMipMap: 0
|
||||
mipMapsPreserveCoverage: 0
|
||||
alphaTestReferenceValue: 0.5
|
||||
mipMapFadeDistanceStart: 1
|
||||
mipMapFadeDistanceEnd: 3
|
||||
bumpmap:
|
||||
convertToNormalMap: 0
|
||||
externalNormalMap: 0
|
||||
heightScale: 0.25
|
||||
normalMapFilter: 0
|
||||
isReadable: 0
|
||||
streamingMipmaps: 0
|
||||
streamingMipmapsPriority: 0
|
||||
grayScaleToAlpha: 0
|
||||
generateCubemap: 6
|
||||
cubemapConvolution: 0
|
||||
seamlessCubemap: 0
|
||||
textureFormat: 1
|
||||
maxTextureSize: 2048
|
||||
textureSettings:
|
||||
serializedVersion: 2
|
||||
filterMode: -1
|
||||
aniso: -1
|
||||
mipBias: -100
|
||||
wrapU: -1
|
||||
wrapV: -1
|
||||
wrapW: -1
|
||||
nPOTScale: 1
|
||||
lightmap: 0
|
||||
compressionQuality: 50
|
||||
spriteMode: 0
|
||||
spriteExtrude: 1
|
||||
spriteMeshType: 1
|
||||
alignment: 0
|
||||
spritePivot: {x: 0.5, y: 0.5}
|
||||
spritePixelsToUnits: 100
|
||||
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||
spriteGenerateFallbackPhysicsShape: 1
|
||||
alphaUsage: 1
|
||||
alphaIsTransparency: 0
|
||||
spriteTessellationDetail: -1
|
||||
textureType: 0
|
||||
textureShape: 1
|
||||
singleChannelComponent: 0
|
||||
maxTextureSizeSet: 0
|
||||
compressionQualitySet: 0
|
||||
textureFormatSet: 0
|
||||
platformSettings:
|
||||
- serializedVersion: 2
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
spriteSheet:
|
||||
serializedVersion: 2
|
||||
sprites: []
|
||||
outline: []
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID:
|
||||
internalID: 0
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
secondaryTextures: []
|
||||
spritePackingTag:
|
||||
pSDRemoveMatte: 0
|
||||
pSDShowRemoveMatteOption: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
BIN
Assets/Materials/Active/Editor/Resources/RotatorAnalog.png
Normal file
|
After Width: | Height: | Size: 2.3 KiB |
@@ -0,0 +1,90 @@
|
||||
fileFormatVersion: 2
|
||||
guid: ce6135429cf519848932333351b549ef
|
||||
TextureImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 10
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 1
|
||||
sRGBTexture: 1
|
||||
linearTexture: 0
|
||||
fadeOut: 0
|
||||
borderMipMap: 0
|
||||
mipMapsPreserveCoverage: 0
|
||||
alphaTestReferenceValue: 0.5
|
||||
mipMapFadeDistanceStart: 1
|
||||
mipMapFadeDistanceEnd: 3
|
||||
bumpmap:
|
||||
convertToNormalMap: 0
|
||||
externalNormalMap: 0
|
||||
heightScale: 0.25
|
||||
normalMapFilter: 0
|
||||
isReadable: 0
|
||||
streamingMipmaps: 0
|
||||
streamingMipmapsPriority: 0
|
||||
grayScaleToAlpha: 0
|
||||
generateCubemap: 6
|
||||
cubemapConvolution: 0
|
||||
seamlessCubemap: 0
|
||||
textureFormat: 1
|
||||
maxTextureSize: 2048
|
||||
textureSettings:
|
||||
serializedVersion: 2
|
||||
filterMode: -1
|
||||
aniso: -1
|
||||
mipBias: -100
|
||||
wrapU: -1
|
||||
wrapV: -1
|
||||
wrapW: -1
|
||||
nPOTScale: 1
|
||||
lightmap: 0
|
||||
compressionQuality: 50
|
||||
spriteMode: 0
|
||||
spriteExtrude: 1
|
||||
spriteMeshType: 1
|
||||
alignment: 0
|
||||
spritePivot: {x: 0.5, y: 0.5}
|
||||
spritePixelsToUnits: 100
|
||||
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||
spriteGenerateFallbackPhysicsShape: 1
|
||||
alphaUsage: 1
|
||||
alphaIsTransparency: 0
|
||||
spriteTessellationDetail: -1
|
||||
textureType: 0
|
||||
textureShape: 1
|
||||
singleChannelComponent: 0
|
||||
maxTextureSizeSet: 0
|
||||
compressionQualitySet: 0
|
||||
textureFormatSet: 0
|
||||
platformSettings:
|
||||
- serializedVersion: 2
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
spriteSheet:
|
||||
serializedVersion: 2
|
||||
sprites: []
|
||||
outline: []
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID:
|
||||
internalID: 0
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
secondaryTextures: []
|
||||
spritePackingTag:
|
||||
pSDRemoveMatte: 0
|
||||
pSDShowRemoveMatteOption: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
BIN
Assets/Materials/Active/Editor/Resources/SelfInput.png
Normal file
|
After Width: | Height: | Size: 2.5 KiB |
90
Assets/Materials/Active/Editor/Resources/SelfInput.png.meta
Normal file
@@ -0,0 +1,90 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 806c00abbc1538a4797e013bcf923120
|
||||
TextureImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 10
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 1
|
||||
sRGBTexture: 1
|
||||
linearTexture: 0
|
||||
fadeOut: 0
|
||||
borderMipMap: 0
|
||||
mipMapsPreserveCoverage: 0
|
||||
alphaTestReferenceValue: 0.5
|
||||
mipMapFadeDistanceStart: 1
|
||||
mipMapFadeDistanceEnd: 3
|
||||
bumpmap:
|
||||
convertToNormalMap: 0
|
||||
externalNormalMap: 0
|
||||
heightScale: 0.25
|
||||
normalMapFilter: 0
|
||||
isReadable: 0
|
||||
streamingMipmaps: 0
|
||||
streamingMipmapsPriority: 0
|
||||
grayScaleToAlpha: 0
|
||||
generateCubemap: 6
|
||||
cubemapConvolution: 0
|
||||
seamlessCubemap: 0
|
||||
textureFormat: 1
|
||||
maxTextureSize: 2048
|
||||
textureSettings:
|
||||
serializedVersion: 2
|
||||
filterMode: -1
|
||||
aniso: -1
|
||||
mipBias: -100
|
||||
wrapU: -1
|
||||
wrapV: -1
|
||||
wrapW: -1
|
||||
nPOTScale: 1
|
||||
lightmap: 0
|
||||
compressionQuality: 50
|
||||
spriteMode: 0
|
||||
spriteExtrude: 1
|
||||
spriteMeshType: 1
|
||||
alignment: 0
|
||||
spritePivot: {x: 0.5, y: 0.5}
|
||||
spritePixelsToUnits: 100
|
||||
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||
spriteGenerateFallbackPhysicsShape: 1
|
||||
alphaUsage: 1
|
||||
alphaIsTransparency: 0
|
||||
spriteTessellationDetail: -1
|
||||
textureType: 0
|
||||
textureShape: 1
|
||||
singleChannelComponent: 0
|
||||
maxTextureSizeSet: 0
|
||||
compressionQualitySet: 0
|
||||
textureFormatSet: 0
|
||||
platformSettings:
|
||||
- serializedVersion: 2
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
spriteSheet:
|
||||
serializedVersion: 2
|
||||
sprites: []
|
||||
outline: []
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID:
|
||||
internalID: 0
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
secondaryTextures: []
|
||||
spritePackingTag:
|
||||
pSDRemoveMatte: 0
|
||||
pSDShowRemoveMatteOption: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
BIN
Assets/Materials/Active/Editor/Resources/Shortcut.png
Normal file
|
After Width: | Height: | Size: 2.1 KiB |
90
Assets/Materials/Active/Editor/Resources/Shortcut.png.meta
Normal file
@@ -0,0 +1,90 @@
|
||||
fileFormatVersion: 2
|
||||
guid: a17acd4f3550d084a99467628851057a
|
||||
TextureImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 10
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 1
|
||||
sRGBTexture: 1
|
||||
linearTexture: 0
|
||||
fadeOut: 0
|
||||
borderMipMap: 0
|
||||
mipMapsPreserveCoverage: 0
|
||||
alphaTestReferenceValue: 0.5
|
||||
mipMapFadeDistanceStart: 1
|
||||
mipMapFadeDistanceEnd: 3
|
||||
bumpmap:
|
||||
convertToNormalMap: 0
|
||||
externalNormalMap: 0
|
||||
heightScale: 0.25
|
||||
normalMapFilter: 0
|
||||
isReadable: 0
|
||||
streamingMipmaps: 0
|
||||
streamingMipmapsPriority: 0
|
||||
grayScaleToAlpha: 0
|
||||
generateCubemap: 6
|
||||
cubemapConvolution: 0
|
||||
seamlessCubemap: 0
|
||||
textureFormat: 1
|
||||
maxTextureSize: 2048
|
||||
textureSettings:
|
||||
serializedVersion: 2
|
||||
filterMode: -1
|
||||
aniso: -1
|
||||
mipBias: -100
|
||||
wrapU: -1
|
||||
wrapV: -1
|
||||
wrapW: -1
|
||||
nPOTScale: 1
|
||||
lightmap: 0
|
||||
compressionQuality: 50
|
||||
spriteMode: 0
|
||||
spriteExtrude: 1
|
||||
spriteMeshType: 1
|
||||
alignment: 0
|
||||
spritePivot: {x: 0.5, y: 0.5}
|
||||
spritePixelsToUnits: 100
|
||||
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||
spriteGenerateFallbackPhysicsShape: 1
|
||||
alphaUsage: 1
|
||||
alphaIsTransparency: 0
|
||||
spriteTessellationDetail: -1
|
||||
textureType: 0
|
||||
textureShape: 1
|
||||
singleChannelComponent: 0
|
||||
maxTextureSizeSet: 0
|
||||
compressionQualitySet: 0
|
||||
textureFormatSet: 0
|
||||
platformSettings:
|
||||
- serializedVersion: 2
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
spriteSheet:
|
||||
serializedVersion: 2
|
||||
sprites: []
|
||||
outline: []
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID:
|
||||
internalID: 0
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
secondaryTextures: []
|
||||
spritePackingTag:
|
||||
pSDRemoveMatte: 0
|
||||
pSDShowRemoveMatteOption: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
BIN
Assets/Materials/Active/Editor/Resources/Trigger.png
Normal file
|
After Width: | Height: | Size: 2.0 KiB |
90
Assets/Materials/Active/Editor/Resources/Trigger.png.meta
Normal file
@@ -0,0 +1,90 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 0c053f5d1137cf44a896e49da86b5ab2
|
||||
TextureImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 10
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 1
|
||||
sRGBTexture: 1
|
||||
linearTexture: 0
|
||||
fadeOut: 0
|
||||
borderMipMap: 0
|
||||
mipMapsPreserveCoverage: 0
|
||||
alphaTestReferenceValue: 0.5
|
||||
mipMapFadeDistanceStart: 1
|
||||
mipMapFadeDistanceEnd: 3
|
||||
bumpmap:
|
||||
convertToNormalMap: 0
|
||||
externalNormalMap: 0
|
||||
heightScale: 0.25
|
||||
normalMapFilter: 0
|
||||
isReadable: 0
|
||||
streamingMipmaps: 0
|
||||
streamingMipmapsPriority: 0
|
||||
grayScaleToAlpha: 0
|
||||
generateCubemap: 6
|
||||
cubemapConvolution: 0
|
||||
seamlessCubemap: 0
|
||||
textureFormat: 1
|
||||
maxTextureSize: 2048
|
||||
textureSettings:
|
||||
serializedVersion: 2
|
||||
filterMode: -1
|
||||
aniso: -1
|
||||
mipBias: -100
|
||||
wrapU: -1
|
||||
wrapV: -1
|
||||
wrapW: -1
|
||||
nPOTScale: 1
|
||||
lightmap: 0
|
||||
compressionQuality: 50
|
||||
spriteMode: 0
|
||||
spriteExtrude: 1
|
||||
spriteMeshType: 1
|
||||
alignment: 0
|
||||
spritePivot: {x: 0.5, y: 0.5}
|
||||
spritePixelsToUnits: 100
|
||||
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||
spriteGenerateFallbackPhysicsShape: 1
|
||||
alphaUsage: 1
|
||||
alphaIsTransparency: 0
|
||||
spriteTessellationDetail: -1
|
||||
textureType: 0
|
||||
textureShape: 1
|
||||
singleChannelComponent: 0
|
||||
maxTextureSizeSet: 0
|
||||
compressionQualitySet: 0
|
||||
textureFormatSet: 0
|
||||
platformSettings:
|
||||
- serializedVersion: 2
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
spriteSheet:
|
||||
serializedVersion: 2
|
||||
sprites: []
|
||||
outline: []
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID:
|
||||
internalID: 0
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
secondaryTextures: []
|
||||
spritePackingTag:
|
||||
pSDRemoveMatte: 0
|
||||
pSDShowRemoveMatteOption: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
BIN
Assets/Materials/Active/Editor/Resources/Txt.png
Normal file
|
After Width: | Height: | Size: 1.7 KiB |
91
Assets/Materials/Active/Editor/Resources/Txt.png.meta
Normal file
@@ -0,0 +1,91 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 617c4a74bf759404799f98f210acd1e0
|
||||
TextureImporter:
|
||||
internalIDToNameTable: []
|
||||
externalObjects: {}
|
||||
serializedVersion: 10
|
||||
mipmaps:
|
||||
mipMapMode: 0
|
||||
enableMipMap: 1
|
||||
sRGBTexture: 1
|
||||
linearTexture: 0
|
||||
fadeOut: 0
|
||||
borderMipMap: 0
|
||||
mipMapsPreserveCoverage: 0
|
||||
alphaTestReferenceValue: 0.5
|
||||
mipMapFadeDistanceStart: 1
|
||||
mipMapFadeDistanceEnd: 3
|
||||
bumpmap:
|
||||
convertToNormalMap: 0
|
||||
externalNormalMap: 0
|
||||
heightScale: 0.25
|
||||
normalMapFilter: 0
|
||||
isReadable: 0
|
||||
streamingMipmaps: 0
|
||||
streamingMipmapsPriority: 0
|
||||
grayScaleToAlpha: 0
|
||||
generateCubemap: 6
|
||||
cubemapConvolution: 0
|
||||
seamlessCubemap: 0
|
||||
textureFormat: 1
|
||||
maxTextureSize: 2048
|
||||
textureSettings:
|
||||
serializedVersion: 2
|
||||
filterMode: -1
|
||||
aniso: -1
|
||||
mipBias: -100
|
||||
wrapU: -1
|
||||
wrapV: -1
|
||||
wrapW: -1
|
||||
nPOTScale: 1
|
||||
lightmap: 0
|
||||
compressionQuality: 50
|
||||
spriteMode: 0
|
||||
spriteExtrude: 1
|
||||
spriteMeshType: 1
|
||||
alignment: 0
|
||||
spritePivot: {x: 0.5, y: 0.5}
|
||||
spritePixelsToUnits: 100
|
||||
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
|
||||
spriteGenerateFallbackPhysicsShape: 1
|
||||
alphaUsage: 1
|
||||
alphaIsTransparency: 0
|
||||
spriteTessellationDetail: -1
|
||||
textureType: 0
|
||||
textureShape: 1
|
||||
singleChannelComponent: 0
|
||||
maxTextureSizeSet: 0
|
||||
compressionQualitySet: 0
|
||||
textureFormatSet: 0
|
||||
platformSettings:
|
||||
- serializedVersion: 3
|
||||
buildTarget: DefaultTexturePlatform
|
||||
maxTextureSize: 2048
|
||||
resizeAlgorithm: 0
|
||||
textureFormat: -1
|
||||
textureCompression: 1
|
||||
compressionQuality: 50
|
||||
crunchedCompression: 0
|
||||
allowsAlphaSplitting: 0
|
||||
overridden: 0
|
||||
androidETC2FallbackOverride: 0
|
||||
forceMaximumCompressionQuality_BC6H_BC7: 0
|
||||
spriteSheet:
|
||||
serializedVersion: 2
|
||||
sprites: []
|
||||
outline: []
|
||||
physicsShape: []
|
||||
bones: []
|
||||
spriteID:
|
||||
internalID: 0
|
||||
vertices: []
|
||||
indices:
|
||||
edges: []
|
||||
weights: []
|
||||
secondaryTextures: []
|
||||
spritePackingTag:
|
||||
pSDRemoveMatte: 0
|
||||
pSDShowRemoveMatteOption: 0
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
8
Assets/Materials/Active/Scripts.meta
Normal file
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: af892cc1044610e4c9eede934904114e
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
8
Assets/Materials/Active/Scripts/Base.meta
Normal file
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 8f2a51f37ac1e264e8f5773c5db06073
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
99
Assets/Materials/Active/Scripts/Base/KineractiveInput.cs
Normal file
@@ -0,0 +1,99 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using UnityEngine.Events;
|
||||
|
||||
namespace Kineractive
|
||||
{
|
||||
public abstract class KineractiveInput : MonoBehaviour
|
||||
{
|
||||
|
||||
[SerializeField] protected Handside handSide;
|
||||
[SerializeField] protected Transform position;
|
||||
[SerializeField] protected float moveSpeed = 15f;
|
||||
[SerializeField] protected float rotateSpeed = 15f;
|
||||
|
||||
|
||||
[SerializeField] protected bool repeatingInput = false;
|
||||
|
||||
[SerializeField] protected Transform returnPosition = null;
|
||||
|
||||
[SerializeField] protected string inputAnimString = "blank";
|
||||
[SerializeField] protected UnityEvent OnInput;
|
||||
|
||||
|
||||
[SerializeField] protected string inputEndAnimString = "blank";
|
||||
[SerializeField] protected UnityEvent OnInputEnd;
|
||||
|
||||
|
||||
|
||||
[SerializeField] protected bool BypassInput = false;
|
||||
|
||||
protected InputHandler interactiveTrigger;
|
||||
|
||||
|
||||
protected bool wasPressedDown; // make sure that UpAction method is not triggered on this button unless, the DownAction method was first
|
||||
|
||||
public Transform ActivatePosition
|
||||
{
|
||||
get { return position; }
|
||||
}
|
||||
|
||||
|
||||
public virtual void CheckForInput()
|
||||
{
|
||||
if (BypassInput)
|
||||
return;
|
||||
}
|
||||
|
||||
public virtual void Initialize()
|
||||
{ }
|
||||
|
||||
|
||||
public virtual void Conclude()
|
||||
{
|
||||
wasPressedDown = false;
|
||||
|
||||
if (KineractiveManager.Instance != null)
|
||||
{
|
||||
if (KineractiveManager.Instance.HandAnimator != null) //prevents error on game stop/exit in editor
|
||||
{
|
||||
foreach (AnimatorControllerParameter parameter in KineractiveManager.Instance.HandAnimator.parameters)
|
||||
{
|
||||
if (parameter.type == AnimatorControllerParameterType.Bool)
|
||||
{
|
||||
KineractiveManager.Instance.HandAnimator.SetBool(parameter.name.ToString(), false); //cancel previous animation
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
protected virtual void InputActivated()
|
||||
{
|
||||
if (interactiveTrigger.CrosshairScale != 0)
|
||||
KineractiveManager.Instance.SetCrosshairScale(interactiveTrigger.CrosshairScale);
|
||||
}
|
||||
|
||||
protected virtual void InputDeactivated()
|
||||
{
|
||||
if (interactiveTrigger.CrosshairScale != 0)
|
||||
KineractiveManager.Instance.SetCrosshairScale(KineractiveManager.Instance.DefaultCrosshairScale);
|
||||
}
|
||||
|
||||
public virtual void SetInteractiveTrigger(InputHandler interactiveTrigger)
|
||||
{
|
||||
this.interactiveTrigger = interactiveTrigger;
|
||||
}
|
||||
|
||||
public virtual void SetBypass(bool bypassModeEnabled)
|
||||
{
|
||||
BypassInput = bypassModeEnabled;
|
||||
}
|
||||
|
||||
public virtual void ToggleBypass()
|
||||
{
|
||||
BypassInput = !BypassInput;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 393bc3363777bdf46b9b145bbf0c2943
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||