From bf68f39b98d5afa4dcfd39c6bde69a7c826de38e Mon Sep 17 00:00:00 2001 From: Jeff Campbell Date: Thu, 19 Dec 2019 08:55:32 +0100 Subject: [PATCH] Created variable, reference for LayerMask * Created LayerMaskVariable and LayerMaskReference. This type is often used to filter objects for collision detection to specific layers specified in the Flag value. --- .../SO Architecture/References/LayerMaskReference.cs | 11 +++++++++++ .../References/LayerMaskReference.cs.meta | 11 +++++++++++ .../SO Architecture/Variables/LayerMaskVariable.cs | 12 ++++++++++++ .../Variables/LayerMaskVariable.cs.meta | 11 +++++++++++ 4 files changed, 45 insertions(+) create mode 100644 Assets/SO Architecture/References/LayerMaskReference.cs create mode 100644 Assets/SO Architecture/References/LayerMaskReference.cs.meta create mode 100644 Assets/SO Architecture/Variables/LayerMaskVariable.cs create mode 100644 Assets/SO Architecture/Variables/LayerMaskVariable.cs.meta diff --git a/Assets/SO Architecture/References/LayerMaskReference.cs b/Assets/SO Architecture/References/LayerMaskReference.cs new file mode 100644 index 00000000..3118502e --- /dev/null +++ b/Assets/SO Architecture/References/LayerMaskReference.cs @@ -0,0 +1,11 @@ +using UnityEngine; + +namespace ScriptableObjectArchitecture +{ + [System.Serializable] + public sealed class LayerMaskReference : BaseReference + { + public LayerMaskReference() : base() { } + public LayerMaskReference(LayerMask value) : base(value) { } + } +} \ No newline at end of file diff --git a/Assets/SO Architecture/References/LayerMaskReference.cs.meta b/Assets/SO Architecture/References/LayerMaskReference.cs.meta new file mode 100644 index 00000000..98b6c236 --- /dev/null +++ b/Assets/SO Architecture/References/LayerMaskReference.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: e390a6289e5530c4d8f4d38ccdbfcc5a +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/SO Architecture/Variables/LayerMaskVariable.cs b/Assets/SO Architecture/Variables/LayerMaskVariable.cs new file mode 100644 index 00000000..351834c6 --- /dev/null +++ b/Assets/SO Architecture/Variables/LayerMaskVariable.cs @@ -0,0 +1,12 @@ +using UnityEngine; + +namespace ScriptableObjectArchitecture +{ + [CreateAssetMenu( + fileName = "LayerMaskVariable.asset", + menuName = SOArchitecture_Utility.ADVANCED_VARIABLE_SUBMENU + "LayerMask", + order = 120)] + public class LayerMaskVariable : BaseVariable + { + } +} diff --git a/Assets/SO Architecture/Variables/LayerMaskVariable.cs.meta b/Assets/SO Architecture/Variables/LayerMaskVariable.cs.meta new file mode 100644 index 00000000..123c34f8 --- /dev/null +++ b/Assets/SO Architecture/Variables/LayerMaskVariable.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 4b26aa8462eb624458ecacd922a870e8 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: