diff --git a/Editor/Constraints/Icons.meta b/Editor/Constraints/Icons.meta new file mode 100644 index 0000000..470d9d5 --- /dev/null +++ b/Editor/Constraints/Icons.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: f5f43322334040eda82a02238038c637 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Editor/Constraints/Icons/LerpConstraintIcon.png b/Editor/Constraints/Icons/LerpConstraintIcon.png new file mode 100644 index 0000000..07ffebf Binary files /dev/null and b/Editor/Constraints/Icons/LerpConstraintIcon.png differ diff --git a/Editor/Constraints/Icons/LerpConstraintIcon.png.meta b/Editor/Constraints/Icons/LerpConstraintIcon.png.meta new file mode 100644 index 0000000..effa8d3 --- /dev/null +++ b/Editor/Constraints/Icons/LerpConstraintIcon.png.meta @@ -0,0 +1,89 @@ +fileFormatVersion: 2 +guid: 8f25ac2c42604ab79638fbe063e38a1e +TextureImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 13 + mipmaps: + mipMapMode: 0 + enableMipMap: 0 + 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: 256 + textureSettings: + serializedVersion: 2 + filterMode: 1 + aniso: 1 + mipBias: 0 + wrapU: 1 + wrapV: 1 + wrapW: 1 + nPOTScale: 0 + 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: 1 + 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: [] + spriteSheet: + serializedVersion: 2 + sprites: [] + outline: [] + customData: + physicsShape: [] + bones: [] + spriteID: + internalID: 0 + vertices: [] + indices: + edges: [] + weights: [] + secondaryTextures: [] + nameFileIdTable: {} + mipmapLimitGroupName: + pSDRemoveMatte: 0 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Editor/Constraints/RoughConstraintEditor.cs b/Editor/Constraints/LerpConstraintEditor.cs similarity index 86% rename from Editor/Constraints/RoughConstraintEditor.cs rename to Editor/Constraints/LerpConstraintEditor.cs index 64dc877..78c254e 100644 --- a/Editor/Constraints/RoughConstraintEditor.cs +++ b/Editor/Constraints/LerpConstraintEditor.cs @@ -1,13 +1,13 @@ -using Streamingle.Utils.RoughConstraints; +using Streamingle.Utils.LerpConstraints; using UnityEditor; using UnityEditorInternal; using UnityEngine; -namespace Streamingle.Utils.RoughConstraintsEditor +namespace Streamingle.Utils.LerpConstraintsEditor { - [CustomEditor(typeof(RoughConstraintBase), true)] + [CustomEditor(typeof(LerpConstraintBase), true)] [CanEditMultipleObjects] - public sealed class RoughConstraintEditor : UnityEditor.Editor + public sealed class LerpConstraintEditor : UnityEditor.Editor { private SerializedProperty constraintActive; private SerializedProperty locked; @@ -18,7 +18,7 @@ namespace Streamingle.Utils.RoughConstraintsEditor private SerializedProperty useUnscaledTime; private SerializedProperty snapOnEnable; private ReorderableList sourceList; - private bool roughFollowFoldout = true; + private bool lerpFollowFoldout = true; private bool settingsFoldout = true; private void OnEnable() @@ -62,7 +62,7 @@ namespace Streamingle.Utils.RoughConstraintsEditor GUILayout.FlexibleSpace(); if (GUILayout.Button("Activate", EditorStyles.miniButton, GUILayout.Width(72f))) { - ApplyAction("Activate Rough Constraint", ActivateConstraint); + ApplyAction("Activate Lerp Constraint", ActivateConstraint); } if (GUILayout.Button("Zero", EditorStyles.miniButton, GUILayout.Width(56f))) @@ -84,8 +84,8 @@ namespace Streamingle.Utils.RoughConstraintsEditor serializedObject.ApplyModifiedProperties(); foreach (var selectedTarget in targets) { - var constraint = (RoughConstraintBase)selectedTarget; - Undo.RecordObject(constraint, "Change Rough Constraint Lock"); + var constraint = (LerpConstraintBase)selectedTarget; + Undo.RecordObject(constraint, "Change Lerp Constraint Lock"); constraint.SetLocked(newValue); EditorUtility.SetDirty(constraint); } @@ -102,8 +102,8 @@ namespace Streamingle.Utils.RoughConstraintsEditor private void DrawTypeSettings() { - roughFollowFoldout = EditorGUILayout.Foldout(roughFollowFoldout, "Rough Follow", true); - if (roughFollowFoldout) + lerpFollowFoldout = EditorGUILayout.Foldout(lerpFollowFoldout, "Lerp Follow", true); + if (lerpFollowFoldout) { using (new EditorGUI.IndentLevelScope()) { @@ -128,27 +128,27 @@ namespace Streamingle.Utils.RoughConstraintsEditor private void DrawTypeProperties() { - if (target is RoughPositionConstraint) + if (target is LerpPositionConstraint) { DrawProperties("constrainedAxis", "positionOffset", "offsetInSourceSpace"); } - else if (target is RoughRotationConstraint) + else if (target is LerpRotationConstraint) { DrawProperties("constrainedAxis", "rotationOffset"); } - else if (target is RoughScaleConstraint) + else if (target is LerpScaleConstraint) { DrawProperties("constrainedAxis", "scaleOffset"); } - else if (target is RoughParentConstraint) + else if (target is LerpParentConstraint) { DrawProperties("constrainedPositionAxis", "positionOffset", "positionOffsetInSourceSpace", "constrainedRotationAxis", "rotationOffset"); } - else if (target is RoughAimConstraint) + else if (target is LerpAimConstraint) { DrawProperties("aimAxis", "upAxis", "worldUpVector", "rotationOffset"); } - else if (target is RoughLookAtConstraint) + else if (target is LerpLookAtConstraint) { DrawProperties("forwardAxis", "worldUpVector", "targetPositionOffset", "rotationOffset"); } @@ -166,22 +166,22 @@ namespace Streamingle.Utils.RoughConstraintsEditor } } - private void ApplyAction(string undoName, System.Action action) + private void ApplyAction(string undoName, System.Action action) { serializedObject.ApplyModifiedProperties(); foreach (var selectedTarget in targets) { - var constraint = (RoughConstraintBase)selectedTarget; + var constraint = (LerpConstraintBase)selectedTarget; Undo.RecordObject(constraint.transform, undoName); action(constraint); EditorUtility.SetDirty(constraint.transform); } } - private void ActivateConstraint(RoughConstraintBase constraint) + private void ActivateConstraint(LerpConstraintBase constraint) { - Undo.RecordObject(constraint, "Activate Rough Constraint"); + Undo.RecordObject(constraint, "Activate Lerp Constraint"); constraint.ActivateConstraint(); EditorUtility.SetDirty(constraint); } @@ -189,7 +189,7 @@ namespace Streamingle.Utils.RoughConstraintsEditor private void ZeroOffsets() { serializedObject.ApplyModifiedProperties(); - Undo.RecordObjects(targets, "Zero Rough Constraint Offsets"); + Undo.RecordObjects(targets, "Zero Lerp Constraint Offsets"); SetVector3IfExists("positionOffset", Vector3.zero); SetVector3IfExists("rotationOffset", Vector3.zero); @@ -261,13 +261,13 @@ namespace Streamingle.Utils.RoughConstraintsEditor private string GetSettingsTitle() { - if (target is RoughLookAtConstraint) + if (target is LerpLookAtConstraint) { return "Look At"; } var name = target.GetType().Name; - name = name.Replace("Rough", string.Empty).Replace("Constraint", string.Empty); + name = name.Replace("Lerp", string.Empty).Replace("Constraint", string.Empty); return ObjectNames.NicifyVariableName(name); } } diff --git a/Editor/Constraints/RoughConstraintEditor.cs.meta b/Editor/Constraints/LerpConstraintEditor.cs.meta similarity index 100% rename from Editor/Constraints/RoughConstraintEditor.cs.meta rename to Editor/Constraints/LerpConstraintEditor.cs.meta diff --git a/Editor/Constraints/LerpConstraintIconInstaller.cs b/Editor/Constraints/LerpConstraintIconInstaller.cs new file mode 100644 index 0000000..6bcf4ae --- /dev/null +++ b/Editor/Constraints/LerpConstraintIconInstaller.cs @@ -0,0 +1,53 @@ +using System; +using System.Linq; +using Streamingle.Utils.LerpConstraints; +using UnityEditor; +using UnityEngine; + +namespace Streamingle.Utils.LerpConstraintsEditor +{ + [InitializeOnLoad] + internal static class LerpConstraintIconInstaller + { + private const string IconName = "LerpConstraintIcon"; + + static LerpConstraintIconInstaller() + { + EditorApplication.delayCall += ApplyIcons; + } + + private static void ApplyIcons() + { + Texture2D icon = AssetDatabase + .FindAssets($"{IconName} t:Texture2D") + .Select(AssetDatabase.GUIDToAssetPath) + .Select(AssetDatabase.LoadAssetAtPath) + .FirstOrDefault(texture => texture != null); + + if (icon == null) + { + return; + } + + Type[] constraintTypes = + { + typeof(LerpAimConstraint), + typeof(LerpLookAtConstraint), + typeof(LerpParentConstraint), + typeof(LerpPositionConstraint), + typeof(LerpRotationConstraint), + typeof(LerpScaleConstraint) + }; + + string[] scriptGuids = AssetDatabase.FindAssets("t:MonoScript", new[] { "Packages/com.streamingle.utilities/Runtime/Constraints" }); + foreach (string scriptGuid in scriptGuids) + { + MonoScript script = AssetDatabase.LoadAssetAtPath(AssetDatabase.GUIDToAssetPath(scriptGuid)); + if (script != null && constraintTypes.Contains(script.GetClass())) + { + EditorGUIUtility.SetIconForObject(script, icon); + } + } + } + } +} diff --git a/Editor/Constraints/LerpConstraintIconInstaller.cs.meta b/Editor/Constraints/LerpConstraintIconInstaller.cs.meta new file mode 100644 index 0000000..0005922 --- /dev/null +++ b/Editor/Constraints/LerpConstraintIconInstaller.cs.meta @@ -0,0 +1,2 @@ +fileFormatVersion: 2 +guid: 97633b0c6f0f4ca0a862c50e6de6f70b diff --git a/Editor/Constraints/Vector3BoolDrawer.cs b/Editor/Constraints/Vector3BoolDrawer.cs index e4b861c..ac9a375 100644 --- a/Editor/Constraints/Vector3BoolDrawer.cs +++ b/Editor/Constraints/Vector3BoolDrawer.cs @@ -1,8 +1,8 @@ -using Streamingle.Utils.RoughConstraints; +using Streamingle.Utils.LerpConstraints; using UnityEditor; using UnityEngine; -namespace Streamingle.Utils.RoughConstraintsEditor +namespace Streamingle.Utils.LerpConstraintsEditor { [CustomPropertyDrawer(typeof(Vector3Bool))] public sealed class Vector3BoolDrawer : UnityEditor.PropertyDrawer diff --git a/Runtime/Constraints/RoughAimConstraint.cs b/Runtime/Constraints/LerpAimConstraint.cs similarity index 82% rename from Runtime/Constraints/RoughAimConstraint.cs rename to Runtime/Constraints/LerpAimConstraint.cs index c38c89a..1de5bd4 100644 --- a/Runtime/Constraints/RoughAimConstraint.cs +++ b/Runtime/Constraints/LerpAimConstraint.cs @@ -1,10 +1,12 @@ using UnityEngine; +using UnityEngine.Scripting.APIUpdating; -namespace Streamingle.Utils.RoughConstraints +namespace Streamingle.Utils.LerpConstraints { + [MovedFrom(true, "Streamingle.Utils.RoughConstraints", "Assembly-CSharp", "RoughAimConstraint")] [ExecuteAlways] - [AddComponentMenu("Streamingle Utilities/Constraints/Rough Aim Constraint")] - public class RoughAimConstraint : RoughConstraintBase + [AddComponentMenu("Streamingle Utilities/Constraints/Lerp Aim Constraint")] + public class LerpAimConstraint : LerpConstraintBase { [Header("Aim")] public Vector3 aimAxis = Vector3.forward; diff --git a/Runtime/Constraints/RoughAimConstraint.cs.meta b/Runtime/Constraints/LerpAimConstraint.cs.meta similarity index 100% rename from Runtime/Constraints/RoughAimConstraint.cs.meta rename to Runtime/Constraints/LerpAimConstraint.cs.meta diff --git a/Runtime/Constraints/RoughConstraintBase.cs b/Runtime/Constraints/LerpConstraintBase.cs similarity index 90% rename from Runtime/Constraints/RoughConstraintBase.cs rename to Runtime/Constraints/LerpConstraintBase.cs index 469e2c7..3d81e51 100644 --- a/Runtime/Constraints/RoughConstraintBase.cs +++ b/Runtime/Constraints/LerpConstraintBase.cs @@ -1,12 +1,13 @@ using System.Collections.Generic; using UnityEngine; +using UnityEngine.Scripting.APIUpdating; #if UNITY_EDITOR using UnityEditor; #endif -namespace Streamingle.Utils.RoughConstraints +namespace Streamingle.Utils.LerpConstraints { - public enum RoughConstraintUpdateMode + public enum LerpConstraintUpdateMode { Update, LateUpdate, @@ -14,8 +15,9 @@ namespace Streamingle.Utils.RoughConstraints Manual } + [MovedFrom(true, "Streamingle.Utils.RoughConstraints", "Assembly-CSharp", "RoughConstraintBase")] [ExecuteAlways] - public abstract class RoughConstraintBase : MonoBehaviour + public abstract class LerpConstraintBase : MonoBehaviour { [Header("Constraint")] public bool constraintActive = true; @@ -24,13 +26,13 @@ namespace Streamingle.Utils.RoughConstraints [Range(0f, 1f)] public float weight = 1f; - public List sources = new List(); + public List sources = new List(); - [Header("Rough Follow")] + [Header("Lerp Follow")] [Min(0f)] public float damping = 12f; - public RoughConstraintUpdateMode updateMode = RoughConstraintUpdateMode.LateUpdate; + public LerpConstraintUpdateMode updateMode = LerpConstraintUpdateMode.LateUpdate; public bool useUnscaledTime; public bool snapOnEnable = true; @@ -47,7 +49,7 @@ namespace Streamingle.Utils.RoughConstraints return 1f / 60f; } - if (updateMode == RoughConstraintUpdateMode.FixedUpdate) + if (updateMode == LerpConstraintUpdateMode.FixedUpdate) { return useUnscaledTime ? Time.fixedUnscaledDeltaTime : Time.fixedDeltaTime; } @@ -94,7 +96,7 @@ namespace Streamingle.Utils.RoughConstraints { if (!Application.isPlaying) { - if (updateMode != RoughConstraintUpdateMode.Manual) + if (updateMode != LerpConstraintUpdateMode.Manual) { Evaluate(); } @@ -102,7 +104,7 @@ namespace Streamingle.Utils.RoughConstraints return; } - if (updateMode == RoughConstraintUpdateMode.Update) + if (updateMode == LerpConstraintUpdateMode.Update) { Evaluate(); } @@ -115,7 +117,7 @@ namespace Streamingle.Utils.RoughConstraints return; } - if (updateMode == RoughConstraintUpdateMode.LateUpdate) + if (updateMode == LerpConstraintUpdateMode.LateUpdate) { Evaluate(); } @@ -128,7 +130,7 @@ namespace Streamingle.Utils.RoughConstraints return; } - if (updateMode == RoughConstraintUpdateMode.FixedUpdate) + if (updateMode == LerpConstraintUpdateMode.FixedUpdate) { Evaluate(); } @@ -165,7 +167,7 @@ namespace Streamingle.Utils.RoughConstraints return; } - if (Application.isPlaying || updateMode == RoughConstraintUpdateMode.Manual) + if (Application.isPlaying || updateMode == LerpConstraintUpdateMode.Manual) { return; } diff --git a/Runtime/Constraints/RoughConstraintBase.cs.meta b/Runtime/Constraints/LerpConstraintBase.cs.meta similarity index 100% rename from Runtime/Constraints/RoughConstraintBase.cs.meta rename to Runtime/Constraints/LerpConstraintBase.cs.meta diff --git a/Runtime/Constraints/RoughConstraintSource.cs b/Runtime/Constraints/LerpConstraintSource.cs similarity index 66% rename from Runtime/Constraints/RoughConstraintSource.cs rename to Runtime/Constraints/LerpConstraintSource.cs index 63efe47..c52c64f 100644 --- a/Runtime/Constraints/RoughConstraintSource.cs +++ b/Runtime/Constraints/LerpConstraintSource.cs @@ -1,10 +1,10 @@ using System; using UnityEngine; -namespace Streamingle.Utils.RoughConstraints +namespace Streamingle.Utils.LerpConstraints { [Serializable] - public struct RoughConstraintSource + public struct LerpConstraintSource { public Transform sourceTransform; diff --git a/Runtime/Constraints/RoughConstraintSource.cs.meta b/Runtime/Constraints/LerpConstraintSource.cs.meta similarity index 100% rename from Runtime/Constraints/RoughConstraintSource.cs.meta rename to Runtime/Constraints/LerpConstraintSource.cs.meta diff --git a/Runtime/Constraints/RoughLookAtConstraint.cs b/Runtime/Constraints/LerpLookAtConstraint.cs similarity index 82% rename from Runtime/Constraints/RoughLookAtConstraint.cs rename to Runtime/Constraints/LerpLookAtConstraint.cs index 73e3a17..4a9baa1 100644 --- a/Runtime/Constraints/RoughLookAtConstraint.cs +++ b/Runtime/Constraints/LerpLookAtConstraint.cs @@ -1,10 +1,12 @@ using UnityEngine; +using UnityEngine.Scripting.APIUpdating; -namespace Streamingle.Utils.RoughConstraints +namespace Streamingle.Utils.LerpConstraints { + [MovedFrom(true, "Streamingle.Utils.RoughConstraints", "Assembly-CSharp", "RoughLookAtConstraint")] [ExecuteAlways] - [AddComponentMenu("Streamingle Utilities/Constraints/Rough Look At Constraint")] - public class RoughLookAtConstraint : RoughConstraintBase + [AddComponentMenu("Streamingle Utilities/Constraints/Lerp Look At Constraint")] + public class LerpLookAtConstraint : LerpConstraintBase { [Header("Look At")] public Vector3 forwardAxis = Vector3.forward; diff --git a/Runtime/Constraints/RoughLookAtConstraint.cs.meta b/Runtime/Constraints/LerpLookAtConstraint.cs.meta similarity index 100% rename from Runtime/Constraints/RoughLookAtConstraint.cs.meta rename to Runtime/Constraints/LerpLookAtConstraint.cs.meta diff --git a/Runtime/Constraints/RoughParentConstraint.cs b/Runtime/Constraints/LerpParentConstraint.cs similarity index 87% rename from Runtime/Constraints/RoughParentConstraint.cs rename to Runtime/Constraints/LerpParentConstraint.cs index 71e504f..d2b3605 100644 --- a/Runtime/Constraints/RoughParentConstraint.cs +++ b/Runtime/Constraints/LerpParentConstraint.cs @@ -1,10 +1,12 @@ using UnityEngine; +using UnityEngine.Scripting.APIUpdating; -namespace Streamingle.Utils.RoughConstraints +namespace Streamingle.Utils.LerpConstraints { + [MovedFrom(true, "Streamingle.Utils.RoughConstraints", "Assembly-CSharp", "RoughParentConstraint")] [ExecuteAlways] - [AddComponentMenu("Streamingle Utilities/Constraints/Rough Parent Constraint")] - public class RoughParentConstraint : RoughConstraintBase + [AddComponentMenu("Streamingle Utilities/Constraints/Lerp Parent Constraint")] + public class LerpParentConstraint : LerpConstraintBase { [Header("Position")] public Vector3Bool constrainedPositionAxis = Vector3Bool.All; diff --git a/Runtime/Constraints/RoughParentConstraint.cs.meta b/Runtime/Constraints/LerpParentConstraint.cs.meta similarity index 100% rename from Runtime/Constraints/RoughParentConstraint.cs.meta rename to Runtime/Constraints/LerpParentConstraint.cs.meta diff --git a/Runtime/Constraints/RoughPositionConstraint.cs b/Runtime/Constraints/LerpPositionConstraint.cs similarity index 81% rename from Runtime/Constraints/RoughPositionConstraint.cs rename to Runtime/Constraints/LerpPositionConstraint.cs index 9aca6c9..dad4502 100644 --- a/Runtime/Constraints/RoughPositionConstraint.cs +++ b/Runtime/Constraints/LerpPositionConstraint.cs @@ -1,10 +1,12 @@ using UnityEngine; +using UnityEngine.Scripting.APIUpdating; -namespace Streamingle.Utils.RoughConstraints +namespace Streamingle.Utils.LerpConstraints { + [MovedFrom(true, "Streamingle.Utils.RoughConstraints", "Assembly-CSharp", "RoughPositionConstraint")] [ExecuteAlways] - [AddComponentMenu("Streamingle Utilities/Constraints/Rough Position Constraint")] - public class RoughPositionConstraint : RoughConstraintBase + [AddComponentMenu("Streamingle Utilities/Constraints/Lerp Position Constraint")] + public class LerpPositionConstraint : LerpConstraintBase { [Header("Position")] public Vector3Bool constrainedAxis = Vector3Bool.All; diff --git a/Runtime/Constraints/RoughPositionConstraint.cs.meta b/Runtime/Constraints/LerpPositionConstraint.cs.meta similarity index 100% rename from Runtime/Constraints/RoughPositionConstraint.cs.meta rename to Runtime/Constraints/LerpPositionConstraint.cs.meta diff --git a/Runtime/Constraints/RoughRotationConstraint.cs b/Runtime/Constraints/LerpRotationConstraint.cs similarity index 75% rename from Runtime/Constraints/RoughRotationConstraint.cs rename to Runtime/Constraints/LerpRotationConstraint.cs index 76329af..a0564c0 100644 --- a/Runtime/Constraints/RoughRotationConstraint.cs +++ b/Runtime/Constraints/LerpRotationConstraint.cs @@ -1,10 +1,12 @@ using UnityEngine; +using UnityEngine.Scripting.APIUpdating; -namespace Streamingle.Utils.RoughConstraints +namespace Streamingle.Utils.LerpConstraints { + [MovedFrom(true, "Streamingle.Utils.RoughConstraints", "Assembly-CSharp", "RoughRotationConstraint")] [ExecuteAlways] - [AddComponentMenu("Streamingle Utilities/Constraints/Rough Rotation Constraint")] - public class RoughRotationConstraint : RoughConstraintBase + [AddComponentMenu("Streamingle Utilities/Constraints/Lerp Rotation Constraint")] + public class LerpRotationConstraint : LerpConstraintBase { [Header("Rotation")] public Vector3Bool constrainedAxis = Vector3Bool.All; diff --git a/Runtime/Constraints/RoughRotationConstraint.cs.meta b/Runtime/Constraints/LerpRotationConstraint.cs.meta similarity index 100% rename from Runtime/Constraints/RoughRotationConstraint.cs.meta rename to Runtime/Constraints/LerpRotationConstraint.cs.meta diff --git a/Runtime/Constraints/RoughScaleConstraint.cs b/Runtime/Constraints/LerpScaleConstraint.cs similarity index 72% rename from Runtime/Constraints/RoughScaleConstraint.cs rename to Runtime/Constraints/LerpScaleConstraint.cs index 3ef2ebf..bb6c296 100644 --- a/Runtime/Constraints/RoughScaleConstraint.cs +++ b/Runtime/Constraints/LerpScaleConstraint.cs @@ -1,10 +1,12 @@ using UnityEngine; +using UnityEngine.Scripting.APIUpdating; -namespace Streamingle.Utils.RoughConstraints +namespace Streamingle.Utils.LerpConstraints { + [MovedFrom(true, "Streamingle.Utils.RoughConstraints", "Assembly-CSharp", "RoughScaleConstraint")] [ExecuteAlways] - [AddComponentMenu("Streamingle Utilities/Constraints/Rough Scale Constraint")] - public class RoughScaleConstraint : RoughConstraintBase + [AddComponentMenu("Streamingle Utilities/Constraints/Lerp Scale Constraint")] + public class LerpScaleConstraint : LerpConstraintBase { [Header("Scale")] public Vector3Bool constrainedAxis = Vector3Bool.All; diff --git a/Runtime/Constraints/RoughScaleConstraint.cs.meta b/Runtime/Constraints/LerpScaleConstraint.cs.meta similarity index 100% rename from Runtime/Constraints/RoughScaleConstraint.cs.meta rename to Runtime/Constraints/LerpScaleConstraint.cs.meta diff --git a/Runtime/Constraints/Vector3Bool.cs b/Runtime/Constraints/Vector3Bool.cs index 766b2e0..bb12e79 100644 --- a/Runtime/Constraints/Vector3Bool.cs +++ b/Runtime/Constraints/Vector3Bool.cs @@ -1,6 +1,6 @@ using System; -namespace Streamingle.Utils.RoughConstraints +namespace Streamingle.Utils.LerpConstraints { [Serializable] public struct Vector3Bool diff --git a/package.json b/package.json index d317104..e63e5f9 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "com.streamingle.utilities", "displayName": "Streamingle Utilities", - "version": "0.1.7", + "version": "0.1.21", "unity": "6000.0", "description": "Reusable Streamingle runtime components and Unity editor utilities.", "keywords": [