Rename: Rough constraints to Lerp constraints
This commit is contained in:
parent
150ef2d30c
commit
a24acd2901
8
Editor/Constraints/Icons.meta
Normal file
8
Editor/Constraints/Icons.meta
Normal file
@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: f5f43322334040eda82a02238038c637
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
BIN
Editor/Constraints/Icons/LerpConstraintIcon.png
Normal file
BIN
Editor/Constraints/Icons/LerpConstraintIcon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 202 KiB |
89
Editor/Constraints/Icons/LerpConstraintIcon.png.meta
Normal file
89
Editor/Constraints/Icons/LerpConstraintIcon.png.meta
Normal file
@ -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:
|
||||
@ -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<RoughConstraintBase> action)
|
||||
private void ApplyAction(string undoName, System.Action<LerpConstraintBase> 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);
|
||||
}
|
||||
}
|
||||
53
Editor/Constraints/LerpConstraintIconInstaller.cs
Normal file
53
Editor/Constraints/LerpConstraintIconInstaller.cs
Normal file
@ -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<Texture2D>)
|
||||
.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<MonoScript>(AssetDatabase.GUIDToAssetPath(scriptGuid));
|
||||
if (script != null && constraintTypes.Contains(script.GetClass()))
|
||||
{
|
||||
EditorGUIUtility.SetIconForObject(script, icon);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
2
Editor/Constraints/LerpConstraintIconInstaller.cs.meta
Normal file
2
Editor/Constraints/LerpConstraintIconInstaller.cs.meta
Normal file
@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 97633b0c6f0f4ca0a862c50e6de6f70b
|
||||
@ -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
|
||||
|
||||
@ -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;
|
||||
@ -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<RoughConstraintSource> sources = new List<RoughConstraintSource>();
|
||||
public List<LerpConstraintSource> sources = new List<LerpConstraintSource>();
|
||||
|
||||
[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;
|
||||
}
|
||||
@ -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;
|
||||
|
||||
@ -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;
|
||||
@ -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;
|
||||
@ -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;
|
||||
@ -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;
|
||||
@ -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;
|
||||
@ -1,6 +1,6 @@
|
||||
using System;
|
||||
|
||||
namespace Streamingle.Utils.RoughConstraints
|
||||
namespace Streamingle.Utils.LerpConstraints
|
||||
{
|
||||
[Serializable]
|
||||
public struct Vector3Bool
|
||||
|
||||
@ -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": [
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user