Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions Packages/SOVariables/Editor/Vector4VariableEditor.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
using UnityEditor;
using UnityEngine;

namespace RaCoding.Variables
{
[CustomEditor(typeof(Vector4MutableVariable), editorForChildClasses: true)]
public class Vector4VariableEditor : VariableEditor<Vector4>
{
protected override void AssignResetValue()
{
resetValue.vector4Value = value.vector4Value;
}
}
}
11 changes: 11 additions & 0 deletions Packages/SOVariables/Editor/Vector4VariableEditor.cs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
using UnityEngine;

namespace RaCoding.Variables
{
[CreateAssetMenu(fileName = "Vector4ImmutableVariable", menuName = "RaCoding/Variables/Immutable/Create new immutable vector4 variable")]
public class Vector4ImmutableVariable : ImmutableVariable<Vector4> { }
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
using UnityEngine;

namespace RaCoding.Variables
{
[CreateAssetMenu(fileName = "Vector4MutableVariable", menuName = "RaCoding/Variables/Mutable/Create new mutable vector4 variable")]
public class Vector4MutableVariable : MutableVariable<Vector4> { }
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ Install with the Unity Package Manager: https://github.com/Ra-Coding/unity-scrip
- Vector2Int
- Vector3
- Vector3Int
- Vector4
- GameObject
- Transform
- Color