diff --git a/Basis/Assets/AddressableAssetsData/AddressableAssetSettings.asset b/Basis/Assets/AddressableAssetsData/AddressableAssetSettings.asset index 62bf329c0..dc4001f9d 100644 --- a/Basis/Assets/AddressableAssetsData/AddressableAssetSettings.asset +++ b/Basis/Assets/AddressableAssetsData/AddressableAssetSettings.asset @@ -15,7 +15,7 @@ MonoBehaviour: m_DefaultGroup: 37c75a6cf72db324eb01200602299fc8 m_currentHash: serializedVersion: 2 - Hash: e734509b347634e74cac702ca58ede00 + Hash: 1a0cee12876037204b9566421407ccdb m_OptimizeCatalogSize: 0 m_BuildRemoteCatalog: 0 m_CatalogRequestsTimeout: 0 diff --git a/Basis/Assets/AddressableAssetsData/AssetGroups/Basis Foundation Assets.asset b/Basis/Assets/AddressableAssetsData/AssetGroups/Basis Foundation Assets.asset index e11ad214d..f86135e92 100644 --- a/Basis/Assets/AddressableAssetsData/AssetGroups/Basis Foundation Assets.asset +++ b/Basis/Assets/AddressableAssetsData/AssetGroups/Basis Foundation Assets.asset @@ -210,6 +210,11 @@ MonoBehaviour: m_ReadOnly: 0 m_SerializedLabels: [] FlaggedDuringContentUpdateRestriction: 0 + - m_GUID: b6f3b6b3289267c46b6d4d469fd25e44 + m_Address: Interactable/InteractHighlightMat.mat + m_ReadOnly: 0 + m_SerializedLabels: [] + FlaggedDuringContentUpdateRestriction: 0 - m_GUID: bb4eb766250cf0b4d9e2dc0a7d939808 m_Address: GizmoMaterial m_ReadOnly: 0 @@ -250,6 +255,11 @@ MonoBehaviour: m_ReadOnly: 0 m_SerializedLabels: [] FlaggedDuringContentUpdateRestriction: 0 + - m_GUID: ebe88bc64d28a8e4586b89098577937f + m_Address: Interactable/InteractLineMat.mat + m_ReadOnly: 0 + m_SerializedLabels: [] + FlaggedDuringContentUpdateRestriction: 0 - m_GUID: f95798865974f0740a6932a53740011f m_Address: oculus_quest_controller_right m_ReadOnly: 0 diff --git a/Basis/Packages/com.basis.sdk/Prefabs/Loadins/Main Camera.prefab b/Basis/Packages/com.basis.sdk/Prefabs/Loadins/Main Camera.prefab index ab3de919a..f03cfb67d 100644 --- a/Basis/Packages/com.basis.sdk/Prefabs/Loadins/Main Camera.prefab +++ b/Basis/Packages/com.basis.sdk/Prefabs/Loadins/Main Camera.prefab @@ -222,6 +222,7 @@ GameObject: - component: {fileID: 5985133177976618905} - component: {fileID: 5904128505799627640} - component: {fileID: 3942627279868917592} + - component: {fileID: 6918375167695813928} m_Layer: 3 m_Name: Main Camera m_TagString: MainCamera @@ -534,3 +535,16 @@ StreamingController: m_GameObject: {fileID: 5812972426740207491} m_Enabled: 1 m_StreamingMipmapBias: 0 +--- !u!114 &6918375167695813928 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 5812972426740207491} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: b2ca35de189490844b1d7864bc416ffb, type: 3} + m_Name: + m_EditorClassIdentifier: + raycastDistance: 1 diff --git a/Basis/Packages/com.basis.tests/BasisExamples.asmdef b/Basis/Packages/com.basis.tests/BasisExamples.asmdef index c1aecc0c6..324f48219 100644 --- a/Basis/Packages/com.basis.tests/BasisExamples.asmdef +++ b/Basis/Packages/com.basis.tests/BasisExamples.asmdef @@ -15,7 +15,8 @@ "GUID:1a5076741edc2f145aafefca837072cf", "GUID:da668404f8bf3b14ebd4691cc0a6d67c", "GUID:42c34c05b8d434943ad2cf21483d9cd0", - "GUID:784bec3882b21ab4d8407cc870539fa9" + "GUID:784bec3882b21ab4d8407cc870539fa9", + "GUID:45c7722710e2a37438daaacbf1cd4ad1" ], "includePlatforms": [], "excludePlatforms": [], diff --git a/Basis/Packages/com.basis.tests/Interactable.meta b/Basis/Packages/com.basis.tests/Interactable.meta new file mode 100644 index 000000000..c12977e62 --- /dev/null +++ b/Basis/Packages/com.basis.tests/Interactable.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: d0bc1945c9ba6a540be6606afbc6b08b +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Basis/Packages/com.basis.tests/Interactable/CachedList.cs b/Basis/Packages/com.basis.tests/Interactable/CachedList.cs new file mode 100644 index 000000000..23c2e742d --- /dev/null +++ b/Basis/Packages/com.basis.tests/Interactable/CachedList.cs @@ -0,0 +1,91 @@ +using System; +using System.Collections; +using System.Collections.Generic; + +public class CachedList : IEnumerable +{ + private readonly List _list; + private int _cachedCount; + private bool _isCountValid; + + public CachedList() + { + _list = new List(); + _isCountValid = false; + } + + public CachedList(IEnumerable collection) + { + _list = new List(collection); + _cachedCount = _list.Count; + _isCountValid = true; + } + + public int Count + { + get + { + if (!_isCountValid) + { + _cachedCount = _list.Count; + _isCountValid = true; + } + return _cachedCount; + } + } + + public void Add(T item) + { + _list.Add(item); + InvalidateCount(); + } + + public void AddRange(IEnumerable collection) + { + _list.AddRange(collection); + InvalidateCount(); + } + + public bool Remove(T item) + { + bool removed = _list.Remove(item); + if (removed) + { + InvalidateCount(); + } + return removed; + } + + public void RemoveAt(int index) + { + _list.RemoveAt(index); + InvalidateCount(); + } + + public void Clear() + { + _list.Clear(); + InvalidateCount(); + } + + public T this[int index] + { + get => _list[index]; + set => _list[index] = value; + } + + private void InvalidateCount() + { + _isCountValid = false; + } + + public IEnumerator GetEnumerator() + { + return _list.GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } +} diff --git a/Basis/Packages/com.basis.tests/Interactable/CachedList.cs.meta b/Basis/Packages/com.basis.tests/Interactable/CachedList.cs.meta new file mode 100644 index 000000000..1dbd5d0b3 --- /dev/null +++ b/Basis/Packages/com.basis.tests/Interactable/CachedList.cs.meta @@ -0,0 +1,2 @@ +fileFormatVersion: 2 +guid: 6e2c1163d84c2a746b66780455bbd908 \ No newline at end of file diff --git a/Basis/Packages/com.basis.tests/Interactable/ColliderClone.cs b/Basis/Packages/com.basis.tests/Interactable/ColliderClone.cs new file mode 100644 index 000000000..f57d7096f --- /dev/null +++ b/Basis/Packages/com.basis.tests/Interactable/ColliderClone.cs @@ -0,0 +1,250 @@ +using System; +using System.Collections.Generic; +using UnityEngine; +using UnityEngine.LowLevelPhysics; + +public class ColliderClone +{ + + private static Quaternion rotCapsuleX = Quaternion.Euler(new Vector3(0, 0, 90)); + private static Quaternion rotCapsuleZ = Quaternion.Euler(new Vector3(90, 0, 0)); + + public static GameObject CloneColliderMesh(Collider collider, Transform parent, string cloneName) { + GameObject primitive = null; + switch (collider.GeometryHolder.Type) + { + case GeometryType.Sphere: + var sphere = (SphereCollider)collider; + // TODO: use&cache sphere mesh generated (is lower poly) + primitive = GameObject.CreatePrimitive(PrimitiveType.Sphere); + if(primitive.TryGetComponent(out SphereCollider sCol)) + { + UnityEngine.Object.Destroy(sCol); + } + else + { + BasisDebug.LogError("Primitive Sphere did not have a sphere collider?!"); + } + primitive.name = cloneName; + primitive.transform.parent = parent; + + primitive.transform.localPosition = sphere.center; + primitive.transform.localScale = sphere.radius * 2 * Vector3.one; + break; + case GeometryType.Capsule: + var capsule = (CapsuleCollider)collider; + primitive = new GameObject(cloneName); + MeshFilter mFilter = primitive.AddComponent(); + primitive.AddComponent(); + primitive.transform.parent = parent; + + // generate mesh since we cant just scale the capsule primitve (sadly) + Mesh newMesh = CreateCapsuleMesh(capsule.radius, capsule.height, 8); + mFilter.mesh = newMesh; + + primitive.transform.localPosition = capsule.center; + + switch (capsule.direction) + { + // X, Y (no change), Z + case 0: + primitive.transform.localRotation = rotCapsuleX; + break; + case 2: + primitive.transform.localRotation = rotCapsuleZ; + break; + default: + break; + } + primitive.transform.localScale = Vector3.one; + + break; + case GeometryType.Box: + var box = (BoxCollider)collider; + primitive = GameObject.CreatePrimitive(PrimitiveType.Cube); + if(primitive.TryGetComponent(out BoxCollider boxCol)) + { + UnityEngine.Object.Destroy(boxCol); + } + else + { + BasisDebug.LogError("Cube Primitve did not have a box collider?!"); + } + primitive.name = cloneName; + primitive.transform.parent = parent; + + primitive.transform.SetLocalPositionAndRotation(box.center, Quaternion.identity); + primitive.transform.localScale = box.size; + break; + case GeometryType.ConvexMesh: + case GeometryType.TriangleMesh: + + if (!collider.TryGetComponent(out MeshFilter meshFilter)) + { + BasisDebug.LogWarning("Mesh collider clone must have MeshFilter on same object to generate Highlight box"); + return null; + } + // mesh filter bounds, not collider bounds- as mesh bounds is in local space and not axis aligned (which is what we want) + Bounds objectBounds = meshFilter.mesh.bounds; + + primitive = GameObject.CreatePrimitive(PrimitiveType.Cube); + if(primitive.TryGetComponent(out BoxCollider _col)) + { + UnityEngine.Object.Destroy(_col); + } + else + { + BasisDebug.LogError("Cube Primitve did not have a box collider?!"); + } + primitive.name = cloneName; + primitive.transform.parent = parent; + + primitive.transform.localPosition = objectBounds.center; + primitive.transform.localRotation = Quaternion.identity; + primitive.transform.localScale = objectBounds.size; + break; + + // dont know how to handle remaning types + case GeometryType.Terrain: + case GeometryType.Invalid: + default: + Debug.LogWarning("Mesh collider clone could not generate clone for invalid collider type: " + collider.GeometryHolder.Type); + break; + } + + primitive.SetActive(false); + return primitive; + } + + public static Mesh CreateCapsuleMesh(float radius, float height, int segments) + { + Mesh mesh = new Mesh(); + + segments = segments % 2 != 0 ? segments + 1 : segments; + + float cylinderHeight = Math.Max(height - 2 * radius, 0); + + var vertices = new List(); + var triangles = new List(); + var normals = new List(); + + int hemisphereSegments = segments / 2; + // North + GenerateHemisphere(vertices, triangles, normals, radius, segments, hemisphereSegments, true, cylinderHeight / 2); + // South + GenerateHemisphere(vertices, triangles, normals, radius, segments, hemisphereSegments, false, -(cylinderHeight / 2)); + // Cylinder + GenerateCylinder(vertices, triangles, normals, radius, cylinderHeight, segments); + + mesh.vertices = vertices.ToArray(); + mesh.triangles = triangles.ToArray(); + mesh.normals = normals.ToArray(); + + mesh.RecalculateTangents(); + mesh.Optimize(); + + return mesh; + } + + private static void GenerateHemisphere( + List vertices, + List triangles, + List normals, + float radius, int segments, int hemisphereSegments, bool isNorth, float yOffset) + { + int baseIndex = vertices.Count; + + for (int lat = 0; lat <= hemisphereSegments; lat++) + { + float latAngle = Mathf.PI * 0.5f * (lat / (float)hemisphereSegments) * (isNorth ? 1 : -1); + float y = radius * Mathf.Sin(latAngle); + float ringRadius = radius * Mathf.Cos(latAngle); + + for (int lon = 0; lon <= segments; lon++) + { + float lonAngle = 2 * Mathf.PI * lon / segments; + float x = ringRadius * Mathf.Cos(lonAngle); + float z = ringRadius * Mathf.Sin(lonAngle); + + Vector3 vertex = new Vector3(x, y + yOffset, z); + vertices.Add(vertex); + + // Calculate proper surface normal + Vector3 normal = new Vector3(x, y, z).normalized; + normals.Add(normal); + + if (lat < hemisphereSegments && lon < segments) + { + int current = baseIndex + lat * (segments + 1) + lon; + int next = baseIndex + lat * (segments + 1) + lon + 1; + int below = baseIndex + (lat + 1) * (segments + 1) + lon; + int belowNext = baseIndex + (lat + 1) * (segments + 1) + lon + 1; + + if (!isNorth) + { + triangles.Add(current); + triangles.Add(next); + triangles.Add(below); + triangles.Add(next); + triangles.Add(belowNext); + triangles.Add(below); + } + else + { + triangles.Add(current); + triangles.Add(below); + triangles.Add(next); + triangles.Add(next); + triangles.Add(below); + triangles.Add(belowNext); + } + } + } + } + } + + private static void GenerateCylinder( + List vertices, + List triangles, + List normals, + float radius, float height, int segments) + { + if (height <= 0) return; + + int baseIndex = vertices.Count; + + for (int i = 0; i <= 1; i++) + { + float y = (i == 0 ? 1 : -1) * height / 2; + + for (int lon = 0; lon <= segments; lon++) + { + float lonAngle = 2 * Mathf.PI * lon / segments; + float x = radius * Mathf.Cos(lonAngle); + float z = radius * Mathf.Sin(lonAngle); + + vertices.Add(new Vector3(x, y, z)); + + // Calculate cylinder surface normal (points outward from central axis) + Vector3 normal = new Vector3(x, 0, z).normalized; + normals.Add(normal); + } + } + + for (int lon = 0; lon < segments; lon++) + { + int topCurrent = baseIndex + lon; + int topNext = baseIndex + lon + 1; + int bottomCurrent = baseIndex + segments + 1 + lon; + int bottomNext = baseIndex + segments + 1 + lon + 1; + + triangles.Add(topCurrent); + triangles.Add(topNext); + triangles.Add(bottomCurrent); + + triangles.Add(bottomNext); + triangles.Add(bottomCurrent); + triangles.Add(topNext); + } + } +} \ No newline at end of file diff --git a/Basis/Packages/com.basis.tests/Interactable/ColliderClone.cs.meta b/Basis/Packages/com.basis.tests/Interactable/ColliderClone.cs.meta new file mode 100644 index 000000000..7fd60e989 --- /dev/null +++ b/Basis/Packages/com.basis.tests/Interactable/ColliderClone.cs.meta @@ -0,0 +1,2 @@ +fileFormatVersion: 2 +guid: d88b5cfeecc3ddd4ab958775af40f558 \ No newline at end of file diff --git a/Basis/Packages/com.basis.tests/Interactable/Examples.meta b/Basis/Packages/com.basis.tests/Interactable/Examples.meta new file mode 100644 index 000000000..d222efcc9 --- /dev/null +++ b/Basis/Packages/com.basis.tests/Interactable/Examples.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 74972af9c8a7c8c44ac15c19f9ba8ece +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Basis/Packages/com.basis.tests/Interactable/Examples/ExampleButton.meta b/Basis/Packages/com.basis.tests/Interactable/Examples/ExampleButton.meta new file mode 100644 index 000000000..7c16a29f2 --- /dev/null +++ b/Basis/Packages/com.basis.tests/Interactable/Examples/ExampleButton.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 6929c43e682e28f46b3e76d55de721f9 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Basis/Packages/com.basis.tests/Interactable/Examples/ExampleButton/ButtonMat.mat b/Basis/Packages/com.basis.tests/Interactable/Examples/ExampleButton/ButtonMat.mat new file mode 100644 index 000000000..f9e97eb8f --- /dev/null +++ b/Basis/Packages/com.basis.tests/Interactable/Examples/ExampleButton/ButtonMat.mat @@ -0,0 +1,138 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!114 &-7507831221553151009 +MonoBehaviour: + m_ObjectHideFlags: 11 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: d0353a89b1f911e48b9e16bdc9f2e058, type: 3} + m_Name: + m_EditorClassIdentifier: + version: 9 +--- !u!21 &2100000 +Material: + serializedVersion: 8 + m_ObjectHideFlags: 32 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_Name: ButtonMat + m_Shader: {fileID: 4800000, guid: 650dd9526735d5b46b79224bc6e94025, type: 3} + m_Parent: {fileID: 0} + m_ModifiedSerializedProperties: 0 + m_ValidKeywords: [] + m_InvalidKeywords: [] + m_LightmapFlags: 4 + m_EnableInstancingVariants: 0 + m_DoubleSidedGI: 0 + m_CustomRenderQueue: -1 + stringTagMap: + RenderType: Opaque + disabledShaderPasses: + - MOTIONVECTORS + m_LockedProperties: + m_SavedProperties: + serializedVersion: 3 + m_TexEnvs: + - _BaseMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _BumpMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailAlbedoMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailMask: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailNormalMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _EmissionMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _MainTex: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _MetallicGlossMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _OcclusionMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _ParallaxMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _SpecGlossMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - unity_Lightmaps: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - unity_LightmapsInd: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - unity_ShadowMasks: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + m_Ints: [] + m_Floats: + - _AddPrecomputedVelocity: 0 + - _AlphaClip: 0 + - _AlphaToMask: 0 + - _Blend: 0 + - _BlendModePreserveSpecular: 1 + - _BlendOp: 0 + - _BumpScale: 1 + - _ClearCoatMask: 0 + - _ClearCoatSmoothness: 0 + - _Cull: 2 + - _Cutoff: 0.5 + - _DetailAlbedoMapScale: 1 + - _DetailNormalMapScale: 1 + - _DstBlend: 0 + - _DstBlendAlpha: 0 + - _EnvironmentReflections: 1 + - _GlossMapScale: 0 + - _Glossiness: 0 + - _GlossyReflections: 0 + - _Metallic: 0 + - _OcclusionStrength: 1 + - _Parallax: 0.005 + - _QueueOffset: 0 + - _ReceiveShadows: 1 + - _SampleGI: 0 + - _Smoothness: 0.5 + - _SmoothnessTextureChannel: 0 + - _SpecularHighlights: 1 + - _SrcBlend: 1 + - _SrcBlendAlpha: 1 + - _Surface: 0 + - _WorkflowMode: 1 + - _ZWrite: 1 + m_Colors: + - _BaseColor: {r: 1, g: 1, b: 1, a: 1} + - _Color: {r: 1, g: 1, b: 1, a: 1} + - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} + - _SpecColor: {r: 0.19999996, g: 0.19999996, b: 0.19999996, a: 1} + m_BuildTextureStacks: [] + m_AllowLocking: 1 diff --git a/Basis/Packages/com.basis.tests/Interactable/Examples/ExampleButton/ButtonMat.mat.meta b/Basis/Packages/com.basis.tests/Interactable/Examples/ExampleButton/ButtonMat.mat.meta new file mode 100644 index 000000000..caff4eaab --- /dev/null +++ b/Basis/Packages/com.basis.tests/Interactable/Examples/ExampleButton/ButtonMat.mat.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 313d8e46c9a8e8e4abd4c28e578aa483 +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 2100000 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Basis/Packages/com.basis.tests/Interactable/Examples/ExampleButton/ExampleButtonInteractable.cs b/Basis/Packages/com.basis.tests/Interactable/Examples/ExampleButton/ExampleButtonInteractable.cs new file mode 100644 index 000000000..1fd3ada65 --- /dev/null +++ b/Basis/Packages/com.basis.tests/Interactable/Examples/ExampleButton/ExampleButtonInteractable.cs @@ -0,0 +1,148 @@ +using System; +using Basis.Scripts.Device_Management.Devices; +using UnityEngine; +public class ExampleButtonInteractable : InteractableObject +{ + // public BasisObjectSyncNetworking syncNetworking; + + // events other scripts can subscribe to + public Action ButtonDown; + public Action ButtonUp; + + [Header("Button Settings")] + public bool isEnabled; + [Space(10)] + public string PropertyName = "_Color"; + public Color Color = Color.white; + public Color HoverColor = Color.white; + public Color InteractColor = Color.white; + public Color DisabledColor = Color.white; + + [Header("References")] + public Collider ColliderRef; + public MeshRenderer RendererRef; + + void Start() + { + InputSources = new CachedList + { + new InputSource(null, false) + }; + + if (ColliderRef == null) + { + TryGetComponent(out ColliderRef); + } + if (RendererRef == null) + { + TryGetComponent(out RendererRef); + } + + SetColor(isEnabled ? Color : DisabledColor); + } + + public override bool CanHover(BasisInput input) + { + return InputSources[0].Source == null && IsWithinRange(input.transform.position) && isEnabled; + } + public override bool CanInteract(BasisInput input) + { + // must be the same input hovering + if (!IsCurrentInput(input.UniqueDeviceIdentifier)) return false; + // dont interact again till after interacting stopped + if (InputSources[0].IsInteracting) return false; + + return IsWithinRange(input.transform.position) && isEnabled; + } + + public override void OnHoverStart(BasisInput input) + { + InputSources[0] = new InputSource(input, false); + SetColor(HoverColor); + } + + public override void OnHoverEnd(BasisInput input, bool willInteract) + { + if (IsCurrentInput(input.UniqueDeviceIdentifier)) + { + // leaving hover and wont interact this frame + if (!willInteract) + { + InputSources[0] = new InputSource(null, false); + SetColor(Color); + } + // Oninteract will update color + } + } + + public override void OnInteractStart(BasisInput input) + { + if (IsCurrentInput(input.UniqueDeviceIdentifier) && !InputSources[0].IsInteracting) + { + // Set ownership to the local player + // syncNetworking.IsOwner = true; + SetColor(InteractColor); + InputSources[0] = new InputSource(input, true); + ButtonDown?.Invoke(); + } + } + + public override void OnInteractEnd(BasisInput input) + { + if (IsCurrentInput(input.UniqueDeviceIdentifier) && InputSources[0].IsInteracting) + { + SetColor(Color); + InputSources[0] = new InputSource(null, false); + ButtonUp?.Invoke(); + } + } + public override bool IsInteractingWith(BasisInput input) + { + return InputSources[0].Source != null && + InputSources[0].Source.UniqueDeviceIdentifier == input.UniqueDeviceIdentifier && + InputSources[0].IsInteracting; + } + + public override bool IsHoveredBy(BasisInput input) + { + return InputSources[0].Source != null && + InputSources[0].Source.UniqueDeviceIdentifier == input.UniqueDeviceIdentifier && + !InputSources[0].IsInteracting; + } + + private bool IsCurrentInput(string uid) + { + return InputSources[0].Source != null && InputSources[0].Source.UniqueDeviceIdentifier == uid; + } + + // set material property to a color + private void SetColor(Color color) + { + if (RendererRef != null && RendererRef.material != null) + { + RendererRef.material.SetColor(Shader.PropertyToID(PropertyName), color); + } + } + + + // per-frame update, after IK transform + public override void InputUpdate() + { + if(!isEnabled) { + // clean up currently hovering/interacting + if (InputSources[0].Source != null) + { + if (IsHoveredBy(InputSources[0].Source)) + { + OnHoverEnd(InputSources[0].Source, false); + } + if (IsInteractingWith(InputSources[0].Source)) + { + OnInteractEnd(InputSources[0].Source); + } + } + // setting same color every frame isnt optimal but fine for example + SetColor(DisabledColor); + } + } +} \ No newline at end of file diff --git a/Basis/Packages/com.basis.tests/Interactable/Examples/ExampleButton/ExampleButtonInteractable.cs.meta b/Basis/Packages/com.basis.tests/Interactable/Examples/ExampleButton/ExampleButtonInteractable.cs.meta new file mode 100644 index 000000000..a55da72e7 --- /dev/null +++ b/Basis/Packages/com.basis.tests/Interactable/Examples/ExampleButton/ExampleButtonInteractable.cs.meta @@ -0,0 +1,2 @@ +fileFormatVersion: 2 +guid: b69dc8bbb99013e41a6620d36e35fa7a \ No newline at end of file diff --git a/Basis/Packages/com.basis.tests/Interactable/Examples/ExampleButton/ExampleInteractableButton.prefab b/Basis/Packages/com.basis.tests/Interactable/Examples/ExampleButton/ExampleInteractableButton.prefab new file mode 100644 index 000000000..c8c746c93 --- /dev/null +++ b/Basis/Packages/com.basis.tests/Interactable/Examples/ExampleButton/ExampleInteractableButton.prefab @@ -0,0 +1,135 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!1 &5542437488106794660 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 3062725048134576212} + - component: {fileID: 3862312544648433336} + - component: {fileID: 2733150091029919554} + - component: {fileID: 2111586606329965067} + - component: {fileID: 8913244321027071087} + m_Layer: 8 + m_Name: ExampleInteractableButton + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &3062725048134576212 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 5542437488106794660} + serializedVersion: 2 + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 0.1, y: 0.1, z: 0.1} + m_ConstrainProportionsScale: 1 + m_Children: [] + m_Father: {fileID: 0} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!33 &3862312544648433336 +MeshFilter: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 5542437488106794660} + m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} +--- !u!23 &2733150091029919554 +MeshRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 5542437488106794660} + m_Enabled: 1 + m_CastShadows: 1 + m_ReceiveShadows: 1 + m_DynamicOccludee: 1 + m_StaticShadowCaster: 0 + m_MotionVectors: 1 + m_LightProbeUsage: 1 + m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 + m_RayTraceProcedural: 0 + m_RayTracingAccelStructBuildFlagsOverride: 0 + m_RayTracingAccelStructBuildFlags: 1 + m_SmallMeshCulling: 1 + m_RenderingLayerMask: 1 + m_RendererPriority: 0 + m_Materials: + - {fileID: 2100000, guid: 313d8e46c9a8e8e4abd4c28e578aa483, type: 2} + m_StaticBatchInfo: + firstSubMesh: 0 + subMeshCount: 0 + m_StaticBatchRoot: {fileID: 0} + m_ProbeAnchor: {fileID: 0} + m_LightProbeVolumeOverride: {fileID: 0} + m_ScaleInLightmap: 1 + m_ReceiveGI: 1 + m_PreserveUVs: 0 + m_IgnoreNormalsForChartDetection: 0 + m_ImportantGI: 0 + m_StitchLightmapSeams: 1 + m_SelectedEditorRenderState: 3 + m_MinimumChartSize: 4 + m_AutoUVMaxDistance: 0.5 + m_AutoUVMaxAngle: 89 + m_LightmapParameters: {fileID: 0} + m_SortingLayerID: 0 + m_SortingLayer: 0 + m_SortingOrder: 0 + m_AdditionalVertexStreams: {fileID: 0} +--- !u!65 &2111586606329965067 +BoxCollider: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 5542437488106794660} + m_Material: {fileID: 0} + m_IncludeLayers: + serializedVersion: 2 + m_Bits: 0 + m_ExcludeLayers: + serializedVersion: 2 + m_Bits: 0 + m_LayerOverridePriority: 0 + m_IsTrigger: 1 + m_ProvidesContacts: 0 + m_Enabled: 1 + serializedVersion: 3 + m_Size: {x: 1, y: 1, z: 1} + m_Center: {x: 0, y: 0, z: 0} +--- !u!114 &8913244321027071087 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 5542437488106794660} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: b69dc8bbb99013e41a6620d36e35fa7a, type: 3} + m_Name: + m_EditorClassIdentifier: + InteractRange: 1 + CanEquip: 0 + equipPos: {x: 0, y: 0, z: 0} + equipRot: {x: 0, y: 0, z: 0, w: 0} + isEnabled: 1 + PropertyName: _BaseColor + Color: {r: 0.6886792, g: 0.6886792, b: 0.6886792, a: 1} + HoverColor: {r: 0.28439835, g: 0.7830189, b: 0.77354485, a: 1} + InteractColor: {r: 1, g: 0, b: 0, a: 1} + DisabledColor: {r: 0.5566038, g: 0.2809274, b: 0.2809274, a: 1} + ColliderRef: {fileID: 0} + RendererRef: {fileID: 0} diff --git a/Basis/Packages/com.basis.tests/Interactable/Examples/ExampleButton/ExampleInteractableButton.prefab.meta b/Basis/Packages/com.basis.tests/Interactable/Examples/ExampleButton/ExampleInteractableButton.prefab.meta new file mode 100644 index 000000000..11f337b03 --- /dev/null +++ b/Basis/Packages/com.basis.tests/Interactable/Examples/ExampleButton/ExampleInteractableButton.prefab.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 59eac2e4af8e4e44d9efa5bac62e0100 +PrefabImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Basis/Packages/com.basis.tests/Interactable/Examples/PersonalMirror.prefab b/Basis/Packages/com.basis.tests/Interactable/Examples/PersonalMirror.prefab new file mode 100644 index 000000000..d153759cc --- /dev/null +++ b/Basis/Packages/com.basis.tests/Interactable/Examples/PersonalMirror.prefab @@ -0,0 +1,372 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!1 &7823537412809617706 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 3245820873811889637} + - component: {fileID: 5061350970769066408} + - component: {fileID: 4539184375680350780} + m_Layer: 8 + m_Name: Plane + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &3245820873811889637 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 7823537412809617706} + serializedVersion: 2 + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 1391509528021517971} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!33 &5061350970769066408 +MeshFilter: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 7823537412809617706} + m_Mesh: {fileID: 10210, guid: 0000000000000000e000000000000000, type: 0} +--- !u!23 &4539184375680350780 +MeshRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 7823537412809617706} + m_Enabled: 1 + m_CastShadows: 1 + m_ReceiveShadows: 1 + m_DynamicOccludee: 1 + m_StaticShadowCaster: 0 + m_MotionVectors: 1 + m_LightProbeUsage: 1 + m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 + m_RayTraceProcedural: 0 + m_RayTracingAccelStructBuildFlagsOverride: 0 + m_RayTracingAccelStructBuildFlags: 1 + m_SmallMeshCulling: 1 + m_RenderingLayerMask: 1 + m_RendererPriority: 0 + m_Materials: + - {fileID: 2100000, guid: f0c27493c675a80478e2e11f37f822fd, type: 2} + m_StaticBatchInfo: + firstSubMesh: 0 + subMeshCount: 0 + m_StaticBatchRoot: {fileID: 0} + m_ProbeAnchor: {fileID: 0} + m_LightProbeVolumeOverride: {fileID: 0} + m_ScaleInLightmap: 1 + m_ReceiveGI: 1 + m_PreserveUVs: 0 + m_IgnoreNormalsForChartDetection: 0 + m_ImportantGI: 0 + m_StitchLightmapSeams: 1 + m_SelectedEditorRenderState: 3 + m_MinimumChartSize: 4 + m_AutoUVMaxDistance: 0.5 + m_AutoUVMaxAngle: 89 + m_LightmapParameters: {fileID: 0} + m_SortingLayerID: 0 + m_SortingLayer: 0 + m_SortingOrder: 0 + m_AdditionalVertexStreams: {fileID: 0} +--- !u!1 &8090299133553875483 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 6013399005380709632} + - component: {fileID: 4378872311078704491} + - component: {fileID: 7352131982165511001} + m_Layer: 8 + m_Name: Plane (1) + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &6013399005380709632 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 8090299133553875483} + serializedVersion: 2 + m_LocalRotation: {x: 0, y: 1, z: 0, w: 0} + m_LocalPosition: {x: 0, y: 0, z: 0.001} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 1391509528021517971} + m_LocalEulerAnglesHint: {x: 0, y: 180, z: 0} +--- !u!33 &4378872311078704491 +MeshFilter: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 8090299133553875483} + m_Mesh: {fileID: 10210, guid: 0000000000000000e000000000000000, type: 0} +--- !u!23 &7352131982165511001 +MeshRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 8090299133553875483} + m_Enabled: 1 + m_CastShadows: 1 + m_ReceiveShadows: 1 + m_DynamicOccludee: 1 + m_StaticShadowCaster: 0 + m_MotionVectors: 1 + m_LightProbeUsage: 1 + m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 + m_RayTraceProcedural: 0 + m_RayTracingAccelStructBuildFlagsOverride: 0 + m_RayTracingAccelStructBuildFlags: 1 + m_SmallMeshCulling: 1 + m_RenderingLayerMask: 1 + m_RendererPriority: 0 + m_Materials: + - {fileID: 2100000, guid: 31321ba15b8f8eb4c954353edc038b1d, type: 2} + m_StaticBatchInfo: + firstSubMesh: 0 + subMeshCount: 0 + m_StaticBatchRoot: {fileID: 0} + m_ProbeAnchor: {fileID: 0} + m_LightProbeVolumeOverride: {fileID: 0} + m_ScaleInLightmap: 1 + m_ReceiveGI: 1 + m_PreserveUVs: 0 + m_IgnoreNormalsForChartDetection: 0 + m_ImportantGI: 0 + m_StitchLightmapSeams: 1 + m_SelectedEditorRenderState: 3 + m_MinimumChartSize: 4 + m_AutoUVMaxDistance: 0.5 + m_AutoUVMaxAngle: 89 + m_LightmapParameters: {fileID: 0} + m_SortingLayerID: 0 + m_SortingLayer: 0 + m_SortingOrder: 0 + m_AdditionalVertexStreams: {fileID: 0} +--- !u!1 &8495108801776137362 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1391509528021517971} + - component: {fileID: 6716630730999556394} + - component: {fileID: 3189968721083455833} + - component: {fileID: 9201022900400375153} + - component: {fileID: 2919849334597809319} + - component: {fileID: 674325264793059798} + m_Layer: 8 + m_Name: PersonalMirror + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &1391509528021517971 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 8495108801776137362} + serializedVersion: 2 + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: + - {fileID: 3245820873811889637} + - {fileID: 6013399005380709632} + m_Father: {fileID: 0} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!114 &6716630730999556394 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 8495108801776137362} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 0647cb0d51f50ec4fb370f7326093528, type: 3} + m_Name: + m_EditorClassIdentifier: + Renderer: {fileID: 4539184375680350780} + BasisMeshRendererCheck: {fileID: 0} + IsAbleToRender: 0 + m_ClipPlaneOffset: 0.001 + ThisPosition: {x: 0, y: 0, z: 0} + projectionMatrix: + e00: 0 + e01: 0 + e02: 0 + e03: 0 + e10: 0 + e11: 0 + e12: 0 + e13: 0 + e20: 0 + e21: 0 + e22: 0 + e23: 0 + e30: 0 + e31: 0 + e32: 0 + e33: 0 + normal: {x: 0, y: 0, z: 0} + reflectionPlane: {x: 0, y: 0, z: 0, w: 0} + projectionDirection: {x: -0, y: -0, z: -1} + reflectionMatrix: + e00: 0 + e01: 0 + e02: 0 + e03: 0 + e10: 0 + e11: 0 + e12: 0 + e13: 0 + e20: 0 + e21: 0 + e22: 0 + e23: 0 + e30: 0 + e31: 0 + e32: 0 + e33: 0 + nearClipLimit: 0.01 + FarClipPlane: 25 + LeftCamera: {fileID: 0} + RightCamera: {fileID: 0} + PortalTextureLeft: {fileID: 0} + PortalTextureRight: {fileID: 0} + XSize: 2048 + YSize: 2048 + Antialising: 4 + MirrorsMaterial: {fileID: 2100000, guid: f0c27493c675a80478e2e11f37f822fd, type: 2} + IsActive: 0 + depth: 24 + allowXRRendering: 1 + RenderPostProcessing: 0 +--- !u!65 &3189968721083455833 +BoxCollider: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 8495108801776137362} + m_Material: {fileID: 0} + m_IncludeLayers: + serializedVersion: 2 + m_Bits: 0 + m_ExcludeLayers: + serializedVersion: 2 + m_Bits: 0 + m_LayerOverridePriority: 0 + m_IsTrigger: 1 + m_ProvidesContacts: 0 + m_Enabled: 1 + serializedVersion: 3 + m_Size: {x: 1, y: 1, z: 0.01} + m_Center: {x: 0, y: 0, z: 0} +--- !u!114 &9201022900400375153 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 8495108801776137362} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 690ab0b52a9b06b4498ad303592416aa, type: 3} + m_Name: + m_EditorClassIdentifier: + InteractRange: 1 + CanEquip: 0 + equipPos: {x: 0, y: 0, z: 0} + equipRot: {x: 0, y: 0, z: 0, w: 0} + KinematicWhileInteracting: 0 + LocalOnly: 1 + ColliderRef: {fileID: 0} + RigidRef: {fileID: 0} + ConstraintRef: {fileID: 0} +--- !u!1773428102 &2919849334597809319 +ParentConstraint: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 8495108801776137362} + m_Enabled: 1 + serializedVersion: 2 + m_Weight: 1 + m_TranslationAtRest: {x: 0.952, y: 0.838, z: 0.654} + m_RotationAtRest: {x: 0, y: 0, z: 0} + m_TranslationOffsets: [] + m_RotationOffsets: [] + m_AffectTranslationX: 1 + m_AffectTranslationY: 1 + m_AffectTranslationZ: 1 + m_AffectRotationX: 1 + m_AffectRotationY: 1 + m_AffectRotationZ: 1 + m_Active: 0 + m_IsLocked: 0 + m_Sources: [] +--- !u!54 &674325264793059798 +Rigidbody: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 8495108801776137362} + serializedVersion: 4 + m_Mass: 1 + m_Drag: 0 + m_AngularDrag: 0.05 + m_CenterOfMass: {x: 0, y: 0, z: 0} + m_InertiaTensor: {x: 1, y: 1, z: 1} + m_InertiaRotation: {x: 0, y: 0, z: 0, w: 1} + m_IncludeLayers: + serializedVersion: 2 + m_Bits: 0 + m_ExcludeLayers: + serializedVersion: 2 + m_Bits: 0 + m_ImplicitCom: 1 + m_ImplicitTensor: 1 + m_UseGravity: 0 + m_IsKinematic: 0 + m_Interpolate: 0 + m_Constraints: 0 + m_CollisionDetection: 0 diff --git a/Basis/Packages/com.basis.tests/Interactable/Examples/PersonalMirror.prefab.meta b/Basis/Packages/com.basis.tests/Interactable/Examples/PersonalMirror.prefab.meta new file mode 100644 index 000000000..90ce35a43 --- /dev/null +++ b/Basis/Packages/com.basis.tests/Interactable/Examples/PersonalMirror.prefab.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 1701187c6a784ab4f8030c14149b0bce +PrefabImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Basis/Packages/com.basis.tests/Interactable/Examples/PickupInteractable.prefab b/Basis/Packages/com.basis.tests/Interactable/Examples/PickupInteractable.prefab new file mode 100644 index 000000000..52ad4ef6a --- /dev/null +++ b/Basis/Packages/com.basis.tests/Interactable/Examples/PickupInteractable.prefab @@ -0,0 +1,184 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!1 &8381068889838832174 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 6918077497000395064} + - component: {fileID: 8204580348963100916} + - component: {fileID: 6944634814044429668} + - component: {fileID: 2600401473938556946} + - component: {fileID: 1001019263030247314} + - component: {fileID: 5036961803400065188} + - component: {fileID: 1266327906536326857} + m_Layer: 8 + m_Name: PickupInteractable + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &6918077497000395064 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 8381068889838832174} + serializedVersion: 2 + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: -1, y: 1, z: 0} + m_LocalScale: {x: 0.1, y: 0.1, z: 0.1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 0} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!33 &8204580348963100916 +MeshFilter: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 8381068889838832174} + m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} +--- !u!23 &6944634814044429668 +MeshRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 8381068889838832174} + m_Enabled: 1 + m_CastShadows: 1 + m_ReceiveShadows: 1 + m_DynamicOccludee: 1 + m_StaticShadowCaster: 0 + m_MotionVectors: 1 + m_LightProbeUsage: 1 + m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 + m_RayTraceProcedural: 0 + m_RayTracingAccelStructBuildFlagsOverride: 0 + m_RayTracingAccelStructBuildFlags: 1 + m_SmallMeshCulling: 1 + m_RenderingLayerMask: 1 + m_RendererPriority: 0 + m_Materials: + - {fileID: 2100000, guid: 6a1143ee683302f4aa628c052723efc1, type: 2} + m_StaticBatchInfo: + firstSubMesh: 0 + subMeshCount: 0 + m_StaticBatchRoot: {fileID: 0} + m_ProbeAnchor: {fileID: 0} + m_LightProbeVolumeOverride: {fileID: 0} + m_ScaleInLightmap: 1 + m_ReceiveGI: 1 + m_PreserveUVs: 0 + m_IgnoreNormalsForChartDetection: 0 + m_ImportantGI: 0 + m_StitchLightmapSeams: 1 + m_SelectedEditorRenderState: 3 + m_MinimumChartSize: 4 + m_AutoUVMaxDistance: 0.5 + m_AutoUVMaxAngle: 89 + m_LightmapParameters: {fileID: 0} + m_SortingLayerID: 0 + m_SortingLayer: 0 + m_SortingOrder: 0 + m_AdditionalVertexStreams: {fileID: 0} +--- !u!65 &2600401473938556946 +BoxCollider: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 8381068889838832174} + m_Material: {fileID: 0} + m_IncludeLayers: + serializedVersion: 2 + m_Bits: 0 + m_ExcludeLayers: + serializedVersion: 2 + m_Bits: 0 + m_LayerOverridePriority: 0 + m_IsTrigger: 1 + m_ProvidesContacts: 0 + m_Enabled: 1 + serializedVersion: 3 + m_Size: {x: 1, y: 1, z: 1} + m_Center: {x: 0, y: 0, z: 0} +--- !u!54 &1001019263030247314 +Rigidbody: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 8381068889838832174} + serializedVersion: 4 + m_Mass: 1 + m_Drag: 0 + m_AngularDrag: 0.05 + m_CenterOfMass: {x: 0, y: 0, z: 0} + m_InertiaTensor: {x: 1, y: 1, z: 1} + m_InertiaRotation: {x: 0, y: 0, z: 0, w: 1} + m_IncludeLayers: + serializedVersion: 2 + m_Bits: 0 + m_ExcludeLayers: + serializedVersion: 2 + m_Bits: 0 + m_ImplicitCom: 1 + m_ImplicitTensor: 1 + m_UseGravity: 0 + m_IsKinematic: 0 + m_Interpolate: 0 + m_Constraints: 0 + m_CollisionDetection: 0 +--- !u!114 &5036961803400065188 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 8381068889838832174} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 690ab0b52a9b06b4498ad303592416aa, type: 3} + m_Name: + m_EditorClassIdentifier: + InteractRange: 1 + CanEquip: 0 + equipPos: {x: 0, y: 0, z: 0} + equipRot: {x: 0, y: 0, z: 0, w: 0} + KinematicWhileInteracting: 1 + LocalOnly: 1 + ColliderRef: {fileID: 0} + RigidRef: {fileID: 0} + ConstraintRef: {fileID: 0} +--- !u!1773428102 &1266327906536326857 +ParentConstraint: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 8381068889838832174} + m_Enabled: 1 + serializedVersion: 2 + m_Weight: 1 + m_TranslationAtRest: {x: -0.744, y: 1, z: 0} + m_RotationAtRest: {x: 0, y: 0, z: 0} + m_TranslationOffsets: [] + m_RotationOffsets: [] + m_AffectTranslationX: 1 + m_AffectTranslationY: 1 + m_AffectTranslationZ: 1 + m_AffectRotationX: 1 + m_AffectRotationY: 1 + m_AffectRotationZ: 1 + m_Active: 0 + m_IsLocked: 0 + m_Sources: [] diff --git a/Basis/Packages/com.basis.tests/Interactable/Examples/PickupInteractable.prefab.meta b/Basis/Packages/com.basis.tests/Interactable/Examples/PickupInteractable.prefab.meta new file mode 100644 index 000000000..3a5aaf259 --- /dev/null +++ b/Basis/Packages/com.basis.tests/Interactable/Examples/PickupInteractable.prefab.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 2d8f3575614e0d7419c84f967185cdac +PrefabImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Basis/Packages/com.basis.tests/Interactable/Examples/TestPhysicPickup.prefab b/Basis/Packages/com.basis.tests/Interactable/Examples/TestPhysicPickup.prefab new file mode 100644 index 000000000..887f6fc09 --- /dev/null +++ b/Basis/Packages/com.basis.tests/Interactable/Examples/TestPhysicPickup.prefab @@ -0,0 +1,33 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!1 &5811516994059719335 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 5016455931410180399} + m_Layer: 0 + m_Name: TestPhysicPickup + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &5016455931410180399 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 5811516994059719335} + serializedVersion: 2 + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 0} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} diff --git a/Basis/Packages/com.basis.tests/Interactable/Examples/TestPhysicPickup.prefab.meta b/Basis/Packages/com.basis.tests/Interactable/Examples/TestPhysicPickup.prefab.meta new file mode 100644 index 000000000..25e18e74d --- /dev/null +++ b/Basis/Packages/com.basis.tests/Interactable/Examples/TestPhysicPickup.prefab.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 5caa2c68252476a43a1acd4ac0ff31df +PrefabImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Basis/Packages/com.basis.tests/Interactable/Examples/monkey_suzanne.fbx b/Basis/Packages/com.basis.tests/Interactable/Examples/monkey_suzanne.fbx new file mode 100644 index 000000000..701f0e4ca Binary files /dev/null and b/Basis/Packages/com.basis.tests/Interactable/Examples/monkey_suzanne.fbx differ diff --git a/Basis/Packages/com.basis.tests/Interactable/Examples/monkey_suzanne.fbx.meta b/Basis/Packages/com.basis.tests/Interactable/Examples/monkey_suzanne.fbx.meta new file mode 100644 index 000000000..2a67874ea --- /dev/null +++ b/Basis/Packages/com.basis.tests/Interactable/Examples/monkey_suzanne.fbx.meta @@ -0,0 +1,107 @@ +fileFormatVersion: 2 +guid: 7906979de341558478671be4f6bdf5e8 +ModelImporter: + serializedVersion: 22200 + internalIDToNameTable: [] + externalObjects: {} + materials: + materialImportMode: 2 + materialName: 0 + materialSearch: 1 + materialLocation: 1 + animations: + legacyGenerateAnimations: 4 + bakeSimulation: 0 + resampleCurves: 1 + optimizeGameObjects: 0 + removeConstantScaleCurves: 0 + motionNodeName: + animationImportErrors: + animationImportWarnings: + animationRetargetingWarnings: + animationDoRetargetingWarnings: 0 + importAnimatedCustomProperties: 0 + importConstraints: 0 + animationCompression: 1 + animationRotationError: 0.5 + animationPositionError: 0.5 + animationScaleError: 0.5 + animationWrapMode: 0 + extraExposedTransformPaths: [] + extraUserProperties: [] + clipAnimations: [] + isReadable: 0 + meshes: + lODScreenPercentages: [] + globalScale: 1 + meshCompression: 0 + addColliders: 0 + useSRGBMaterialColor: 1 + sortHierarchyByName: 1 + importPhysicalCameras: 1 + importVisibility: 1 + importBlendShapes: 1 + importCameras: 1 + importLights: 1 + nodeNameCollisionStrategy: 1 + fileIdsGeneration: 2 + swapUVChannels: 0 + generateSecondaryUV: 0 + useFileUnits: 1 + keepQuads: 0 + weldVertices: 1 + bakeAxisConversion: 0 + preserveHierarchy: 0 + skinWeightsMode: 0 + maxBonesPerVertex: 4 + minBoneWeight: 0.001 + optimizeBones: 1 + meshOptimizationFlags: -1 + indexFormat: 0 + secondaryUVAngleDistortion: 8 + secondaryUVAreaDistortion: 15.000001 + secondaryUVHardAngle: 88 + secondaryUVMarginMethod: 1 + secondaryUVMinLightmapResolution: 40 + secondaryUVMinObjectScale: 1 + secondaryUVPackMargin: 4 + useFileScale: 1 + strictVertexDataChecks: 0 + tangentSpace: + normalSmoothAngle: 60 + normalImportMode: 0 + tangentImportMode: 3 + normalCalculationMode: 4 + legacyComputeAllNormalsFromSmoothingGroupsWhenMeshHasBlendShapes: 0 + blendShapeNormalImportMode: 1 + normalSmoothingSource: 0 + referencedClips: [] + importAnimation: 1 + humanDescription: + serializedVersion: 3 + human: [] + skeleton: [] + armTwist: 0.5 + foreArmTwist: 0.5 + upperLegTwist: 0.5 + legTwist: 0.5 + armStretch: 0.05 + legStretch: 0.05 + feetSpacing: 0 + globalScale: 1 + rootMotionBoneName: + hasTranslationDoF: 0 + hasExtraRoot: 0 + skeletonHasParents: 1 + lastHumanDescriptionAvatarSource: {instanceID: 0} + autoGenerateAvatarMappingIfUnspecified: 1 + animationType: 2 + humanoidOversampling: 1 + avatarSetup: 0 + addHumanoidExtraRootOnlyWhenUsingAvatar: 1 + importBlendShapeDeformPercent: 1 + remapMaterialsIfMaterialImportModeIsNone: 0 + additionalBone: 0 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Basis/Packages/com.basis.tests/Interactable/HoverInteractSphere.cs b/Basis/Packages/com.basis.tests/Interactable/HoverInteractSphere.cs new file mode 100644 index 000000000..19965aa22 --- /dev/null +++ b/Basis/Packages/com.basis.tests/Interactable/HoverInteractSphere.cs @@ -0,0 +1,57 @@ +using UnityEngine; + +[RequireComponent(typeof(SphereCollider))] +public class HoverInteractSphere : MonoBehaviour +{ + + public InteractableObject HoverTarget; + public float TargetDistance = float.PositiveInfinity; + + public Vector3 TargetClosestPoint = Vector3.zero; + + private SphereCollider sphereColliderRef; + + void Start() + { + gameObject.TryGetComponent(out sphereColliderRef); + ResetTarget(); + } + + // trigger stay does our updating so we dont need to manage a list of everything in bounds + private void OnTriggerStay(Collider other) + { + if (sphereColliderRef != null && other.TryGetComponent(out InteractableObject otherInteractable)) + { + Vector3 otherClosestPoint = other.ClosestPoint(transform.position); + float otherDistance = Vector3.Distance(otherClosestPoint, transform.position); + + if (otherDistance < TargetDistance) + { + HoverTarget = otherInteractable; + TargetDistance = otherDistance; + TargetClosestPoint = otherClosestPoint; + } + else if (otherClosestPoint != TargetClosestPoint && otherInteractable.GetInstanceID() == HoverTarget.GetInstanceID()) + { + TargetClosestPoint = otherClosestPoint; + } + + } + } + + private void OnTriggerExit(Collider other) + { + // current target left + if (other.TryGetComponent(out InteractableObject otherInteractable) && HoverTarget.GetInstanceID() == otherInteractable.GetInstanceID()) + { + ResetTarget(); + } + } + + private void ResetTarget() + { + HoverTarget = null; + TargetClosestPoint = Vector3.zero; + TargetDistance = float.PositiveInfinity; + } +} diff --git a/Basis/Packages/com.basis.tests/Interactable/HoverInteractSphere.cs.meta b/Basis/Packages/com.basis.tests/Interactable/HoverInteractSphere.cs.meta new file mode 100644 index 000000000..7cf4bfa1d --- /dev/null +++ b/Basis/Packages/com.basis.tests/Interactable/HoverInteractSphere.cs.meta @@ -0,0 +1,2 @@ +fileFormatVersion: 2 +guid: 3a884ad730b96f24f97ffa68f7eadf7b \ No newline at end of file diff --git a/Basis/Packages/com.basis.tests/Interactable/InteractHighlight.shadergraph b/Basis/Packages/com.basis.tests/Interactable/InteractHighlight.shadergraph new file mode 100644 index 000000000..a6364c30d --- /dev/null +++ b/Basis/Packages/com.basis.tests/Interactable/InteractHighlight.shadergraph @@ -0,0 +1,2025 @@ +{ + "m_SGVersion": 3, + "m_Type": "UnityEditor.ShaderGraph.GraphData", + "m_ObjectId": "24178e3b619c409ba5af8e995a3ff58e", + "m_Properties": [ + { + "m_Id": "5a0cf8fed4e442518b233b107d41dbfb" + }, + { + "m_Id": "6db64f0dfa24487da403c01848ca8d8a" + } + ], + "m_Keywords": [], + "m_Dropdowns": [], + "m_CategoryData": [ + { + "m_Id": "b9a02ffd075d4883921b785c9dc6173f" + } + ], + "m_Nodes": [ + { + "m_Id": "aa70a8444ad54c97801626509d4672c8" + }, + { + "m_Id": "00646616da424d71aa995d3b5b41e53d" + }, + { + "m_Id": "2c18df3d0a164374863550ebe5659497" + }, + { + "m_Id": "0045b4bb0aa54a228f24691b6d7692a7" + }, + { + "m_Id": "0b8b40ceb9bb45a6a87dc8fd73b2e8e2" + }, + { + "m_Id": "f724885734b34456bc5ecbffadc7e27b" + }, + { + "m_Id": "19a0da1b0acb4aec9e7b61616aa4f359" + }, + { + "m_Id": "c9fa456953674f7b9b30fec251300483" + }, + { + "m_Id": "48e3a46a8b7e4e2aaa1e7b4b11c9c5fd" + }, + { + "m_Id": "df2189343b9344aaba0d2988d770d2f8" + }, + { + "m_Id": "58f1d33931b14a43873b8d0fd179635d" + }, + { + "m_Id": "71a6abc433ba4cbd8af4e528e1aca28c" + }, + { + "m_Id": "d6723e34908e4e8198582ca6017ca399" + }, + { + "m_Id": "141f5381aedd4df290c9ce5c42ac1e42" + }, + { + "m_Id": "a0d122a8143046d79fe1c34c2c02bb30" + }, + { + "m_Id": "6e3f7bb617734483affb6b19d3ac67fe" + }, + { + "m_Id": "a165003271a4463888fff41cdc8eaa9f" + } + ], + "m_GroupDatas": [ + { + "m_Id": "48302db8b2c044ffafa85b544efaba19" + } + ], + "m_StickyNoteDatas": [], + "m_Edges": [ + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "0b8b40ceb9bb45a6a87dc8fd73b2e8e2" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "0045b4bb0aa54a228f24691b6d7692a7" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "0b8b40ceb9bb45a6a87dc8fd73b2e8e2" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "df2189343b9344aaba0d2988d770d2f8" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "48e3a46a8b7e4e2aaa1e7b4b11c9c5fd" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "141f5381aedd4df290c9ce5c42ac1e42" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "58f1d33931b14a43873b8d0fd179635d" + }, + "m_SlotId": 3 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "71a6abc433ba4cbd8af4e528e1aca28c" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "6e3f7bb617734483affb6b19d3ac67fe" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "48e3a46a8b7e4e2aaa1e7b4b11c9c5fd" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "71a6abc433ba4cbd8af4e528e1aca28c" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "19a0da1b0acb4aec9e7b61616aa4f359" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "a0d122a8143046d79fe1c34c2c02bb30" + }, + "m_SlotId": 1 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "6e3f7bb617734483affb6b19d3ac67fe" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "a165003271a4463888fff41cdc8eaa9f" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "6e3f7bb617734483affb6b19d3ac67fe" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "c9fa456953674f7b9b30fec251300483" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "141f5381aedd4df290c9ce5c42ac1e42" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "d6723e34908e4e8198582ca6017ca399" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "48e3a46a8b7e4e2aaa1e7b4b11c9c5fd" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "df2189343b9344aaba0d2988d770d2f8" + }, + "m_SlotId": 4 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "71a6abc433ba4cbd8af4e528e1aca28c" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "f724885734b34456bc5ecbffadc7e27b" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "58f1d33931b14a43873b8d0fd179635d" + }, + "m_SlotId": 2 + } + } + ], + "m_VertexContext": { + "m_Position": { + "x": 1533.0, + "y": 30.99991798400879 + }, + "m_Blocks": [ + { + "m_Id": "aa70a8444ad54c97801626509d4672c8" + }, + { + "m_Id": "00646616da424d71aa995d3b5b41e53d" + }, + { + "m_Id": "2c18df3d0a164374863550ebe5659497" + } + ] + }, + "m_FragmentContext": { + "m_Position": { + "x": 1533.0, + "y": 230.99989318847657 + }, + "m_Blocks": [ + { + "m_Id": "0045b4bb0aa54a228f24691b6d7692a7" + }, + { + "m_Id": "19a0da1b0acb4aec9e7b61616aa4f359" + } + ] + }, + "m_PreviewData": { + "serializedMesh": { + "m_SerializedMesh": "{\"mesh\":{\"instanceID\":0}}", + "m_Guid": "" + }, + "preventRotation": false + }, + "m_Path": "Shader Graphs", + "m_GraphPrecision": 2, + "m_PreviewMode": 2, + "m_OutputNode": { + "m_Id": "" + }, + "m_SubDatas": [], + "m_ActiveTargets": [ + { + "m_Id": "289c6103f84f4b21b83bfe1cdfb7a19e" + } + ] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "0045b4bb0aa54a228f24691b6d7692a7", + "m_Group": { + "m_Id": "" + }, + "m_Name": "SurfaceDescription.BaseColor", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 0.0, + "y": 0.0, + "width": 0.0, + "height": 0.0 + } + }, + "m_Slots": [ + { + "m_Id": "e742abc384164d6a90d5ce778ea4f340" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "SurfaceDescription.BaseColor" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "00646616da424d71aa995d3b5b41e53d", + "m_Group": { + "m_Id": "" + }, + "m_Name": "VertexDescription.Normal", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 0.0, + "y": 0.0, + "width": 0.0, + "height": 0.0 + } + }, + "m_Slots": [ + { + "m_Id": "83f7ee22880944df8a5f7be5ab9d7497" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "VertexDescription.Normal" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "047e20f9649a4a64afb834571695fe1c", + "m_Id": 0, + "m_DisplayName": "Width", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "0b8b40ceb9bb45a6a87dc8fd73b2e8e2", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 814.0000610351563, + "y": 205.0000457763672, + "width": 105.0, + "height": 33.99995422363281 + } + }, + "m_Slots": [ + { + "m_Id": "29e2c9b5446d4242be3fde51e4603e98" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "5a0cf8fed4e442518b233b107d41dbfb" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "0da9a1f83cb54e9582f8fe88b7894be4", + "m_Id": 2, + "m_DisplayName": "Out", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.AddNode", + "m_ObjectId": "141f5381aedd4df290c9ce5c42ac1e42", + "m_Group": { + "m_Id": "48302db8b2c044ffafa85b544efaba19" + }, + "m_Name": "Add", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 1178.0001220703125, + "y": -143.00001525878907, + "width": 130.0, + "height": 117.99999237060547 + } + }, + "m_Slots": [ + { + "m_Id": "641e86955e1441b9a1c9ce46adc0e5e3" + }, + { + "m_Id": "1ba9cdceef64448c83c699272d167564" + }, + { + "m_Id": "0da9a1f83cb54e9582f8fe88b7894be4" + } + ], + "synonyms": [ + "addition", + "sum", + "plus" + ], + "m_Precision": 0, + "m_PreviewExpanded": false, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "19a0da1b0acb4aec9e7b61616aa4f359", + "m_Group": { + "m_Id": "" + }, + "m_Name": "SurfaceDescription.Alpha", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 0.0, + "y": 0.0, + "width": 0.0, + "height": 0.0 + } + }, + "m_Slots": [ + { + "m_Id": "5ea768fcc7cf4d64a22773cf54bfdd1e" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "SurfaceDescription.Alpha" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "1ba9cdceef64448c83c699272d167564", + "m_Id": 1, + "m_DisplayName": "B", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "B", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 1, + "m_Type": "UnityEditor.Rendering.Universal.ShaderGraph.UniversalTarget", + "m_ObjectId": "289c6103f84f4b21b83bfe1cdfb7a19e", + "m_Datas": [], + "m_ActiveSubTarget": { + "m_Id": "776a6281de414e6195880b4c3e96eb39" + }, + "m_AllowMaterialOverride": false, + "m_SurfaceType": 1, + "m_ZTestMode": 8, + "m_ZWriteControl": 0, + "m_AlphaMode": 0, + "m_RenderFace": 2, + "m_AlphaClip": false, + "m_CastShadows": false, + "m_ReceiveShadows": true, + "m_DisableTint": false, + "m_AdditionalMotionVectorMode": 0, + "m_AlembicMotionVectors": false, + "m_SupportsLODCrossFade": false, + "m_CustomEditorGUI": "", + "m_SupportVFX": false +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot", + "m_ObjectId": "29e2c9b5446d4242be3fde51e4603e98", + "m_Id": 0, + "m_DisplayName": "Color", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "2c18df3d0a164374863550ebe5659497", + "m_Group": { + "m_Id": "" + }, + "m_Name": "VertexDescription.Tangent", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 0.0, + "y": 0.0, + "width": 0.0, + "height": 0.0 + } + }, + "m_Slots": [ + { + "m_Id": "a06f723e84cb434990aebb715dd4f925" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "VertexDescription.Tangent" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "2e6da53f642b43a9a3f5d3f60162b41b", + "m_Id": 1, + "m_DisplayName": "B", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "B", + "m_StageCapability": 3, + "m_Value": { + "e00": 2.0, + "e01": 2.0, + "e02": 2.0, + "e03": 2.0, + "e10": 2.0, + "e11": 2.0, + "e12": 2.0, + "e13": 2.0, + "e20": 2.0, + "e21": 2.0, + "e22": 2.0, + "e23": 2.0, + "e30": 2.0, + "e31": 2.0, + "e32": 2.0, + "e33": 2.0 + }, + "m_DefaultValue": { + "e00": 1.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 1.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 1.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "2ffd7441d64b43faa9557a30fc4d3c4d", + "m_Id": 2, + "m_DisplayName": "Out", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "e00": 0.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 0.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 0.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 0.0 + }, + "m_DefaultValue": { + "e00": 1.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 1.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 1.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "31ebe12ff2194be6a6fd5d51c85e2605", + "m_Id": 1, + "m_DisplayName": "B", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "B", + "m_StageCapability": 3, + "m_Value": { + "e00": 2.0, + "e01": 2.0, + "e02": 2.0, + "e03": 2.0, + "e10": 2.0, + "e11": 2.0, + "e12": 2.0, + "e13": 2.0, + "e20": 2.0, + "e21": 2.0, + "e22": 2.0, + "e23": 2.0, + "e30": 2.0, + "e31": 2.0, + "e32": 2.0, + "e33": 2.0 + }, + "m_DefaultValue": { + "e00": 1.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 1.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 1.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "33ccc628a43f47ec9901950fc5fb92f5", + "m_Id": 2, + "m_DisplayName": "Power", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Power", + "m_StageCapability": 3, + "m_Value": 1.2999999523162842, + "m_DefaultValue": 1.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "38563bebaeea4ad587a4e312a5eadb41", + "m_Id": 1, + "m_DisplayName": "X", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "X", + "m_StageCapability": 3, + "m_Value": -0.019999999552965165, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.GroupData", + "m_ObjectId": "48302db8b2c044ffafa85b544efaba19", + "m_Title": "Hull outline", + "m_Position": { + "x": 713.0, + "y": -678.0000610351563 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.MultiplyNode", + "m_ObjectId": "48e3a46a8b7e4e2aaa1e7b4b11c9c5fd", + "m_Group": { + "m_Id": "48302db8b2c044ffafa85b544efaba19" + }, + "m_Name": "Multiply", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 1063.0001220703125, + "y": -357.0000915527344, + "width": 130.0, + "height": 118.00004577636719 + } + }, + "m_Slots": [ + { + "m_Id": "c2d67fbe186143b58663b815b16b91c6" + }, + { + "m_Id": "2e6da53f642b43a9a3f5d3f60162b41b" + }, + { + "m_Id": "2ffd7441d64b43faa9557a30fc4d3c4d" + } + ], + "synonyms": [ + "multiplication", + "times", + "x" + ], + "m_Precision": 0, + "m_PreviewExpanded": false, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "50611e80b3c740efb342f75cfc65d715", + "m_Id": 0, + "m_DisplayName": "A", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "A", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.FresnelNode", + "m_ObjectId": "58f1d33931b14a43873b8d0fd179635d", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Fresnel Effect", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 905.0, + "y": 430.9999694824219, + "width": 208.0, + "height": 326.0000305175781 + } + }, + "m_Slots": [ + { + "m_Id": "7b69af79630b4723a57ddbfe3490bebe" + }, + { + "m_Id": "6827f14cebb6456d805e8fa369b0d02e" + }, + { + "m_Id": "33ccc628a43f47ec9901950fc5fb92f5" + }, + { + "m_Id": "6f7e8bea81384d57a27aadfdd0f0282d" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 2, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 3, + "m_Type": "UnityEditor.ShaderGraph.Internal.ColorShaderProperty", + "m_ObjectId": "5a0cf8fed4e442518b233b107d41dbfb", + "m_Guid": { + "m_GuidSerialized": "cbb89e2d-72df-4a75-b35e-22f2383bde52" + }, + "m_Name": "Color", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "Color", + "m_DefaultReferenceName": "_Color", + "m_OverrideReferenceName": "", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_DismissedVersion": 0, + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 0, + "m_Hidden": false, + "m_Value": { + "r": 0.780482292175293, + "g": 0.0, + "b": 1.0, + "a": 1.0 + }, + "isMainColor": false, + "m_ColorMode": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "5ea768fcc7cf4d64a22773cf54bfdd1e", + "m_Id": 0, + "m_DisplayName": "Alpha", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Alpha", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 1.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "5fa05c7871f84ac68a708e2ef1c8ebd5", + "m_Id": 2, + "m_DisplayName": "Out", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PositionMaterialSlot", + "m_ObjectId": "60ed100e0ca0432296299a420bf6dad6", + "m_Id": 0, + "m_DisplayName": "Position", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Position", + "m_StageCapability": 1, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [], + "m_Space": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot", + "m_ObjectId": "6182722386ab40529de3979bed1070c4", + "m_Id": 0, + "m_DisplayName": "Out", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 1.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 1.0 + }, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "641e86955e1441b9a1c9ce46adc0e5e3", + "m_Id": 0, + "m_DisplayName": "A", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "A", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.ViewDirectionMaterialSlot", + "m_ObjectId": "6827f14cebb6456d805e8fa369b0d02e", + "m_Id": 1, + "m_DisplayName": "View Dir", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "ViewDir", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [], + "m_Space": 2 +} + +{ + "m_SGVersion": 1, + "m_Type": "UnityEditor.ShaderGraph.Internal.Vector1ShaderProperty", + "m_ObjectId": "6db64f0dfa24487da403c01848ca8d8a", + "m_Guid": { + "m_GuidSerialized": "1d60dacd-fd05-4b2c-b3fd-c721b3103d03" + }, + "m_Name": "Width", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "Width", + "m_DefaultReferenceName": "_Width", + "m_OverrideReferenceName": "", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_DismissedVersion": 0, + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 0, + "m_Hidden": false, + "m_Value": 0.009999999776482582, + "m_FloatType": 0, + "m_RangeValues": { + "x": 0.0, + "y": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DivideNode", + "m_ObjectId": "6e3f7bb617734483affb6b19d3ac67fe", + "m_Group": { + "m_Id": "48302db8b2c044ffafa85b544efaba19" + }, + "m_Name": "Divide", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 959.0000610351563, + "y": -520.0000610351563, + "width": 130.00006103515626, + "height": 118.0 + } + }, + "m_Slots": [ + { + "m_Id": "50611e80b3c740efb342f75cfc65d715" + }, + { + "m_Id": "98faa4dc67aa4d8bae43eaa74dd3fb82" + }, + { + "m_Id": "5fa05c7871f84ac68a708e2ef1c8ebd5" + } + ], + "synonyms": [ + "division", + "divided by" + ], + "m_Precision": 0, + "m_PreviewExpanded": false, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "6f7e8bea81384d57a27aadfdd0f0282d", + "m_Id": 3, + "m_DisplayName": "Out", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.MultiplyNode", + "m_ObjectId": "71a6abc433ba4cbd8af4e528e1aca28c", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Multiply", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 1193.9998779296875, + "y": 314.9999694824219, + "width": 208.0001220703125, + "height": 301.9999694824219 + } + }, + "m_Slots": [ + { + "m_Id": "72486c457ae942d7a962137eed0080d0" + }, + { + "m_Id": "31ebe12ff2194be6a6fd5d51c85e2605" + }, + { + "m_Id": "798ac34bf49f4f4f8e39292e976c959b" + } + ], + "synonyms": [ + "multiplication", + "times", + "x" + ], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "72486c457ae942d7a962137eed0080d0", + "m_Id": 0, + "m_DisplayName": "A", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "A", + "m_StageCapability": 3, + "m_Value": { + "e00": 0.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 0.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 0.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 0.0 + }, + "m_DefaultValue": { + "e00": 1.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 1.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 1.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 1.0 + } +} + +{ + "m_SGVersion": 2, + "m_Type": "UnityEditor.Rendering.Universal.ShaderGraph.UniversalUnlitSubTarget", + "m_ObjectId": "776a6281de414e6195880b4c3e96eb39" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "777a27eb3e174b12be9a69e6a21d7143", + "m_Id": 4, + "m_DisplayName": "A", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "A", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "798ac34bf49f4f4f8e39292e976c959b", + "m_Id": 2, + "m_DisplayName": "Out", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "e00": 0.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 0.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 0.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 0.0 + }, + "m_DefaultValue": { + "e00": 1.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 1.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 1.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.NormalMaterialSlot", + "m_ObjectId": "7b69af79630b4723a57ddbfe3490bebe", + "m_Id": 0, + "m_DisplayName": "Normal", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Normal", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [], + "m_Space": 2 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot", + "m_ObjectId": "7ce8d796579f4387a9cddbe483703319", + "m_Id": 1, + "m_DisplayName": "Scale", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Scale", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.NormalMaterialSlot", + "m_ObjectId": "83f7ee22880944df8a5f7be5ab9d7497", + "m_Id": 0, + "m_DisplayName": "Normal", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Normal", + "m_StageCapability": 1, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [], + "m_Space": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot", + "m_ObjectId": "8ac15509280f437aa69f78d7666c8c14", + "m_Id": 3, + "m_DisplayName": "World Bounds Max", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "World Bounds Max", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "98faa4dc67aa4d8bae43eaa74dd3fb82", + "m_Id": 1, + "m_DisplayName": "B", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "B", + "m_StageCapability": 3, + "m_Value": { + "x": 2.0, + "y": 2.0, + "z": 2.0, + "w": 2.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "9af237f5943e41ad81c2a6af4ab0a6fd", + "m_Id": 0, + "m_DisplayName": "Out", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "a01a7718c9b9460bb09f884f8f0dab73", + "m_Id": 1, + "m_DisplayName": "R", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "R", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.TangentMaterialSlot", + "m_ObjectId": "a06f723e84cb434990aebb715dd4f925", + "m_Id": 0, + "m_DisplayName": "Tangent", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Tangent", + "m_StageCapability": 1, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [], + "m_Space": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.ObjectNode", + "m_ObjectId": "a0d122a8143046d79fe1c34c2c02bb30", + "m_Group": { + "m_Id": "48302db8b2c044ffafa85b544efaba19" + }, + "m_Name": "Object", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 738.0000610351563, + "y": -581.0, + "width": 153.0, + "height": 173.0 + } + }, + "m_Slots": [ + { + "m_Id": "f4f29d72f3e44c6594082fa7bd2ddfca" + }, + { + "m_Id": "7ce8d796579f4387a9cddbe483703319" + }, + { + "m_Id": "f0955bb806ea4dde9da12d72d6ee3dcb" + }, + { + "m_Id": "8ac15509280f437aa69f78d7666c8c14" + }, + { + "m_Id": "e1fd490fbdf64a48a1caba66f41f296a" + } + ], + "synonyms": [ + "position", + "scale", + "bounds", + "size" + ], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1Node", + "m_ObjectId": "a165003271a4463888fff41cdc8eaa9f", + "m_Group": { + "m_Id": "48302db8b2c044ffafa85b544efaba19" + }, + "m_Name": "Float", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 963.0, + "y": -619.0, + "width": 126.0, + "height": 77.0 + } + }, + "m_Slots": [ + { + "m_Id": "38563bebaeea4ad587a4e312a5eadb41" + }, + { + "m_Id": "9af237f5943e41ad81c2a6af4ab0a6fd" + } + ], + "synonyms": [ + "Vector 1", + "1", + "v1", + "vec1", + "scalar" + ], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Value": 0.0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "aa70a8444ad54c97801626509d4672c8", + "m_Group": { + "m_Id": "" + }, + "m_Name": "VertexDescription.Position", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 0.0, + "y": 0.0, + "width": 0.0, + "height": 0.0 + } + }, + "m_Slots": [ + { + "m_Id": "60ed100e0ca0432296299a420bf6dad6" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "VertexDescription.Position" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot", + "m_ObjectId": "adac06db9efe4c7d871c37256eb90cb0", + "m_Id": 0, + "m_DisplayName": "Out", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.CategoryData", + "m_ObjectId": "b9a02ffd075d4883921b785c9dc6173f", + "m_Name": "", + "m_ChildObjectList": [ + { + "m_Id": "5a0cf8fed4e442518b233b107d41dbfb" + }, + { + "m_Id": "6db64f0dfa24487da403c01848ca8d8a" + } + ] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "c06d1128a51c417d96b0f3ac1c3a7010", + "m_Id": 3, + "m_DisplayName": "B", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "B", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "c2d67fbe186143b58663b815b16b91c6", + "m_Id": 0, + "m_DisplayName": "A", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "A", + "m_StageCapability": 3, + "m_Value": { + "e00": 0.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 0.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 0.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 0.0 + }, + "m_DefaultValue": { + "e00": 1.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 1.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 1.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 1.0 + } +} + +{ + "m_SGVersion": 1, + "m_Type": "UnityEditor.ShaderGraph.PositionNode", + "m_ObjectId": "c9fa456953674f7b9b30fec251300483", + "m_Group": { + "m_Id": "48302db8b2c044ffafa85b544efaba19" + }, + "m_Name": "Position", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 936.0000610351563, + "y": -143.0000457763672, + "width": 206.00006103515626, + "height": 131.00006103515626 + } + }, + "m_Slots": [ + { + "m_Id": "adac06db9efe4c7d871c37256eb90cb0" + } + ], + "synonyms": [ + "location" + ], + "m_Precision": 1, + "m_PreviewExpanded": false, + "m_DismissedVersion": 0, + "m_PreviewMode": 2, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Space": 0, + "m_PositionSource": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.NormalVectorNode", + "m_ObjectId": "d6723e34908e4e8198582ca6017ca399", + "m_Group": { + "m_Id": "48302db8b2c044ffafa85b544efaba19" + }, + "m_Name": "Normal Vector", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 816.0000610351563, + "y": -357.00006103515627, + "width": 206.0, + "height": 131.00001525878907 + } + }, + "m_Slots": [ + { + "m_Id": "6182722386ab40529de3979bed1070c4" + } + ], + "synonyms": [ + "surface direction" + ], + "m_Precision": 0, + "m_PreviewExpanded": false, + "m_DismissedVersion": 0, + "m_PreviewMode": 2, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Space": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "d76032fdc6ca4f418d2c40c8c4355234", + "m_Id": 2, + "m_DisplayName": "G", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "G", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.SplitNode", + "m_ObjectId": "df2189343b9344aaba0d2988d770d2f8", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Split", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 993.0000610351563, + "y": 262.9999694824219, + "width": 119.99993896484375, + "height": 149.00003051757813 + } + }, + "m_Slots": [ + { + "m_Id": "ec6579601ae54e9386fab477bc3cffa4" + }, + { + "m_Id": "a01a7718c9b9460bb09f884f8f0dab73" + }, + { + "m_Id": "d76032fdc6ca4f418d2c40c8c4355234" + }, + { + "m_Id": "c06d1128a51c417d96b0f3ac1c3a7010" + }, + { + "m_Id": "777a27eb3e174b12be9a69e6a21d7143" + } + ], + "synonyms": [ + "separate" + ], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot", + "m_ObjectId": "e1fd490fbdf64a48a1caba66f41f296a", + "m_Id": 4, + "m_DisplayName": "Bounds Size", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Bounds Size", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.ColorRGBMaterialSlot", + "m_ObjectId": "e742abc384164d6a90d5ce778ea4f340", + "m_Id": 0, + "m_DisplayName": "Base Color", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "BaseColor", + "m_StageCapability": 2, + "m_Value": { + "x": 0.5, + "y": 0.5, + "z": 0.5 + }, + "m_DefaultValue": { + "x": 0.5, + "y": 0.5, + "z": 0.5 + }, + "m_Labels": [], + "m_ColorMode": 0, + "m_DefaultColor": { + "r": 0.5, + "g": 0.5, + "b": 0.5, + "a": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "ec6579601ae54e9386fab477bc3cffa4", + "m_Id": 0, + "m_DisplayName": "In", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "In", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot", + "m_ObjectId": "f0955bb806ea4dde9da12d72d6ee3dcb", + "m_Id": 2, + "m_DisplayName": "World Bounds Min", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "World Bounds Min", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector3MaterialSlot", + "m_ObjectId": "f4f29d72f3e44c6594082fa7bd2ddfca", + "m_Id": 0, + "m_DisplayName": "Position", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Position", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "f724885734b34456bc5ecbffadc7e27b", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 661.9999389648438, + "y": 523.0, + "width": 106.00006103515625, + "height": 34.0 + } + }, + "m_Slots": [ + { + "m_Id": "047e20f9649a4a64afb834571695fe1c" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "6db64f0dfa24487da403c01848ca8d8a" + } +} + diff --git a/Basis/Packages/com.basis.tests/Interactable/InteractHighlight.shadergraph.meta b/Basis/Packages/com.basis.tests/Interactable/InteractHighlight.shadergraph.meta new file mode 100644 index 000000000..dc73a7772 --- /dev/null +++ b/Basis/Packages/com.basis.tests/Interactable/InteractHighlight.shadergraph.meta @@ -0,0 +1,10 @@ +fileFormatVersion: 2 +guid: f48c63fe2adbd5f42ac2cdc7b14e9240 +ScriptedImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 2 + userData: + assetBundleName: + assetBundleVariant: + script: {fileID: 11500000, guid: 625f186215c104763be7675aa2d941aa, type: 3} diff --git a/Basis/Packages/com.basis.tests/Interactable/InteractHighlightMat.mat b/Basis/Packages/com.basis.tests/Interactable/InteractHighlightMat.mat new file mode 100644 index 000000000..a9a423889 --- /dev/null +++ b/Basis/Packages/com.basis.tests/Interactable/InteractHighlightMat.mat @@ -0,0 +1,141 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!114 &-1036471816351513866 +MonoBehaviour: + m_ObjectHideFlags: 11 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: d0353a89b1f911e48b9e16bdc9f2e058, type: 3} + m_Name: + m_EditorClassIdentifier: + version: 9 +--- !u!21 &2100000 +Material: + serializedVersion: 8 + m_ObjectHideFlags: 32 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_Name: InteractHighlightMat + m_Shader: {fileID: -6465566751694194690, guid: f48c63fe2adbd5f42ac2cdc7b14e9240, type: 3} + m_Parent: {fileID: 0} + m_ModifiedSerializedProperties: 0 + m_ValidKeywords: [] + m_InvalidKeywords: [] + m_LightmapFlags: 4 + m_EnableInstancingVariants: 0 + m_DoubleSidedGI: 0 + m_CustomRenderQueue: 3000 + stringTagMap: {} + disabledShaderPasses: + - MOTIONVECTORS + m_LockedProperties: + m_SavedProperties: + serializedVersion: 3 + m_TexEnvs: + - _BaseMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _BumpMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailAlbedoMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailMask: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailNormalMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _EmissionMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _MainTex: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _MetallicGlossMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _OcclusionMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _ParallaxMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _SpecGlossMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - unity_Lightmaps: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - unity_LightmapsInd: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - unity_ShadowMasks: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + m_Ints: [] + m_Floats: + - _AddPrecomputedVelocity: 0 + - _AlphaClip: 1 + - _AlphaToMask: 1 + - _Blend: 0 + - _BlendModePreserveSpecular: 1 + - _BumpScale: 1 + - _CastShadows: 0 + - _ClearCoatMask: 0 + - _ClearCoatSmoothness: 0 + - _Cull: 2 + - _Cutoff: 0.5 + - _DetailAlbedoMapScale: 1 + - _DetailNormalMapScale: 1 + - _DstBlend: 0 + - _DstBlendAlpha: 0 + - _EnvironmentReflections: 1 + - _GlossMapScale: 0 + - _Glossiness: 0 + - _GlossyReflections: 0 + - _Metallic: 0 + - _OcclusionStrength: 1 + - _Offset: -0.03 + - _Parallax: 0.005 + - _QueueControl: 0 + - _QueueOffset: 0 + - _ReceiveShadows: 1 + - _Smoothness: 0.5 + - _SmoothnessTextureChannel: 0 + - _SpecularHighlights: 1 + - _SrcBlend: 1 + - _SrcBlendAlpha: 1 + - _Surface: 0 + - _Width: 0.32 + - _WorkflowMode: 1 + - _ZTest: 4 + - _ZWrite: 1 + - _ZWriteControl: 0 + m_Colors: + - _BaseColor: {r: 1, g: 1, b: 1, a: 1} + - _Color: {r: 0.050980344, g: 0.737255, b: 0.92156863, a: 0.4745098} + - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} + - _SpecColor: {r: 0.19999996, g: 0.19999996, b: 0.19999996, a: 1} + m_BuildTextureStacks: [] + m_AllowLocking: 1 diff --git a/Basis/Packages/com.basis.tests/Interactable/InteractHighlightMat.mat.meta b/Basis/Packages/com.basis.tests/Interactable/InteractHighlightMat.mat.meta new file mode 100644 index 000000000..53df2ed81 --- /dev/null +++ b/Basis/Packages/com.basis.tests/Interactable/InteractHighlightMat.mat.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: b6f3b6b3289267c46b6d4d469fd25e44 +NativeFormatImporter: + externalObjects: {} + mainObjectFileID: 2100000 + userData: + assetBundleName: + assetBundleVariant: diff --git a/Basis/Packages/com.basis.tests/Interactable/InteractLine.shadergraph b/Basis/Packages/com.basis.tests/Interactable/InteractLine.shadergraph new file mode 100644 index 000000000..d566ac125 --- /dev/null +++ b/Basis/Packages/com.basis.tests/Interactable/InteractLine.shadergraph @@ -0,0 +1,6319 @@ +{ + "m_SGVersion": 3, + "m_Type": "UnityEditor.ShaderGraph.GraphData", + "m_ObjectId": "2e2c5da712504c89ad21525c3ea2f9e3", + "m_Properties": [ + { + "m_Id": "ea3daf489a884e4db8847af6486f73be" + }, + { + "m_Id": "ce7f5f8af25a41cdb508090d0e445ec2" + }, + { + "m_Id": "2c17e30d0b9f4ea4979256695245f49c" + }, + { + "m_Id": "1853b5e812264c16957c12c706a5fd54" + }, + { + "m_Id": "3f0c5d56334a4d439fd527663f89ae0d" + } + ], + "m_Keywords": [], + "m_Dropdowns": [], + "m_CategoryData": [ + { + "m_Id": "cad4a7131d7140cb9acb4987ea941b3c" + } + ], + "m_Nodes": [ + { + "m_Id": "d729de14f3084f129b7493720ed2f065" + }, + { + "m_Id": "d6ebc8c6b0f54819a49c1508c2e60d7c" + }, + { + "m_Id": "a4ae2d542f64463ebf5a6fa5102e55de" + }, + { + "m_Id": "d5413cfa3871469f98f3d0b080d7f48b" + }, + { + "m_Id": "0ecf86d3fe2f460bb5fd298d4dd3d181" + }, + { + "m_Id": "6f4bafd523e34167985d03b95a29bf62" + }, + { + "m_Id": "64e11561f26642ea8431a72c38a09c53" + }, + { + "m_Id": "dc555053d4ef46faba56660ee3dc2b89" + }, + { + "m_Id": "8433ffd9392f4ce4bad76d5a18487a3e" + }, + { + "m_Id": "0883074e90a14b5589a65c5f941784ac" + }, + { + "m_Id": "9c33ddf46a6141798f5ad3085aed5aea" + }, + { + "m_Id": "123586bce2964273abd7c98869177938" + }, + { + "m_Id": "002eabb0ca914b16b87a6ab7d682046c" + }, + { + "m_Id": "3a8403890885494db5130ce5d73cde8c" + }, + { + "m_Id": "46e133bec24b469db5f01e054b006af8" + }, + { + "m_Id": "8e6282bfe0684035b164a795f5bf9cca" + }, + { + "m_Id": "66ccae0015b94cc5ac930b794ebc18cc" + }, + { + "m_Id": "73b832bf20b141789929609fad16130a" + }, + { + "m_Id": "c925c9dbe5ac4216bef589841dffa211" + }, + { + "m_Id": "b99506308b6446c3a5be9fcd3ca35f6c" + }, + { + "m_Id": "91db68fb6df74bf9b061178392a599bf" + }, + { + "m_Id": "d83e47053fc249deb9d58dd581eb2e72" + }, + { + "m_Id": "ea0acf00e13e4a89a84fd8fa2a2d3fd7" + }, + { + "m_Id": "135a8f76ac6c4bcba3b8e786149d1a38" + }, + { + "m_Id": "3cdb52dfc1674217ad4b524826239955" + }, + { + "m_Id": "d88118facb9d42028dade61a5f92f5b9" + }, + { + "m_Id": "0dfa9889623e4d9182df4952015bd50e" + }, + { + "m_Id": "e61959c42e334b9cb8aa259e4d2e92a4" + }, + { + "m_Id": "f96200a993224f34b89384672ab2a406" + }, + { + "m_Id": "d19dff7bdb784ca88120af0c21c653d8" + }, + { + "m_Id": "1e56fc25cffc4d8283cdfa5fa5735836" + }, + { + "m_Id": "a14694d31e4d4d3d9af9dd576731b857" + }, + { + "m_Id": "e772ed579737453c95d535b0693594dc" + }, + { + "m_Id": "ddfd4767fad641168e5cd912b765aae7" + }, + { + "m_Id": "26ff32922ab6496ba9aaa9270ca4ad67" + }, + { + "m_Id": "49108af83b0e4362afca8cd107aec1af" + }, + { + "m_Id": "490aaa97148d4b7d885f7f45c30463e3" + }, + { + "m_Id": "8ee643a81f224cf2a1d9c6b3d6cb2746" + }, + { + "m_Id": "d2f1a889adfa41d4bf98e3b5202b9be2" + }, + { + "m_Id": "836abdcaa6784027945bf8d6b3b4d6f3" + }, + { + "m_Id": "0056c99569de4714b6268c611bc7b287" + }, + { + "m_Id": "4768888ad1974e32a29add1a0d21dc57" + }, + { + "m_Id": "d45a2fbee5344b9c87dc031b8e4906d0" + }, + { + "m_Id": "1518a9cb0c754a1996c1b8eee6ca81bf" + }, + { + "m_Id": "24dc1da5391a4fdbb0e1814ca67dcb2c" + }, + { + "m_Id": "9384461bcf474a62bd8f8d1347d83b5a" + } + ], + "m_GroupDatas": [], + "m_StickyNoteDatas": [], + "m_Edges": [ + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "002eabb0ca914b16b87a6ab7d682046c" + }, + "m_SlotId": 3 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "26ff32922ab6496ba9aaa9270ca4ad67" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "002eabb0ca914b16b87a6ab7d682046c" + }, + "m_SlotId": 3 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "dc555053d4ef46faba56660ee3dc2b89" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "0056c99569de4714b6268c611bc7b287" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "4768888ad1974e32a29add1a0d21dc57" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "0883074e90a14b5589a65c5f941784ac" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "9c33ddf46a6141798f5ad3085aed5aea" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "0dfa9889623e4d9182df4952015bd50e" + }, + "m_SlotId": 3 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "e61959c42e334b9cb8aa259e4d2e92a4" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "0ecf86d3fe2f460bb5fd298d4dd3d181" + }, + "m_SlotId": 1 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "91db68fb6df74bf9b061178392a599bf" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "135a8f76ac6c4bcba3b8e786149d1a38" + }, + "m_SlotId": 1 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "3cdb52dfc1674217ad4b524826239955" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "1518a9cb0c754a1996c1b8eee6ca81bf" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "c925c9dbe5ac4216bef589841dffa211" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "1e56fc25cffc4d8283cdfa5fa5735836" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "a14694d31e4d4d3d9af9dd576731b857" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "24dc1da5391a4fdbb0e1814ca67dcb2c" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "0056c99569de4714b6268c611bc7b287" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "26ff32922ab6496ba9aaa9270ca4ad67" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "49108af83b0e4362afca8cd107aec1af" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "3a8403890885494db5130ce5d73cde8c" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "002eabb0ca914b16b87a6ab7d682046c" + }, + "m_SlotId": 2 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "3cdb52dfc1674217ad4b524826239955" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "4768888ad1974e32a29add1a0d21dc57" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "46e133bec24b469db5f01e054b006af8" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "66ccae0015b94cc5ac930b794ebc18cc" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "4768888ad1974e32a29add1a0d21dc57" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "d88118facb9d42028dade61a5f92f5b9" + }, + "m_SlotId": 2 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "490aaa97148d4b7d885f7f45c30463e3" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "dc555053d4ef46faba56660ee3dc2b89" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "49108af83b0e4362afca8cd107aec1af" + }, + "m_SlotId": 1 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "8ee643a81f224cf2a1d9c6b3d6cb2746" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "64e11561f26642ea8431a72c38a09c53" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "9384461bcf474a62bd8f8d1347d83b5a" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "64e11561f26642ea8431a72c38a09c53" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "b99506308b6446c3a5be9fcd3ca35f6c" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "66ccae0015b94cc5ac930b794ebc18cc" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "8e6282bfe0684035b164a795f5bf9cca" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "6f4bafd523e34167985d03b95a29bf62" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "8e6282bfe0684035b164a795f5bf9cca" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "836abdcaa6784027945bf8d6b3b4d6f3" + }, + "m_SlotId": 1 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "0056c99569de4714b6268c611bc7b287" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "8433ffd9392f4ce4bad76d5a18487a3e" + }, + "m_SlotId": 1 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "0ecf86d3fe2f460bb5fd298d4dd3d181" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "8e6282bfe0684035b164a795f5bf9cca" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "3a8403890885494db5130ce5d73cde8c" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "8ee643a81f224cf2a1d9c6b3d6cb2746" + }, + "m_SlotId": 1 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "d2f1a889adfa41d4bf98e3b5202b9be2" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "91db68fb6df74bf9b061178392a599bf" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "135a8f76ac6c4bcba3b8e786149d1a38" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "9384461bcf474a62bd8f8d1347d83b5a" + }, + "m_SlotId": 1 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "26ff32922ab6496ba9aaa9270ca4ad67" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "9384461bcf474a62bd8f8d1347d83b5a" + }, + "m_SlotId": 1 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "490aaa97148d4b7d885f7f45c30463e3" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "9c33ddf46a6141798f5ad3085aed5aea" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "d5413cfa3871469f98f3d0b080d7f48b" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "a14694d31e4d4d3d9af9dd576731b857" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "e772ed579737453c95d535b0693594dc" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "b99506308b6446c3a5be9fcd3ca35f6c" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "c925c9dbe5ac4216bef589841dffa211" + }, + "m_SlotId": 2 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "c925c9dbe5ac4216bef589841dffa211" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "002eabb0ca914b16b87a6ab7d682046c" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "d19dff7bdb784ca88120af0c21c653d8" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "ddfd4767fad641168e5cd912b765aae7" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "d2f1a889adfa41d4bf98e3b5202b9be2" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "836abdcaa6784027945bf8d6b3b4d6f3" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "d45a2fbee5344b9c87dc031b8e4906d0" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "d2f1a889adfa41d4bf98e3b5202b9be2" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "d83e47053fc249deb9d58dd581eb2e72" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "ea0acf00e13e4a89a84fd8fa2a2d3fd7" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "d88118facb9d42028dade61a5f92f5b9" + }, + "m_SlotId": 0 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "e61959c42e334b9cb8aa259e4d2e92a4" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "dc555053d4ef46faba56660ee3dc2b89" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "8433ffd9392f4ce4bad76d5a18487a3e" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "ddfd4767fad641168e5cd912b765aae7" + }, + "m_SlotId": 1 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "123586bce2964273abd7c98869177938" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "ddfd4767fad641168e5cd912b765aae7" + }, + "m_SlotId": 1 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "9c33ddf46a6141798f5ad3085aed5aea" + }, + "m_SlotId": 1 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "e61959c42e334b9cb8aa259e4d2e92a4" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "f96200a993224f34b89384672ab2a406" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "e772ed579737453c95d535b0693594dc" + }, + "m_SlotId": 1 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "d19dff7bdb784ca88120af0c21c653d8" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "ea0acf00e13e4a89a84fd8fa2a2d3fd7" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "91db68fb6df74bf9b061178392a599bf" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "ea0acf00e13e4a89a84fd8fa2a2d3fd7" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "d45a2fbee5344b9c87dc031b8e4906d0" + }, + "m_SlotId": 0 + } + }, + { + "m_OutputSlot": { + "m_Node": { + "m_Id": "f96200a993224f34b89384672ab2a406" + }, + "m_SlotId": 2 + }, + "m_InputSlot": { + "m_Node": { + "m_Id": "a14694d31e4d4d3d9af9dd576731b857" + }, + "m_SlotId": 1 + } + } + ], + "m_VertexContext": { + "m_Position": { + "x": 888.0001220703125, + "y": -28.999998092651368 + }, + "m_Blocks": [ + { + "m_Id": "d729de14f3084f129b7493720ed2f065" + }, + { + "m_Id": "d6ebc8c6b0f54819a49c1508c2e60d7c" + }, + { + "m_Id": "a4ae2d542f64463ebf5a6fa5102e55de" + } + ] + }, + "m_FragmentContext": { + "m_Position": { + "x": 888.0001220703125, + "y": 171.00001525878907 + }, + "m_Blocks": [ + { + "m_Id": "123586bce2964273abd7c98869177938" + }, + { + "m_Id": "d5413cfa3871469f98f3d0b080d7f48b" + }, + { + "m_Id": "73b832bf20b141789929609fad16130a" + } + ] + }, + "m_PreviewData": { + "serializedMesh": { + "m_SerializedMesh": "{\"mesh\":{\"instanceID\":0}}", + "m_Guid": "" + }, + "preventRotation": false + }, + "m_Path": "Shader Graphs", + "m_GraphPrecision": 2, + "m_PreviewMode": 2, + "m_OutputNode": { + "m_Id": "" + }, + "m_SubDatas": [], + "m_ActiveTargets": [ + { + "m_Id": "726c3949731c4b088dee2eb2d5d2a166" + } + ] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.TilingAndOffsetNode", + "m_ObjectId": "002eabb0ca914b16b87a6ab7d682046c", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Tiling And Offset", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -3349.999755859375, + "y": 39.00001525878906, + "width": 208.0, + "height": 326.0 + } + }, + "m_Slots": [ + { + "m_Id": "7b8656e701804ca7a521328cf748fc43" + }, + { + "m_Id": "016f8f39c7b849c980536066bdc0edcc" + }, + { + "m_Id": "f0f27f13ef214317af0c3ee400948661" + }, + { + "m_Id": "e4761135ee44453c939b06e505385f62" + } + ], + "synonyms": [ + "pan", + "scale" + ], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.MultiplyNode", + "m_ObjectId": "0056c99569de4714b6268c611bc7b287", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Multiply", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -1276.0, + "y": 537.0000610351563, + "width": 126.0, + "height": 117.99993896484375 + } + }, + "m_Slots": [ + { + "m_Id": "45bc76fa7e3b4c0a98204fb4c923e6f2" + }, + { + "m_Id": "d860b5de1b974b99a51011a137be8971" + }, + { + "m_Id": "ca3c24fa62d14398921f52276c14572b" + } + ], + "synonyms": [ + "multiplication", + "times", + "x" + ], + "m_Precision": 0, + "m_PreviewExpanded": false, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "011b228dbf0844f3bd7d6edaff79ab64", + "m_Id": 2, + "m_DisplayName": "Out", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "0120b220c5584b74bd38a542e248f97c", + "m_Id": 1, + "m_DisplayName": "R", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "R", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "012552040fbb4a7f91b194969a8c794e", + "m_Id": 2, + "m_DisplayName": "Out", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "e00": 0.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 0.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 0.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 0.0 + }, + "m_DefaultValue": { + "e00": 1.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 1.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 1.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector2MaterialSlot", + "m_ObjectId": "016f8f39c7b849c980536066bdc0edcc", + "m_Id": 1, + "m_DisplayName": "Tiling", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Tiling", + "m_StageCapability": 3, + "m_Value": { + "x": 1.0, + "y": 1.0 + }, + "m_DefaultValue": { + "x": 1.0, + "y": 1.0 + }, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.TangentMaterialSlot", + "m_ObjectId": "0370c78035314d6dadd5a7ae3d06f1d7", + "m_Id": 0, + "m_DisplayName": "Tangent", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Tangent", + "m_StageCapability": 1, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [], + "m_Space": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "06ca3c71a3484821bfdbbcf2e70d49a1", + "m_Id": 2, + "m_DisplayName": "Out", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "e00": 0.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 0.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 0.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 0.0 + }, + "m_DefaultValue": { + "e00": 1.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 1.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 1.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "0756943640aa494b9cc4d5477bc6d133", + "m_Id": 2, + "m_DisplayName": "Out", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "0879106c5bc34efda95f3be4ce691445", + "m_Id": 1, + "m_DisplayName": "B", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "B", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "0883074e90a14b5589a65c5f941784ac", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 688.0, + "y": 154.99996948242188, + "width": 105.0, + "height": 34.00004577636719 + } + }, + "m_Slots": [ + { + "m_Id": "dc25329d14d84cbeb565b4c34ad82bb5" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "ce7f5f8af25a41cdb508090d0e445ec2" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "0a40cc0846e6416e9642eb6c497e1866", + "m_Id": 2, + "m_DisplayName": "Cosine Time", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Cosine Time", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "0b86c5cd795041358b83724605be1aa5", + "m_Id": 1, + "m_DisplayName": "B", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "B", + "m_StageCapability": 3, + "m_Value": { + "e00": 2.0, + "e01": 2.0, + "e02": 2.0, + "e03": 2.0, + "e10": 2.0, + "e11": 2.0, + "e12": 2.0, + "e13": 2.0, + "e20": 2.0, + "e21": 2.0, + "e22": 2.0, + "e23": 2.0, + "e30": 2.0, + "e31": 2.0, + "e32": 2.0, + "e33": 2.0 + }, + "m_DefaultValue": { + "e00": 1.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 1.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 1.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "0bb96f8774614ddcb4c3a824860cce73", + "m_Id": 1, + "m_DisplayName": "R", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "R", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "0cff3b60e23d4bac9361c8593abf6828", + "m_Id": 0, + "m_DisplayName": "PeakAmplitud", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.TilingAndOffsetNode", + "m_ObjectId": "0dfa9889623e4d9182df4952015bd50e", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Tiling And Offset", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -943.9999389648438, + "y": -253.99996948242188, + "width": 208.0, + "height": 326.0 + } + }, + "m_Slots": [ + { + "m_Id": "fd683dec93bb41bbb0fed22dbff0f1bb" + }, + { + "m_Id": "6ba8e1662d574092a3f41cf2ce4d02b2" + }, + { + "m_Id": "0f1551e8acf34f34b1614ef9cff181c2" + }, + { + "m_Id": "9cf0d9eba215430da0b3943ef441a2fd" + } + ], + "synonyms": [ + "pan", + "scale" + ], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.SplitNode", + "m_ObjectId": "0ecf86d3fe2f460bb5fd298d4dd3d181", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Split", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -2219.999755859375, + "y": 92.99998474121094, + "width": 119.0, + "height": 149.0 + } + }, + "m_Slots": [ + { + "m_Id": "ebe2bd6120c344a687e6d11dfaf27a36" + }, + { + "m_Id": "84718aeb6fc94bec8af1746c2e3ebb80" + }, + { + "m_Id": "e3b2955098bf442885911e6e7696a608" + }, + { + "m_Id": "e95b1b63fecf4d57923edc735582e981" + }, + { + "m_Id": "4a6d0150c989490ead3a13c7acbc9844" + } + ], + "synonyms": [ + "separate" + ], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector2MaterialSlot", + "m_ObjectId": "0f1551e8acf34f34b1614ef9cff181c2", + "m_Id": 2, + "m_DisplayName": "Offset", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Offset", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0 + }, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "10c3cb6447764ae799ff93d058714068", + "m_Id": 1, + "m_DisplayName": "Out", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "110e8041980c411ea3a1590022c1c0e5", + "m_Id": 0, + "m_DisplayName": "In", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "In", + "m_StageCapability": 3, + "m_Value": { + "x": 1.0, + "y": 1.0, + "z": 1.0, + "w": 1.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "123586bce2964273abd7c98869177938", + "m_Group": { + "m_Id": "" + }, + "m_Name": "SurfaceDescription.Alpha", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 0.0, + "y": 0.0, + "width": 0.0, + "height": 0.0 + } + }, + "m_Slots": [ + { + "m_Id": "f905d95214b84b7a8e2735c334c1459e" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "SurfaceDescription.Alpha" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.SineNode", + "m_ObjectId": "135a8f76ac6c4bcba3b8e786149d1a38", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Sine", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -1457.0, + "y": 202.00001525878907, + "width": 208.0, + "height": 278.0 + } + }, + "m_Slots": [ + { + "m_Id": "8be8495c3af24544ac59cb06d7615a68" + }, + { + "m_Id": "877e5bb2a9034650957bfb38e70e409c" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "13aabd8b45ab4757a64837108c686005", + "m_Id": 2, + "m_DisplayName": "Out", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "e00": 0.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 0.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 0.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 0.0 + }, + "m_DefaultValue": { + "e00": 1.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 1.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 1.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "1518a9cb0c754a1996c1b8eee6ca81bf", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -3639.999755859375, + "y": -52.0000114440918, + "width": 145.0, + "height": 33.99998474121094 + } + }, + "m_Slots": [ + { + "m_Id": "af435453750146b2b6e6daff60bf0ca6" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "1853b5e812264c16957c12c706a5fd54" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "15f7a5fcaed04e3a9aa55c39325171ca", + "m_Id": 0, + "m_DisplayName": "In", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "In", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "16a5a09258df475e8a42826186be1314", + "m_Id": 0, + "m_DisplayName": "A", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "A", + "m_StageCapability": 3, + "m_Value": { + "e00": 0.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 0.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 0.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 0.0 + }, + "m_DefaultValue": { + "e00": 1.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 1.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 1.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 1.0 + } +} + +{ + "m_SGVersion": 1, + "m_Type": "UnityEditor.ShaderGraph.Internal.Vector1ShaderProperty", + "m_ObjectId": "1853b5e812264c16957c12c706a5fd54", + "m_Guid": { + "m_GuidSerialized": "11ff4991-f2e5-4114-b58a-3385b4fdfcb6" + }, + "m_Name": "MiniMultiplier", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "MiniMultiplier", + "m_DefaultReferenceName": "_MiniMultiplier", + "m_OverrideReferenceName": "", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_DismissedVersion": 0, + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 0, + "m_Hidden": false, + "m_Value": 5.0, + "m_FloatType": 0, + "m_RangeValues": { + "x": 0.0, + "y": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "1896680aa086413493aa51e4b693ade3", + "m_Id": 1, + "m_DisplayName": "B", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "B", + "m_StageCapability": 3, + "m_Value": { + "e00": 2.0, + "e01": 2.0, + "e02": 2.0, + "e03": 2.0, + "e10": 2.0, + "e11": 2.0, + "e12": 2.0, + "e13": 2.0, + "e20": 2.0, + "e21": 2.0, + "e22": 2.0, + "e23": 2.0, + "e30": 2.0, + "e31": 2.0, + "e32": 2.0, + "e33": 2.0 + }, + "m_DefaultValue": { + "e00": 1.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 1.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 1.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.ConstantNode", + "m_ObjectId": "1e56fc25cffc4d8283cdfa5fa5735836", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Constant", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -506.0, + "y": -397.0000305175781, + "width": 144.99996948242188, + "height": 112.00003051757813 + } + }, + "m_Slots": [ + { + "m_Id": "62ca27969397400b81dd7059a16df7a6" + } + ], + "synonyms": [ + "pi", + "tau", + "phi" + ], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_constant": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "237b923943314367a0d6cd6f90d1e922", + "m_Id": 1, + "m_DisplayName": "Out", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "24dc1da5391a4fdbb0e1814ca67dcb2c", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -1402.1351318359375, + "y": 515.8157958984375, + "width": 0.0, + "height": 0.0 + } + }, + "m_Slots": [ + { + "m_Id": "0cff3b60e23d4bac9361c8593abf6828" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "3f0c5d56334a4d439fd527663f89ae0d" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "25748892f6624bfa8fef54b1a76dac29", + "m_Id": 0, + "m_DisplayName": "A", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "A", + "m_StageCapability": 3, + "m_Value": { + "e00": 0.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 0.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 0.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 0.0 + }, + "m_DefaultValue": { + "e00": 1.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 1.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 1.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.MultiplyNode", + "m_ObjectId": "26ff32922ab6496ba9aaa9270ca4ad67", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Multiply", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -2739.000244140625, + "y": -263.0000305175781, + "width": 208.000244140625, + "height": 302.0000305175781 + } + }, + "m_Slots": [ + { + "m_Id": "25748892f6624bfa8fef54b1a76dac29" + }, + { + "m_Id": "b7eddac208fd44d2b517035d2ec4ffc4" + }, + { + "m_Id": "4883722ead4345cba19f7634e1c0c9d3" + } + ], + "synonyms": [ + "multiplication", + "times", + "x" + ], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "2a5e62a7b80341eba60e4d305f57cede", + "m_Id": 1, + "m_DisplayName": "B", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "B", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 1, + "m_Type": "UnityEditor.ShaderGraph.Internal.Vector1ShaderProperty", + "m_ObjectId": "2c17e30d0b9f4ea4979256695245f49c", + "m_Guid": { + "m_GuidSerialized": "54c89775-848b-4a16-aeb7-c410d9fafef7" + }, + "m_Name": "ScrollSpeed", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "ScrollSpeed", + "m_DefaultReferenceName": "_ScrollSpeed", + "m_OverrideReferenceName": "", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_DismissedVersion": 0, + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 0, + "m_Hidden": false, + "m_Value": -10.0, + "m_FloatType": 0, + "m_RangeValues": { + "x": 0.0, + "y": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "32627c416ffc4331887e0dec2eb5c217", + "m_Id": 0, + "m_DisplayName": "A", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "A", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "3387a71a64994e8f9e7cc29a1c85131d", + "m_Id": 0, + "m_DisplayName": "Edge", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Edge", + "m_StageCapability": 3, + "m_Value": { + "x": 1.0, + "y": 1.0, + "z": 1.0, + "w": 1.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector2MaterialSlot", + "m_ObjectId": "33910a0175414985af3280fe5dc5e049", + "m_Id": 0, + "m_DisplayName": "Out", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0 + }, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "347a67acb2ae42eda1d90c85a90f493a", + "m_Id": 2, + "m_DisplayName": "Y", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Y", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [ + "Y" + ] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "39a784f01f3f493890d703734ef910eb", + "m_Id": 3, + "m_DisplayName": "Delta Time", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Delta Time", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector2Node", + "m_ObjectId": "3a8403890885494db5130ce5d73cde8c", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Vector 2", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -3613.999755859375, + "y": 73.0, + "width": 128.0, + "height": 101.00006103515625 + } + }, + "m_Slots": [ + { + "m_Id": "f79641e56a8543c4bbf4ebdfd50a1439" + }, + { + "m_Id": "8da3fed82c8a4b1390dbe23ee22977a0" + }, + { + "m_Id": "71a8ae3839d84658a634ee39b0dbe7f3" + } + ], + "synonyms": [ + "2", + "v2", + "vec2", + "float2" + ], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Value": { + "x": 0.0, + "y": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "3c737b33f8144d3d840072506f912e71", + "m_Id": 0, + "m_DisplayName": "A", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "A", + "m_StageCapability": 3, + "m_Value": { + "e00": 0.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 0.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 0.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 0.0 + }, + "m_DefaultValue": { + "e00": 1.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 1.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 1.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.MultiplyNode", + "m_ObjectId": "3cdb52dfc1674217ad4b524826239955", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Multiply", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -1201.0, + "y": 219.00003051757813, + "width": 207.99993896484376, + "height": 302.0000305175781 + } + }, + "m_Slots": [ + { + "m_Id": "a7eb1f46ee424a119d2a4bbf2ca75a03" + }, + { + "m_Id": "1896680aa086413493aa51e4b693ade3" + }, + { + "m_Id": "67f24a14f6ea407d871d07013126bbd3" + } + ], + "synonyms": [ + "multiplication", + "times", + "x" + ], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 1, + "m_Type": "UnityEditor.ShaderGraph.Internal.Vector1ShaderProperty", + "m_ObjectId": "3f0c5d56334a4d439fd527663f89ae0d", + "m_Guid": { + "m_GuidSerialized": "f641eef9-b952-403c-a4be-2806ae543166" + }, + "m_Name": "PeakAmplitud", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "PeakAmplitud", + "m_DefaultReferenceName": "_PeakAmplitud", + "m_OverrideReferenceName": "", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_DismissedVersion": 0, + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 0, + "m_Hidden": false, + "m_Value": 0.0, + "m_FloatType": 1, + "m_RangeValues": { + "x": 0.0, + "y": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "4540ea867538454f8d083435834fd05d", + "m_Id": 1, + "m_DisplayName": "Out", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "45bc76fa7e3b4c0a98204fb4c923e6f2", + "m_Id": 0, + "m_DisplayName": "A", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "A", + "m_StageCapability": 3, + "m_Value": { + "e00": 0.25, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 0.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 0.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 0.0 + }, + "m_DefaultValue": { + "e00": 1.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 1.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 1.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "46e133bec24b469db5f01e054b006af8", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -4470.0, + "y": -30.999980926513673, + "width": 138.0, + "height": 33.999996185302737 + } + }, + "m_Slots": [ + { + "m_Id": "8461f561820441588f7b96f64dc2dbdb" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "2c17e30d0b9f4ea4979256695245f49c" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.MultiplyNode", + "m_ObjectId": "4768888ad1974e32a29add1a0d21dc57", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Multiply", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -837.0001220703125, + "y": 329.0, + "width": 208.00006103515626, + "height": 302.00006103515627 + } + }, + "m_Slots": [ + { + "m_Id": "7caab904ae60474db727aa3a906d9b4b" + }, + { + "m_Id": "d8d73acd079446ed908807b35d65b7ac" + }, + { + "m_Id": "eefb98829c6e4fa987c54f7f097c268b" + } + ], + "synonyms": [ + "multiplication", + "times", + "x" + ], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "4883722ead4345cba19f7634e1c0c9d3", + "m_Id": 2, + "m_DisplayName": "Out", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "e00": 0.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 0.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 0.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 0.0 + }, + "m_DefaultValue": { + "e00": 1.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 1.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 1.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.MultiplyNode", + "m_ObjectId": "490aaa97148d4b7d885f7f45c30463e3", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Multiply", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -2907.999755859375, + "y": 47.00004577636719, + "width": 126.0, + "height": 118.0 + } + }, + "m_Slots": [ + { + "m_Id": "eb38b7d0c8b942e39f36f6c0ce59bc5f" + }, + { + "m_Id": "f3b3c65d9be34290b0255974b6fea8e9" + }, + { + "m_Id": "ed63283e635f4b6d9ee2d6f6f6b78071" + } + ], + "synonyms": [ + "multiplication", + "times", + "x" + ], + "m_Precision": 0, + "m_PreviewExpanded": false, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.FractionNode", + "m_ObjectId": "49108af83b0e4362afca8cd107aec1af", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Fraction", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -2468.000244140625, + "y": -282.0000305175781, + "width": 208.0, + "height": 278.0000305175781 + } + }, + "m_Slots": [ + { + "m_Id": "9d4a133ed1024bd689da0a7ab6f82c24" + }, + { + "m_Id": "c5237c2cda0044d4800d3fe7d4c8ecd5" + } + ], + "synonyms": [ + "remainder" + ], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "4a163dc518a540fcb7c69ffd10476a26", + "m_Id": 0, + "m_DisplayName": "A", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "A", + "m_StageCapability": 3, + "m_Value": { + "e00": 0.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 0.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 0.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 0.0 + }, + "m_DefaultValue": { + "e00": 1.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 1.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 1.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "4a6d0150c989490ead3a13c7acbc9844", + "m_Id": 4, + "m_DisplayName": "A", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "A", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "51daf13a2f384d4a911ff45f2c43bce7", + "m_Id": 1, + "m_DisplayName": "Out", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "51f5c8ba266e4d3d9fb0d66448041c19", + "m_Id": 4, + "m_DisplayName": "A", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "A", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "523560ffe65c4271989e535eea5d353a", + "m_Id": 2, + "m_DisplayName": "Out", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "e00": 0.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 0.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 0.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 0.0 + }, + "m_DefaultValue": { + "e00": 1.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 1.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 1.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "5a3669fcd5544de6b193b7e0de47ce3c", + "m_Id": 1, + "m_DisplayName": "B", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "B", + "m_StageCapability": 3, + "m_Value": { + "e00": 2.0, + "e01": 2.0, + "e02": 2.0, + "e03": 2.0, + "e10": 2.0, + "e11": 2.0, + "e12": 2.0, + "e13": 2.0, + "e20": 2.0, + "e21": 2.0, + "e22": 2.0, + "e23": 2.0, + "e30": 2.0, + "e31": 2.0, + "e32": 2.0, + "e33": 2.0 + }, + "m_DefaultValue": { + "e00": 1.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 1.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 1.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "5d4665babaa645df94a1247bf70b3603", + "m_Id": 0, + "m_DisplayName": "In", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "In", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "5fa11902f7e94cae9a705cc80ac99ada", + "m_Id": 1, + "m_DisplayName": "B", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "B", + "m_StageCapability": 3, + "m_Value": { + "e00": 2.0, + "e01": 2.0, + "e02": 2.0, + "e03": 2.0, + "e10": 2.0, + "e11": 2.0, + "e12": 2.0, + "e13": 2.0, + "e20": 2.0, + "e21": 2.0, + "e22": 2.0, + "e23": 2.0, + "e30": 2.0, + "e31": 2.0, + "e32": 2.0, + "e33": 2.0 + }, + "m_DefaultValue": { + "e00": 1.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 1.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 1.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "62ca27969397400b81dd7059a16df7a6", + "m_Id": 0, + "m_DisplayName": "Out", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PropertyNode", + "m_ObjectId": "64e11561f26642ea8431a72c38a09c53", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Property", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -3930.999755859375, + "y": -254.99996948242188, + "width": 120.0, + "height": 33.99998474121094 + } + }, + "m_Slots": [ + { + "m_Id": "c63ec843783541039fa6a165ca1a99b5" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Property": { + "m_Id": "ea3daf489a884e4db8847af6486f73be" + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.MultiplyNode", + "m_ObjectId": "66ccae0015b94cc5ac930b794ebc18cc", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Multiply", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -4300.0, + "y": -106.99999237060547, + "width": 126.0, + "height": 117.99998474121094 + } + }, + "m_Slots": [ + { + "m_Id": "89238a154097446096d434bc225d98e3" + }, + { + "m_Id": "5a3669fcd5544de6b193b7e0de47ce3c" + }, + { + "m_Id": "523560ffe65c4271989e535eea5d353a" + } + ], + "synonyms": [ + "multiplication", + "times", + "x" + ], + "m_Precision": 0, + "m_PreviewExpanded": false, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "67f24a14f6ea407d871d07013126bbd3", + "m_Id": 2, + "m_DisplayName": "Out", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "e00": 0.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 0.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 0.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 0.0 + }, + "m_DefaultValue": { + "e00": 1.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 1.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 1.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "67f9d0600cd943dfb293c3390b5e3e0e", + "m_Id": 0, + "m_DisplayName": "Alpha Clip Threshold", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "AlphaClipThreshold", + "m_StageCapability": 2, + "m_Value": 0.0, + "m_DefaultValue": 0.5, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "696b032c402e487eb003dcae14940117", + "m_Id": 2, + "m_DisplayName": "G", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "G", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector2MaterialSlot", + "m_ObjectId": "6ba8e1662d574092a3f41cf2ce4d02b2", + "m_Id": 1, + "m_DisplayName": "Tiling", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Tiling", + "m_StageCapability": 3, + "m_Value": { + "x": 100.0, + "y": 1.0 + }, + "m_DefaultValue": { + "x": 1.0, + "y": 1.0 + }, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector2MaterialSlot", + "m_ObjectId": "6cc8b496538c445a840ab76847e11c18", + "m_Id": 0, + "m_DisplayName": "Out", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0 + }, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.TimeNode", + "m_ObjectId": "6f4bafd523e34167985d03b95a29bf62", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Time", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -4247.0, + "y": 79.0000228881836, + "width": 124.0, + "height": 173.0 + } + }, + "m_Slots": [ + { + "m_Id": "b6f15743735b48939e0e778cf3c5b95e" + }, + { + "m_Id": "b3912e74e07348b0b36167a518ffab7b" + }, + { + "m_Id": "0a40cc0846e6416e9642eb6c497e1866" + }, + { + "m_Id": "39a784f01f3f493890d703734ef910eb" + }, + { + "m_Id": "e87a4d82d27b4093b0083fbfe447104b" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector2MaterialSlot", + "m_ObjectId": "71a8ae3839d84658a634ee39b0dbe7f3", + "m_Id": 0, + "m_DisplayName": "Out", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0 + }, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "71c0c9a6d16749979c4bacf976c50fd6", + "m_Id": 0, + "m_DisplayName": "", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 1, + "m_Type": "UnityEditor.Rendering.Universal.ShaderGraph.UniversalTarget", + "m_ObjectId": "726c3949731c4b088dee2eb2d5d2a166", + "m_Datas": [], + "m_ActiveSubTarget": { + "m_Id": "e667e8f1bfbd48d7beba36d68305ca6d" + }, + "m_AllowMaterialOverride": false, + "m_SurfaceType": 1, + "m_ZTestMode": 8, + "m_ZWriteControl": 1, + "m_AlphaMode": 1, + "m_RenderFace": 2, + "m_AlphaClip": true, + "m_CastShadows": true, + "m_ReceiveShadows": true, + "m_DisableTint": false, + "m_AdditionalMotionVectorMode": 0, + "m_AlembicMotionVectors": false, + "m_SupportsLODCrossFade": false, + "m_CustomEditorGUI": "", + "m_SupportVFX": false +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "73b832bf20b141789929609fad16130a", + "m_Group": { + "m_Id": "" + }, + "m_Name": "SurfaceDescription.AlphaClipThreshold", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 0.0, + "y": 0.0, + "width": 0.0, + "height": 0.0 + } + }, + "m_Slots": [ + { + "m_Id": "67f9d0600cd943dfb293c3390b5e3e0e" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "SurfaceDescription.AlphaClipThreshold" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "78c5ed60091a40819932ca2ca83bc797", + "m_Id": 1, + "m_DisplayName": "", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "79d04c00ddce48f5899bb04bdbc46638", + "m_Id": 2, + "m_DisplayName": "Out", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "e00": 0.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 0.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 0.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 0.0 + }, + "m_DefaultValue": { + "e00": 1.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 1.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 1.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.UVMaterialSlot", + "m_ObjectId": "7b8656e701804ca7a521328cf748fc43", + "m_Id": 0, + "m_DisplayName": "UV", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "UV", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0 + }, + "m_Labels": [], + "m_Channel": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "7caab904ae60474db727aa3a906d9b4b", + "m_Id": 0, + "m_DisplayName": "A", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "A", + "m_StageCapability": 3, + "m_Value": { + "e00": 0.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 0.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 0.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 0.0 + }, + "m_DefaultValue": { + "e00": 1.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 1.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 1.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "806a12997d954801b17fe48d098ebf4f", + "m_Id": 0, + "m_DisplayName": "A", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "A", + "m_StageCapability": 3, + "m_Value": { + "x": 1.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.NormalMaterialSlot", + "m_ObjectId": "823454e356d949c9964ba186db2aa89c", + "m_Id": 0, + "m_DisplayName": "Normal", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Normal", + "m_StageCapability": 1, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [], + "m_Space": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.SineNode", + "m_ObjectId": "836abdcaa6784027945bf8d6b3b4d6f3", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Sine", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -1457.0, + "y": 561.0, + "width": 208.0, + "height": 278.00006103515627 + } + }, + "m_Slots": [ + { + "m_Id": "b80a0fd3bd184882af202c8cfbb59747" + }, + { + "m_Id": "10c3cb6447764ae799ff93d058714068" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": false, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.FractionNode", + "m_ObjectId": "8433ffd9392f4ce4bad76d5a18487a3e", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Fraction", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -2453.999755859375, + "y": 92.99995422363281, + "width": 208.0, + "height": 278.0 + } + }, + "m_Slots": [ + { + "m_Id": "15f7a5fcaed04e3a9aa55c39325171ca" + }, + { + "m_Id": "4540ea867538454f8d083435834fd05d" + } + ], + "synonyms": [ + "remainder" + ], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "8461f561820441588f7b96f64dc2dbdb", + "m_Id": 0, + "m_DisplayName": "ScrollSpeed", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "84718aeb6fc94bec8af1746c2e3ebb80", + "m_Id": 1, + "m_DisplayName": "R", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "R", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "854b2aa9ad0d4f64aea5f3d4787ecab1", + "m_Id": 2, + "m_DisplayName": "Out", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "e00": 0.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 0.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 0.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 0.0 + }, + "m_DefaultValue": { + "e00": 1.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 1.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 1.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "877e5bb2a9034650957bfb38e70e409c", + "m_Id": 1, + "m_DisplayName": "Out", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "89238a154097446096d434bc225d98e3", + "m_Id": 0, + "m_DisplayName": "A", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "A", + "m_StageCapability": 3, + "m_Value": { + "e00": 0.009999999776482582, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 0.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 0.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 0.0 + }, + "m_DefaultValue": { + "e00": 1.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 1.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 1.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "892b2eb407374e44905cb5c3cf60a5de", + "m_Id": 2, + "m_DisplayName": "Out", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "e00": 0.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 0.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 0.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 0.0 + }, + "m_DefaultValue": { + "e00": 1.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 1.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 1.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "8aad8b1c80434b08abef57d92525b4bf", + "m_Id": 2, + "m_DisplayName": "Out", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "8be8495c3af24544ac59cb06d7615a68", + "m_Id": 0, + "m_DisplayName": "In", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "In", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "8da3fed82c8a4b1390dbe23ee22977a0", + "m_Id": 2, + "m_DisplayName": "Y", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Y", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [ + "Y" + ] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.MultiplyNode", + "m_ObjectId": "8e6282bfe0684035b164a795f5bf9cca", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Multiply", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -4091.000244140625, + "y": 79.0000228881836, + "width": 208.0, + "height": 302.0000305175781 + } + }, + "m_Slots": [ + { + "m_Id": "ede4d9695a64452fbb3a5a0ce7b8f335" + }, + { + "m_Id": "0b86c5cd795041358b83724605be1aa5" + }, + { + "m_Id": "012552040fbb4a7f91b194969a8c794e" + } + ], + "synonyms": [ + "multiplication", + "times", + "x" + ], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.SplitNode", + "m_ObjectId": "8ee643a81f224cf2a1d9c6b3d6cb2746", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Split", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -2230.5302734375, + "y": -256.53033447265627, + "width": 119.0, + "height": 149.0 + } + }, + "m_Slots": [ + { + "m_Id": "ae1c2319556c4be2bf1ea51ce88e052a" + }, + { + "m_Id": "0120b220c5584b74bd38a542e248f97c" + }, + { + "m_Id": "aba284ab6d3c4c23b39290b06fc042f5" + }, + { + "m_Id": "a5d829d004eb4c52b901490c9ea5d5a3" + }, + { + "m_Id": "51f5c8ba266e4d3d9fb0d66448041c19" + } + ], + "synonyms": [ + "separate" + ], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "916888302e734d39b50b6926f8a899d3", + "m_Id": 1, + "m_DisplayName": "B", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "B", + "m_StageCapability": 3, + "m_Value": { + "e00": 2.0, + "e01": 2.0, + "e02": 2.0, + "e03": 2.0, + "e10": 2.0, + "e11": 2.0, + "e12": 2.0, + "e13": 2.0, + "e20": 2.0, + "e21": 2.0, + "e22": 2.0, + "e23": 2.0, + "e30": 2.0, + "e31": 2.0, + "e32": 2.0, + "e33": 2.0 + }, + "m_DefaultValue": { + "e00": 1.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 1.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 1.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.MultiplyNode", + "m_ObjectId": "91db68fb6df74bf9b061178392a599bf", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Multiply", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -1686.0001220703125, + "y": 192.0, + "width": 208.0001220703125, + "height": 302.0 + } + }, + "m_Slots": [ + { + "m_Id": "fc252630be4c4c13bfccedbbf2f6a77c" + }, + { + "m_Id": "ea89c1780c1843ddbcf02091b37bfa31" + }, + { + "m_Id": "892b2eb407374e44905cb5c3cf60a5de" + } + ], + "synonyms": [ + "multiplication", + "times", + "x" + ], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "9218273854c94b12890e9e34ecf81fe0", + "m_Id": 4, + "m_DisplayName": "A", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "A", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.RedirectNodeData", + "m_ObjectId": "9384461bcf474a62bd8f8d1347d83b5a", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Redirect Node", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -3017.999755859375, + "y": -236.9999542236328, + "width": 56.0, + "height": 23.999954223632814 + } + }, + "m_Slots": [ + { + "m_Id": "71c0c9a6d16749979c4bacf976c50fd6" + }, + { + "m_Id": "78c5ed60091a40819932ca2ca83bc797" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "9b8255a1a2f1470f8fb59f7fd0aebd7a", + "m_Id": 1, + "m_DisplayName": "B", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "B", + "m_StageCapability": 3, + "m_Value": { + "e00": 2.0, + "e01": 2.0, + "e02": 2.0, + "e03": 2.0, + "e10": 2.0, + "e11": 2.0, + "e12": 2.0, + "e13": 2.0, + "e20": 2.0, + "e21": 2.0, + "e22": 2.0, + "e23": 2.0, + "e30": 2.0, + "e31": 2.0, + "e32": 2.0, + "e33": 2.0 + }, + "m_DefaultValue": { + "e00": 1.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 1.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 1.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.MultiplyNode", + "m_ObjectId": "9c33ddf46a6141798f5ad3085aed5aea", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Multiply", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 688.0, + "y": 189.00001525878907, + "width": 130.00006103515626, + "height": 118.00001525878906 + } + }, + "m_Slots": [ + { + "m_Id": "16a5a09258df475e8a42826186be1314" + }, + { + "m_Id": "5fa11902f7e94cae9a705cc80ac99ada" + }, + { + "m_Id": "79d04c00ddce48f5899bb04bdbc46638" + } + ], + "synonyms": [ + "multiplication", + "times", + "x" + ], + "m_Precision": 0, + "m_PreviewExpanded": false, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector2MaterialSlot", + "m_ObjectId": "9cf0d9eba215430da0b3943ef441a2fd", + "m_Id": 3, + "m_DisplayName": "Out", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0 + }, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "9d28f67eec46449bb5c6fe3f29fd1bb0", + "m_Id": 0, + "m_DisplayName": "In", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "In", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "9d4a133ed1024bd689da0a7ab6f82c24", + "m_Id": 0, + "m_DisplayName": "In", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "In", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.MultiplyNode", + "m_ObjectId": "a14694d31e4d4d3d9af9dd576731b857", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Multiply", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -281.0000305175781, + "y": -358.0, + "width": 208.0, + "height": 302.0000305175781 + } + }, + "m_Slots": [ + { + "m_Id": "dc40b9dc95da444ebe2198d426b2eddc" + }, + { + "m_Id": "916888302e734d39b50b6926f8a899d3" + }, + { + "m_Id": "13aabd8b45ab4757a64837108c686005" + } + ], + "synonyms": [ + "multiplication", + "times", + "x" + ], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "a4ae2d542f64463ebf5a6fa5102e55de", + "m_Group": { + "m_Id": "" + }, + "m_Name": "VertexDescription.Tangent", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 365.9999694824219, + "y": 61.9999885559082, + "width": 200.00003051757813, + "height": 41.0000114440918 + } + }, + "m_Slots": [ + { + "m_Id": "0370c78035314d6dadd5a7ae3d06f1d7" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "VertexDescription.Tangent" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "a5d829d004eb4c52b901490c9ea5d5a3", + "m_Id": 3, + "m_DisplayName": "B", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "B", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "a72509d509ae464fbca471721859051e", + "m_Id": 2, + "m_DisplayName": "Out", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "a7eb1f46ee424a119d2a4bbf2ca75a03", + "m_Id": 0, + "m_DisplayName": "A", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "A", + "m_StageCapability": 3, + "m_Value": { + "e00": 0.2800000011920929, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 0.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 0.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 0.0 + }, + "m_DefaultValue": { + "e00": 1.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 1.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 1.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "aba284ab6d3c4c23b39290b06fc042f5", + "m_Id": 2, + "m_DisplayName": "G", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "G", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "ae1c2319556c4be2bf1ea51ce88e052a", + "m_Id": 0, + "m_DisplayName": "In", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "In", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "af435453750146b2b6e6daff60bf0ca6", + "m_Id": 0, + "m_DisplayName": "MiniMultiplier", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "b3912e74e07348b0b36167a518ffab7b", + "m_Id": 1, + "m_DisplayName": "Sine Time", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Sine Time", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "b6f15743735b48939e0e778cf3c5b95e", + "m_Id": 0, + "m_DisplayName": "Time", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Time", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "b7eddac208fd44d2b517035d2ec4ffc4", + "m_Id": 1, + "m_DisplayName": "B", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "B", + "m_StageCapability": 3, + "m_Value": { + "e00": 2.0, + "e01": 2.0, + "e02": 2.0, + "e03": 2.0, + "e10": 2.0, + "e11": 2.0, + "e12": 2.0, + "e13": 2.0, + "e20": 2.0, + "e21": 2.0, + "e22": 2.0, + "e23": 2.0, + "e30": 2.0, + "e31": 2.0, + "e32": 2.0, + "e33": 2.0 + }, + "m_DefaultValue": { + "e00": 1.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 1.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 1.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "b80a0fd3bd184882af202c8cfbb59747", + "m_Id": 0, + "m_DisplayName": "In", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "In", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.PositionMaterialSlot", + "m_ObjectId": "b81db52f9a16433c8611a671fd9e06ab", + "m_Id": 0, + "m_DisplayName": "Position", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Position", + "m_StageCapability": 1, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0 + }, + "m_Labels": [], + "m_Space": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "b8fb0becd78b495fb602a978a5a53462", + "m_Id": 1, + "m_DisplayName": "X", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "X", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "b90087f8abe846fcb332b936dd73753c", + "m_Id": 3, + "m_DisplayName": "B", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "B", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DivideNode", + "m_ObjectId": "b99506308b6446c3a5be9fcd3ca35f6c", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Divide", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -3776.999755859375, + "y": -88.0, + "width": 126.0, + "height": 117.99999237060547 + } + }, + "m_Slots": [ + { + "m_Id": "806a12997d954801b17fe48d098ebf4f" + }, + { + "m_Id": "bd15f13ed7104127b40dcc8d6810747e" + }, + { + "m_Id": "011b228dbf0844f3bd7d6edaff79ab64" + } + ], + "synonyms": [ + "division", + "divided by" + ], + "m_Precision": 0, + "m_PreviewExpanded": false, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "bd15f13ed7104127b40dcc8d6810747e", + "m_Id": 1, + "m_DisplayName": "B", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "B", + "m_StageCapability": 3, + "m_Value": { + "x": 2.0, + "y": 2.0, + "z": 2.0, + "w": 2.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "c03e89eaacee49c081b4cc0aeb431c7b", + "m_Id": 1, + "m_DisplayName": "In", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "In", + "m_StageCapability": 3, + "m_Value": { + "x": 0.9900000095367432, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "c39cf47d7ab1424490d6c8b177d03f07", + "m_Id": 0, + "m_DisplayName": "A", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "A", + "m_StageCapability": 3, + "m_Value": { + "e00": 2.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 0.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 0.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 0.0 + }, + "m_DefaultValue": { + "e00": 1.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 1.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 1.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "c5237c2cda0044d4800d3fe7d4c8ecd5", + "m_Id": 1, + "m_DisplayName": "Out", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "c5d0138a3ff749a490e93a41f98c4d0e", + "m_Id": 2, + "m_DisplayName": "Y", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Y", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [ + "Y" + ] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "c63ec843783541039fa6a165ca1a99b5", + "m_Id": 0, + "m_DisplayName": "Intervals", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector2Node", + "m_ObjectId": "c925c9dbe5ac4216bef589841dffa211", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Vector 2", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -3456.999755859375, + "y": -88.0, + "width": 128.0, + "height": 101.00005340576172 + } + }, + "m_Slots": [ + { + "m_Id": "f8019586ffda49e0a9740765dac287a1" + }, + { + "m_Id": "347a67acb2ae42eda1d90c85a90f493a" + }, + { + "m_Id": "6cc8b496538c445a840ab76847e11c18" + } + ], + "synonyms": [ + "2", + "v2", + "vec2", + "float2" + ], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Value": { + "x": 0.0, + "y": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "ca3c24fa62d14398921f52276c14572b", + "m_Id": 2, + "m_DisplayName": "Out", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "e00": 0.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 0.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 0.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 0.0 + }, + "m_DefaultValue": { + "e00": 1.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 1.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 1.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.CategoryData", + "m_ObjectId": "cad4a7131d7140cb9acb4987ea941b3c", + "m_Name": "", + "m_ChildObjectList": [ + { + "m_Id": "ea3daf489a884e4db8847af6486f73be" + }, + { + "m_Id": "ce7f5f8af25a41cdb508090d0e445ec2" + }, + { + "m_Id": "2c17e30d0b9f4ea4979256695245f49c" + }, + { + "m_Id": "1853b5e812264c16957c12c706a5fd54" + }, + { + "m_Id": "3f0c5d56334a4d439fd527663f89ae0d" + } + ] +} + +{ + "m_SGVersion": 3, + "m_Type": "UnityEditor.ShaderGraph.Internal.ColorShaderProperty", + "m_ObjectId": "ce7f5f8af25a41cdb508090d0e445ec2", + "m_Guid": { + "m_GuidSerialized": "4b1e9c79-9534-4a86-91f8-9b2d6538741d" + }, + "m_Name": "Color", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "Color", + "m_DefaultReferenceName": "_Color", + "m_OverrideReferenceName": "", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_DismissedVersion": 0, + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 0, + "m_Hidden": false, + "m_Value": { + "r": 0.6316666007041931, + "g": 0.2200000286102295, + "b": 1.0, + "a": 0.0 + }, + "isMainColor": false, + "m_ColorMode": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.StepNode", + "m_ObjectId": "d19dff7bdb784ca88120af0c21c653d8", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Step", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 294.9999694824219, + "y": -357.9999694824219, + "width": 208.0, + "height": 302.0000305175781 + } + }, + "m_Slots": [ + { + "m_Id": "3387a71a64994e8f9e7cc29a1c85131d" + }, + { + "m_Id": "c03e89eaacee49c081b4cc0aeb431c7b" + }, + { + "m_Id": "a72509d509ae464fbca471721859051e" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.MultiplyNode", + "m_ObjectId": "d2f1a889adfa41d4bf98e3b5202b9be2", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Multiply", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -1686.0, + "y": 551.0000610351563, + "width": 208.0, + "height": 301.99993896484377 + } + }, + "m_Slots": [ + { + "m_Id": "3c737b33f8144d3d840072506f912e71" + }, + { + "m_Id": "9b8255a1a2f1470f8fb59f7fd0aebd7a" + }, + { + "m_Id": "854b2aa9ad0d4f64aea5f3d4787ecab1" + } + ], + "synonyms": [ + "multiplication", + "times", + "x" + ], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "d458ca375e864438a739c47279d9e90f", + "m_Id": 1, + "m_DisplayName": "B", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "B", + "m_StageCapability": 3, + "m_Value": { + "e00": 2.0, + "e01": 2.0, + "e02": 2.0, + "e03": 2.0, + "e10": 2.0, + "e11": 2.0, + "e12": 2.0, + "e13": 2.0, + "e20": 2.0, + "e21": 2.0, + "e22": 2.0, + "e23": 2.0, + "e30": 2.0, + "e31": 2.0, + "e32": 2.0, + "e33": 2.0 + }, + "m_DefaultValue": { + "e00": 1.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 1.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 1.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.AddNode", + "m_ObjectId": "d45a2fbee5344b9c87dc031b8e4906d0", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Add", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -1952.0, + "y": 494.0, + "width": 208.0, + "height": 302.0 + } + }, + "m_Slots": [ + { + "m_Id": "e2e7d4e60b2340e194cac48a7fb6b128" + }, + { + "m_Id": "2a5e62a7b80341eba60e4d305f57cede" + }, + { + "m_Id": "0756943640aa494b9cc4d5477bc6d133" + } + ], + "synonyms": [ + "addition", + "sum", + "plus" + ], + "m_Precision": 0, + "m_PreviewExpanded": false, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "d5413cfa3871469f98f3d0b080d7f48b", + "m_Group": { + "m_Id": "" + }, + "m_Name": "SurfaceDescription.BaseColor", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 11.99997329711914, + "y": 279.0000305175781, + "width": 199.99998474121095, + "height": 41.0 + } + }, + "m_Slots": [ + { + "m_Id": "e893939be3fe4ee0a712b5033dd95b65" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "SurfaceDescription.BaseColor" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "d6ebc8c6b0f54819a49c1508c2e60d7c", + "m_Group": { + "m_Id": "" + }, + "m_Name": "VertexDescription.Normal", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 0.0, + "y": 0.0, + "width": 0.0, + "height": 0.0 + } + }, + "m_Slots": [ + { + "m_Id": "823454e356d949c9964ba186db2aa89c" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "VertexDescription.Normal" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.BlockNode", + "m_ObjectId": "d729de14f3084f129b7493720ed2f065", + "m_Group": { + "m_Id": "" + }, + "m_Name": "VertexDescription.Position", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 0.0, + "y": 0.0, + "width": 0.0, + "height": 0.0 + } + }, + "m_Slots": [ + { + "m_Id": "b81db52f9a16433c8611a671fd9e06ab" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_SerializedDescriptor": "VertexDescription.Position" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.ConstantNode", + "m_ObjectId": "d83e47053fc249deb9d58dd581eb2e72", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Constant", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -2086.0, + "y": 242.0, + "width": 145.0, + "height": 112.0 + } + }, + "m_Slots": [ + { + "m_Id": "de62cd4fd4db4a8c96e74151a0894125" + } + ], + "synonyms": [ + "pi", + "tau", + "phi" + ], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_constant": 0 +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "d860b5de1b974b99a51011a137be8971", + "m_Id": 1, + "m_DisplayName": "B", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "B", + "m_StageCapability": 3, + "m_Value": { + "e00": 2.0, + "e01": 2.0, + "e02": 2.0, + "e03": 2.0, + "e10": 2.0, + "e11": 2.0, + "e12": 2.0, + "e13": 2.0, + "e20": 2.0, + "e21": 2.0, + "e22": 2.0, + "e23": 2.0, + "e30": 2.0, + "e31": 2.0, + "e32": 2.0, + "e33": 2.0 + }, + "m_DefaultValue": { + "e00": 1.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 1.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 1.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector2Node", + "m_ObjectId": "d88118facb9d42028dade61a5f92f5b9", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Vector 2", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -861.0, + "y": 56.0, + "width": 128.0, + "height": 100.99995422363281 + } + }, + "m_Slots": [ + { + "m_Id": "b8fb0becd78b495fb602a978a5a53462" + }, + { + "m_Id": "c5d0138a3ff749a490e93a41f98c4d0e" + }, + { + "m_Id": "33910a0175414985af3280fe5dc5e049" + } + ], + "synonyms": [ + "2", + "v2", + "vec2", + "float2" + ], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + }, + "m_Value": { + "x": 0.0, + "y": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "d8d73acd079446ed908807b35d65b7ac", + "m_Id": 1, + "m_DisplayName": "B", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "B", + "m_StageCapability": 3, + "m_Value": { + "e00": 2.0, + "e01": 2.0, + "e02": 2.0, + "e03": 2.0, + "e10": 2.0, + "e11": 2.0, + "e12": 2.0, + "e13": 2.0, + "e20": 2.0, + "e21": 2.0, + "e22": 2.0, + "e23": 2.0, + "e30": 2.0, + "e31": 2.0, + "e32": 2.0, + "e33": 2.0 + }, + "m_DefaultValue": { + "e00": 1.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 1.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 1.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector4MaterialSlot", + "m_ObjectId": "dc25329d14d84cbeb565b4c34ad82bb5", + "m_Id": 0, + "m_DisplayName": "Color", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "dc40b9dc95da444ebe2198d426b2eddc", + "m_Id": 0, + "m_DisplayName": "A", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "A", + "m_StageCapability": 3, + "m_Value": { + "e00": 0.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 0.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 0.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 0.0 + }, + "m_DefaultValue": { + "e00": 1.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 1.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 1.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.MultiplyNode", + "m_ObjectId": "dc555053d4ef46faba56660ee3dc2b89", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Multiply", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -2731.999755859375, + "y": 46.99992370605469, + "width": 207.999755859375, + "height": 302.00006103515627 + } + }, + "m_Slots": [ + { + "m_Id": "4a163dc518a540fcb7c69ffd10476a26" + }, + { + "m_Id": "dffa446581694e7ba333a8c5f85719a6" + }, + { + "m_Id": "e944f495abf84fca8ec003e8ec650f49" + } + ], + "synonyms": [ + "multiplication", + "times", + "x" + ], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.OneMinusNode", + "m_ObjectId": "ddfd4767fad641168e5cd912b765aae7", + "m_Group": { + "m_Id": "" + }, + "m_Name": "One Minus", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": 562.833740234375, + "y": -346.1663818359375, + "width": 208.0, + "height": 278.0 + } + }, + "m_Slots": [ + { + "m_Id": "110e8041980c411ea3a1590022c1c0e5" + }, + { + "m_Id": "237b923943314367a0d6cd6f90d1e922" + } + ], + "synonyms": [ + "complement", + "invert", + "opposite" + ], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "de62cd4fd4db4a8c96e74151a0894125", + "m_Id": 0, + "m_DisplayName": "Out", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "dffa446581694e7ba333a8c5f85719a6", + "m_Id": 1, + "m_DisplayName": "B", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "B", + "m_StageCapability": 3, + "m_Value": { + "e00": 2.0, + "e01": 2.0, + "e02": 2.0, + "e03": 2.0, + "e10": 2.0, + "e11": 2.0, + "e12": 2.0, + "e13": 2.0, + "e20": 2.0, + "e21": 2.0, + "e22": 2.0, + "e23": 2.0, + "e30": 2.0, + "e31": 2.0, + "e32": 2.0, + "e33": 2.0 + }, + "m_DefaultValue": { + "e00": 1.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 1.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 1.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "e2e7d4e60b2340e194cac48a7fb6b128", + "m_Id": 0, + "m_DisplayName": "A", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "A", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "e3b2955098bf442885911e6e7696a608", + "m_Id": 2, + "m_DisplayName": "G", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "G", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector2MaterialSlot", + "m_ObjectId": "e4761135ee44453c939b06e505385f62", + "m_Id": 3, + "m_DisplayName": "Out", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0 + }, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.AddNode", + "m_ObjectId": "e61959c42e334b9cb8aa259e4d2e92a4", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Add", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -704.9999389648438, + "y": -245.99996948242188, + "width": 207.99993896484376, + "height": 302.0 + } + }, + "m_Slots": [ + { + "m_Id": "32627c416ffc4331887e0dec2eb5c217" + }, + { + "m_Id": "0879106c5bc34efda95f3be4ce691445" + }, + { + "m_Id": "8aad8b1c80434b08abef57d92525b4bf" + } + ], + "synonyms": [ + "addition", + "sum", + "plus" + ], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 2, + "m_Type": "UnityEditor.Rendering.Universal.ShaderGraph.UniversalUnlitSubTarget", + "m_ObjectId": "e667e8f1bfbd48d7beba36d68305ca6d" +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.SineNode", + "m_ObjectId": "e772ed579737453c95d535b0693594dc", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Sine", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -60.84101104736328, + "y": -342.8409118652344, + "width": 208.0, + "height": 278.0 + } + }, + "m_Slots": [ + { + "m_Id": "9d28f67eec46449bb5c6fe3f29fd1bb0" + }, + { + "m_Id": "51daf13a2f384d4a911ff45f2c43bce7" + } + ], + "synonyms": [], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "e87a4d82d27b4093b0083fbfe447104b", + "m_Id": 4, + "m_DisplayName": "Smooth Delta", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Smooth Delta", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.ColorRGBMaterialSlot", + "m_ObjectId": "e893939be3fe4ee0a712b5033dd95b65", + "m_Id": 0, + "m_DisplayName": "Base Color", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "BaseColor", + "m_StageCapability": 2, + "m_Value": { + "x": 0.5, + "y": 0.5, + "z": 0.5 + }, + "m_DefaultValue": { + "x": 0.5, + "y": 0.5, + "z": 0.5 + }, + "m_Labels": [], + "m_ColorMode": 0, + "m_DefaultColor": { + "r": 0.5, + "g": 0.5, + "b": 0.5, + "a": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "e944f495abf84fca8ec003e8ec650f49", + "m_Id": 2, + "m_DisplayName": "Out", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "e00": 0.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 0.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 0.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 0.0 + }, + "m_DefaultValue": { + "e00": 1.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 1.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 1.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "e95b1b63fecf4d57923edc735582e981", + "m_Id": 3, + "m_DisplayName": "B", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "B", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.MultiplyNode", + "m_ObjectId": "ea0acf00e13e4a89a84fd8fa2a2d3fd7", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Multiply", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -1890.0, + "y": 263.0, + "width": 126.0, + "height": 118.0 + } + }, + "m_Slots": [ + { + "m_Id": "c39cf47d7ab1424490d6c8b177d03f07" + }, + { + "m_Id": "d458ca375e864438a739c47279d9e90f" + }, + { + "m_Id": "06ca3c71a3484821bfdbbcf2e70d49a1" + } + ], + "synonyms": [ + "multiplication", + "times", + "x" + ], + "m_Precision": 0, + "m_PreviewExpanded": false, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 1, + "m_Type": "UnityEditor.ShaderGraph.Internal.Vector1ShaderProperty", + "m_ObjectId": "ea3daf489a884e4db8847af6486f73be", + "m_Guid": { + "m_GuidSerialized": "55024c32-9187-46be-99ca-7d67275105ba" + }, + "m_Name": "Intervals", + "m_DefaultRefNameVersion": 1, + "m_RefNameGeneratedByDisplayName": "Intervals", + "m_DefaultReferenceName": "_Intervals", + "m_OverrideReferenceName": "", + "m_GeneratePropertyBlock": true, + "m_UseCustomSlotLabel": false, + "m_CustomSlotLabel": "", + "m_DismissedVersion": 0, + "m_Precision": 0, + "overrideHLSLDeclaration": false, + "hlslDeclarationOverride": 0, + "m_Hidden": false, + "m_Value": 0.10000000149011612, + "m_FloatType": 0, + "m_RangeValues": { + "x": 0.0, + "y": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "ea89c1780c1843ddbcf02091b37bfa31", + "m_Id": 1, + "m_DisplayName": "B", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "B", + "m_StageCapability": 3, + "m_Value": { + "e00": 2.0, + "e01": 2.0, + "e02": 2.0, + "e03": 2.0, + "e10": 2.0, + "e11": 2.0, + "e12": 2.0, + "e13": 2.0, + "e20": 2.0, + "e21": 2.0, + "e22": 2.0, + "e23": 2.0, + "e30": 2.0, + "e31": 2.0, + "e32": 2.0, + "e33": 2.0 + }, + "m_DefaultValue": { + "e00": 1.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 1.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 1.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "eb38b7d0c8b942e39f36f6c0ce59bc5f", + "m_Id": 0, + "m_DisplayName": "A", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "A", + "m_StageCapability": 3, + "m_Value": { + "e00": 10.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 0.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 0.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 0.0 + }, + "m_DefaultValue": { + "e00": 1.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 1.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 1.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicVectorMaterialSlot", + "m_ObjectId": "ebe2bd6120c344a687e6d11dfaf27a36", + "m_Id": 0, + "m_DisplayName": "In", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "In", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0, + "z": 0.0, + "w": 0.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "ed63283e635f4b6d9ee2d6f6f6b78071", + "m_Id": 2, + "m_DisplayName": "Out", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "e00": 0.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 0.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 0.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 0.0 + }, + "m_DefaultValue": { + "e00": 1.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 1.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 1.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "ede4d9695a64452fbb3a5a0ce7b8f335", + "m_Id": 0, + "m_DisplayName": "A", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "A", + "m_StageCapability": 3, + "m_Value": { + "e00": 0.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 0.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 0.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 0.0 + }, + "m_DefaultValue": { + "e00": 1.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 1.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 1.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "eefb98829c6e4fa987c54f7f097c268b", + "m_Id": 2, + "m_DisplayName": "Out", + "m_SlotType": 1, + "m_Hidden": false, + "m_ShaderOutputName": "Out", + "m_StageCapability": 3, + "m_Value": { + "e00": 0.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 0.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 0.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 0.0 + }, + "m_DefaultValue": { + "e00": 1.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 1.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 1.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector2MaterialSlot", + "m_ObjectId": "f0f27f13ef214317af0c3ee400948661", + "m_Id": 2, + "m_DisplayName": "Offset", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Offset", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0 + }, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "f3b3c65d9be34290b0255974b6fea8e9", + "m_Id": 1, + "m_DisplayName": "B", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "B", + "m_StageCapability": 3, + "m_Value": { + "e00": 2.0, + "e01": 2.0, + "e02": 2.0, + "e03": 2.0, + "e10": 2.0, + "e11": 2.0, + "e12": 2.0, + "e13": 2.0, + "e20": 2.0, + "e21": 2.0, + "e22": 2.0, + "e23": 2.0, + "e30": 2.0, + "e31": 2.0, + "e32": 2.0, + "e33": 2.0 + }, + "m_DefaultValue": { + "e00": 1.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 1.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 1.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "f79641e56a8543c4bbf4ebdfd50a1439", + "m_Id": 1, + "m_DisplayName": "X", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "X", + "m_StageCapability": 3, + "m_Value": 0.0, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "f8019586ffda49e0a9740765dac287a1", + "m_Id": 1, + "m_DisplayName": "X", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "X", + "m_StageCapability": 3, + "m_Value": 0.5, + "m_DefaultValue": 0.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.Vector1MaterialSlot", + "m_ObjectId": "f905d95214b84b7a8e2735c334c1459e", + "m_Id": 0, + "m_DisplayName": "Alpha", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "Alpha", + "m_StageCapability": 2, + "m_Value": 1.0, + "m_DefaultValue": 1.0, + "m_Labels": [] +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.SplitNode", + "m_ObjectId": "f96200a993224f34b89384672ab2a406", + "m_Group": { + "m_Id": "" + }, + "m_Name": "Split", + "m_DrawState": { + "m_Expanded": true, + "m_Position": { + "serializedVersion": "2", + "x": -455.0000305175781, + "y": -246.00001525878907, + "width": 119.0, + "height": 149.0 + } + }, + "m_Slots": [ + { + "m_Id": "5d4665babaa645df94a1247bf70b3603" + }, + { + "m_Id": "0bb96f8774614ddcb4c3a824860cce73" + }, + { + "m_Id": "696b032c402e487eb003dcae14940117" + }, + { + "m_Id": "b90087f8abe846fcb332b936dd73753c" + }, + { + "m_Id": "9218273854c94b12890e9e34ecf81fe0" + } + ], + "synonyms": [ + "separate" + ], + "m_Precision": 0, + "m_PreviewExpanded": true, + "m_DismissedVersion": 0, + "m_PreviewMode": 0, + "m_CustomColors": { + "m_SerializableColors": [] + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.DynamicValueMaterialSlot", + "m_ObjectId": "fc252630be4c4c13bfccedbbf2f6a77c", + "m_Id": 0, + "m_DisplayName": "A", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "A", + "m_StageCapability": 3, + "m_Value": { + "e00": 0.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 0.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 0.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 0.0 + }, + "m_DefaultValue": { + "e00": 1.0, + "e01": 0.0, + "e02": 0.0, + "e03": 0.0, + "e10": 0.0, + "e11": 1.0, + "e12": 0.0, + "e13": 0.0, + "e20": 0.0, + "e21": 0.0, + "e22": 1.0, + "e23": 0.0, + "e30": 0.0, + "e31": 0.0, + "e32": 0.0, + "e33": 1.0 + } +} + +{ + "m_SGVersion": 0, + "m_Type": "UnityEditor.ShaderGraph.UVMaterialSlot", + "m_ObjectId": "fd683dec93bb41bbb0fed22dbff0f1bb", + "m_Id": 0, + "m_DisplayName": "UV", + "m_SlotType": 0, + "m_Hidden": false, + "m_ShaderOutputName": "UV", + "m_StageCapability": 3, + "m_Value": { + "x": 0.0, + "y": 0.0 + }, + "m_DefaultValue": { + "x": 0.0, + "y": 0.0 + }, + "m_Labels": [], + "m_Channel": 0 +} + diff --git a/Basis/Packages/com.basis.tests/Interactable/InteractLine.shadergraph.meta b/Basis/Packages/com.basis.tests/Interactable/InteractLine.shadergraph.meta new file mode 100644 index 000000000..c59c31a7b --- /dev/null +++ b/Basis/Packages/com.basis.tests/Interactable/InteractLine.shadergraph.meta @@ -0,0 +1,10 @@ +fileFormatVersion: 2 +guid: 293b3b7cfcc5cae4f902ce5359836e58 +ScriptedImporter: + internalIDToNameTable: [] + externalObjects: {} + serializedVersion: 2 + userData: + assetBundleName: + assetBundleVariant: + script: {fileID: 11500000, guid: 625f186215c104763be7675aa2d941aa, type: 3} diff --git a/Basis/Packages/com.basis.tests/Interactable/InteractLineMat.mat b/Basis/Packages/com.basis.tests/Interactable/InteractLineMat.mat new file mode 100644 index 000000000..132b8d1ae --- /dev/null +++ b/Basis/Packages/com.basis.tests/Interactable/InteractLineMat.mat @@ -0,0 +1,161 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!114 &-5215317095955178722 +MonoBehaviour: + m_ObjectHideFlags: 11 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 0} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: d0353a89b1f911e48b9e16bdc9f2e058, type: 3} + m_Name: + m_EditorClassIdentifier: + version: 9 +--- !u!21 &2100000 +Material: + serializedVersion: 8 + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_Name: InteractLineMat + m_Shader: {fileID: -6465566751694194690, guid: 293b3b7cfcc5cae4f902ce5359836e58, type: 3} + m_Parent: {fileID: 0} + m_ModifiedSerializedProperties: 0 + m_ValidKeywords: [] + m_InvalidKeywords: [] + m_LightmapFlags: 4 + m_EnableInstancingVariants: 0 + m_DoubleSidedGI: 0 + m_CustomRenderQueue: 3100 + stringTagMap: {} + disabledShaderPasses: + - MOTIONVECTORS + m_LockedProperties: + m_SavedProperties: + serializedVersion: 3 + m_TexEnvs: + - _BaseMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _BumpMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailAlbedoMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailMask: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _DetailNormalMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _EmissionMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _MainTex: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _MetallicGlossMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _OcclusionMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _ParallaxMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - _SpecGlossMap: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - unity_Lightmaps: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - unity_LightmapsInd: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + - unity_ShadowMasks: + m_Texture: {fileID: 0} + m_Scale: {x: 1, y: 1} + m_Offset: {x: 0, y: 0} + m_Ints: [] + m_Floats: + - _AddPrecomputedVelocity: 0 + - _AlphaClip: 0 + - _AlphaToMask: 0 + - _Blend: 0 + - _BlendModePreserveSpecular: 1 + - _BlendOp: 0 + - _BumpScale: 1 + - _CameraFadingEnabled: 0 + - _CameraFarFadeDistance: 2 + - _CameraNearFadeDistance: 1 + - _CastShadows: 1 + - _ClearCoatMask: 0 + - _ClearCoatSmoothness: 0 + - _ColorMode: 0 + - _Cull: 2 + - _Cutoff: 0.5 + - _DetailAlbedoMapScale: 1 + - _DetailNormalMapScale: 1 + - _DistortionBlend: 0.5 + - _DistortionEnabled: 0 + - _DistortionStrength: 1 + - _DistortionStrengthScaled: 0.1 + - _DstBlend: 0 + - _DstBlendAlpha: 0 + - _EnvironmentReflections: 1 + - _FlipbookBlending: 0 + - _FlipbookMode: 0 + - _GlossMapScale: 0 + - _Glossiness: 0 + - _GlossyReflections: 0 + - _Intervals: 0.1 + - _Metallic: 0 + - _MiniMultiplier: 59.2 + - _Mode: 0 + - _OcclusionStrength: 1 + - _Parallax: 0.005 + - _PeakAmplitud: 0.61 + - _QueueControl: 1 + - _QueueOffset: 0 + - _ReceiveShadows: 1 + - _ScrollSpeed: 50 + - _Smoothness: 0.5 + - _SmoothnessTextureChannel: 0 + - _SoftParticlesEnabled: 0 + - _SoftParticlesFarFadeDistance: 1 + - _SoftParticlesNearFadeDistance: 0 + - _SpecularHighlights: 1 + - _SrcBlend: 1 + - _SrcBlendAlpha: 1 + - _Surface: 0 + - _WorkflowMode: 1 + - _ZTest: 8 + - _ZWrite: 1 + - _ZWriteControl: 1 + m_Colors: + - _BaseColor: {r: 0.48365337, g: 0.33490568, b: 1, a: 1} + - _BaseColorAddSubDiff: {r: 0, g: 0, b: 0, a: 0} + - _CameraFadeParams: {r: 0, g: 0, b: 0, a: 0} + - _Color: {r: 0.48365337, g: 0.33490565, b: 1, a: 1} + - _EmissionColor: {r: 0, g: 0, b: 0, a: 1} + - _SoftParticleFadeParams: {r: 0, g: 0, b: 0, a: 0} + - _SpecColor: {r: 0.19999996, g: 0.19999996, b: 0.19999996, a: 1} + m_BuildTextureStacks: [] + m_AllowLocking: 1 diff --git a/Basis/Packages/com.basis.server/BasisNetworkClient/BasisNetworkClient.csproj.meta b/Basis/Packages/com.basis.tests/Interactable/InteractLineMat.mat.meta similarity index 75% rename from Basis/Packages/com.basis.server/BasisNetworkClient/BasisNetworkClient.csproj.meta rename to Basis/Packages/com.basis.tests/Interactable/InteractLineMat.mat.meta index 2d1919db2..e2bc51050 100644 --- a/Basis/Packages/com.basis.server/BasisNetworkClient/BasisNetworkClient.csproj.meta +++ b/Basis/Packages/com.basis.tests/Interactable/InteractLineMat.mat.meta @@ -1,7 +1,8 @@ fileFormatVersion: 2 guid: ebe88bc64d28a8e4586b89098577937f -DefaultImporter: +NativeFormatImporter: externalObjects: {} + mainObjectFileID: 0 userData: assetBundleName: assetBundleVariant: diff --git a/Basis/Packages/com.basis.tests/Interactable/InteractableObject.cs b/Basis/Packages/com.basis.tests/Interactable/InteractableObject.cs new file mode 100644 index 000000000..ae2a8fbf4 --- /dev/null +++ b/Basis/Packages/com.basis.tests/Interactable/InteractableObject.cs @@ -0,0 +1,77 @@ +using Basis.Scripts.Device_Management.Devices; +using UnityEngine; + + +// needs rigidbody for hover sphere `OnTriggerStay` +public abstract class InteractableObject: MonoBehaviour { + public CachedList InputSources; + + [Header("Interactable Settings")] + public float InteractRange = 1.0f; + public bool CanEquip = false; + public Vector3 equipPos; + public Quaternion equipRot; + + + /// + /// Check if object is within range based on its transform and Interact Range + /// + /// + /// + public virtual bool IsWithinRange(Vector3 source) + { + Collider collider = GetCollider(); + if (collider != null) + { + return Vector3.Distance(collider.ClosestPoint(source), source) <= InteractRange; + } + // fall back to object transform distance + return Vector3.Distance(transform.position, source) <= InteractRange; + } + + /// + /// Gets collider on self, override with cached get whenever possible + /// + public virtual Collider GetCollider() + { + if (TryGetComponent(out Collider col)) + { + return col; + } + return null; + } + abstract public bool CanHover(BasisInput input); + abstract public bool IsHoveredBy(BasisInput input); + + abstract public bool CanInteract(BasisInput input); + abstract public bool IsInteractingWith(BasisInput input); + + abstract public void OnInteractStart(BasisInput input); + + + abstract public void OnInteractEnd(BasisInput input); + + abstract public void OnHoverStart(BasisInput input); + + abstract public void OnHoverEnd(BasisInput input, bool willInteract); + + + abstract public void InputUpdate(); + + public struct InputSource + { + public InputSource(BasisInput source, bool isInteracting) + { + Source = source; + IsInteracting = isInteracting; + } + public BasisInput Source {get; set;} + /// + /// - true: source interacting with object + /// - false: source hovering + /// If not either this source should not be in the list! + /// + public bool IsInteracting {get; set;} + } +} + diff --git a/Basis/Packages/com.basis.tests/Interactable/InteractableObject.cs.meta b/Basis/Packages/com.basis.tests/Interactable/InteractableObject.cs.meta new file mode 100644 index 000000000..79cd35c12 --- /dev/null +++ b/Basis/Packages/com.basis.tests/Interactable/InteractableObject.cs.meta @@ -0,0 +1,2 @@ +fileFormatVersion: 2 +guid: af3b0922125ef274ba2b35ccbbc445c4 \ No newline at end of file diff --git a/Basis/Packages/com.basis.tests/Interactable/InteractableTestScene.unity b/Basis/Packages/com.basis.tests/Interactable/InteractableTestScene.unity new file mode 100644 index 000000000..0ff4a4a79 --- /dev/null +++ b/Basis/Packages/com.basis.tests/Interactable/InteractableTestScene.unity @@ -0,0 +1,2968 @@ +%YAML 1.1 +%TAG !u! tag:unity3d.com,2011: +--- !u!29 &1 +OcclusionCullingSettings: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_OcclusionBakeSettings: + smallestOccluder: 5 + smallestHole: 0.25 + backfaceThreshold: 100 + m_SceneGUID: 00000000000000000000000000000000 + m_OcclusionCullingData: {fileID: 0} +--- !u!104 &2 +RenderSettings: + m_ObjectHideFlags: 0 + serializedVersion: 10 + m_Fog: 0 + m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1} + m_FogMode: 3 + m_FogDensity: 0.01 + m_LinearFogStart: 0 + m_LinearFogEnd: 300 + m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1} + m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1} + m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1} + m_AmbientIntensity: 1 + m_AmbientMode: 0 + m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1} + m_SkyboxMaterial: {fileID: 10304, guid: 0000000000000000f000000000000000, type: 0} + m_HaloStrength: 0.5 + m_FlareStrength: 1 + m_FlareFadeSpeed: 3 + m_HaloTexture: {fileID: 0} + m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0} + m_DefaultReflectionMode: 0 + m_DefaultReflectionResolution: 128 + m_ReflectionBounces: 1 + m_ReflectionIntensity: 1 + m_CustomReflection: {fileID: 0} + m_Sun: {fileID: 0} + m_UseRadianceAmbientProbe: 0 +--- !u!157 &3 +LightmapSettings: + m_ObjectHideFlags: 0 + serializedVersion: 13 + m_BakeOnSceneLoad: 0 + m_GISettings: + serializedVersion: 2 + m_BounceScale: 1 + m_IndirectOutputScale: 1 + m_AlbedoBoost: 1 + m_EnvironmentLightingMode: 0 + m_EnableBakedLightmaps: 1 + m_EnableRealtimeLightmaps: 0 + m_LightmapEditorSettings: + serializedVersion: 12 + m_Resolution: 2 + m_BakeResolution: 40 + m_AtlasSize: 1024 + m_AO: 0 + m_AOMaxDistance: 1 + m_CompAOExponent: 1 + m_CompAOExponentDirect: 0 + m_ExtractAmbientOcclusion: 0 + m_Padding: 2 + m_LightmapParameters: {fileID: 0} + m_LightmapsBakeMode: 1 + m_TextureCompression: 1 + m_ReflectionCompression: 2 + m_MixedBakeMode: 2 + m_BakeBackend: 1 + m_PVRSampling: 1 + m_PVRDirectSampleCount: 32 + m_PVRSampleCount: 512 + m_PVRBounces: 2 + m_PVREnvironmentSampleCount: 256 + m_PVREnvironmentReferencePointCount: 2048 + m_PVRFilteringMode: 1 + m_PVRDenoiserTypeDirect: 1 + m_PVRDenoiserTypeIndirect: 1 + m_PVRDenoiserTypeAO: 1 + m_PVRFilterTypeDirect: 0 + m_PVRFilterTypeIndirect: 0 + m_PVRFilterTypeAO: 0 + m_PVREnvironmentMIS: 1 + m_PVRCulling: 1 + m_PVRFilteringGaussRadiusDirect: 1 + m_PVRFilteringGaussRadiusIndirect: 1 + m_PVRFilteringGaussRadiusAO: 1 + m_PVRFilteringAtrousPositionSigmaDirect: 0.5 + m_PVRFilteringAtrousPositionSigmaIndirect: 2 + m_PVRFilteringAtrousPositionSigmaAO: 1 + m_ExportTrainingData: 0 + m_TrainingDataDestination: TrainingData + m_LightProbeSampleCountMultiplier: 4 + m_LightingDataAsset: {fileID: 20201, guid: 0000000000000000f000000000000000, type: 0} + m_LightingSettings: {fileID: 0} +--- !u!196 &4 +NavMeshSettings: + serializedVersion: 2 + m_ObjectHideFlags: 0 + m_BuildSettings: + serializedVersion: 3 + agentTypeID: 0 + agentRadius: 0.5 + agentHeight: 2 + agentSlope: 45 + agentClimb: 0.4 + ledgeDropHeight: 0 + maxJumpAcrossDistance: 0 + minRegionArea: 2 + manualCellSize: 0 + cellSize: 0.16666667 + manualTileSize: 0 + tileSize: 256 + buildHeightMesh: 0 + maxJobWorkers: 0 + preserveTilesOutsideBounds: 0 + debug: + m_Flags: 0 + m_NavMeshData: {fileID: 0} +--- !u!1 &11334214 stripped +GameObject: + m_CorrespondingSourceObject: {fileID: 8381068889838832174, guid: 2d8f3575614e0d7419c84f967185cdac, type: 3} + m_PrefabInstance: {fileID: 953741117} + m_PrefabAsset: {fileID: 0} +--- !u!1773428102 &11334222 +ParentConstraint: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 11334214} + m_Enabled: 1 + serializedVersion: 2 + m_Weight: 1 + m_TranslationAtRest: {x: -1.291, y: 1, z: 0} + m_RotationAtRest: {x: 45.029, y: 67.472, z: 49.67} + m_TranslationOffsets: [] + m_RotationOffsets: [] + m_AffectTranslationX: 1 + m_AffectTranslationY: 1 + m_AffectTranslationZ: 1 + m_AffectRotationX: 1 + m_AffectRotationY: 1 + m_AffectRotationZ: 1 + m_Active: 0 + m_IsLocked: 0 + m_Sources: [] +--- !u!1 &21929887 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 21929894} + - component: {fileID: 21929893} + - component: {fileID: 21929892} + - component: {fileID: 21929891} + - component: {fileID: 21929890} + - component: {fileID: 21929889} + - component: {fileID: 21929895} + m_Layer: 8 + m_Name: Sphere + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!114 &21929889 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 21929887} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 690ab0b52a9b06b4498ad303592416aa, type: 3} + m_Name: + m_EditorClassIdentifier: + InteractRange: 1 + CanEquip: 0 + equipPos: {x: 0, y: 0, z: 0} + equipRot: {x: 0, y: 0, z: 0, w: 0} + KinematicWhileInteracting: 0 + LocalOnly: 1 + ColliderRef: {fileID: 0} + RigidRef: {fileID: 0} + ConstraintRef: {fileID: 0} +--- !u!54 &21929890 +Rigidbody: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 21929887} + serializedVersion: 4 + m_Mass: 1 + m_Drag: 0 + m_AngularDrag: 0.05 + m_CenterOfMass: {x: 0, y: 0, z: 0} + m_InertiaTensor: {x: 1, y: 1, z: 1} + m_InertiaRotation: {x: 0, y: 0, z: 0, w: 1} + m_IncludeLayers: + serializedVersion: 2 + m_Bits: 0 + m_ExcludeLayers: + serializedVersion: 2 + m_Bits: 0 + m_ImplicitCom: 1 + m_ImplicitTensor: 1 + m_UseGravity: 0 + m_IsKinematic: 1 + m_Interpolate: 0 + m_Constraints: 0 + m_CollisionDetection: 0 +--- !u!135 &21929891 +SphereCollider: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 21929887} + m_Material: {fileID: 0} + m_IncludeLayers: + serializedVersion: 2 + m_Bits: 0 + m_ExcludeLayers: + serializedVersion: 2 + m_Bits: 0 + m_LayerOverridePriority: 0 + m_IsTrigger: 0 + m_ProvidesContacts: 0 + m_Enabled: 1 + serializedVersion: 3 + m_Radius: 0.5 + m_Center: {x: 0, y: 0, z: 0} +--- !u!23 &21929892 +MeshRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 21929887} + m_Enabled: 1 + m_CastShadows: 1 + m_ReceiveShadows: 1 + m_DynamicOccludee: 1 + m_StaticShadowCaster: 0 + m_MotionVectors: 1 + m_LightProbeUsage: 1 + m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 + m_RayTraceProcedural: 0 + m_RayTracingAccelStructBuildFlagsOverride: 0 + m_RayTracingAccelStructBuildFlags: 1 + m_SmallMeshCulling: 1 + m_RenderingLayerMask: 1 + m_RendererPriority: 0 + m_Materials: + - {fileID: 2100000, guid: 6a1143ee683302f4aa628c052723efc1, type: 2} + m_StaticBatchInfo: + firstSubMesh: 0 + subMeshCount: 0 + m_StaticBatchRoot: {fileID: 0} + m_ProbeAnchor: {fileID: 0} + m_LightProbeVolumeOverride: {fileID: 0} + m_ScaleInLightmap: 1 + m_ReceiveGI: 1 + m_PreserveUVs: 0 + m_IgnoreNormalsForChartDetection: 0 + m_ImportantGI: 0 + m_StitchLightmapSeams: 1 + m_SelectedEditorRenderState: 3 + m_MinimumChartSize: 4 + m_AutoUVMaxDistance: 0.5 + m_AutoUVMaxAngle: 89 + m_LightmapParameters: {fileID: 0} + m_SortingLayerID: 0 + m_SortingLayer: 0 + m_SortingOrder: 0 + m_AdditionalVertexStreams: {fileID: 0} +--- !u!33 &21929893 +MeshFilter: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 21929887} + m_Mesh: {fileID: 10207, guid: 0000000000000000e000000000000000, type: 0} +--- !u!4 &21929894 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 21929887} + serializedVersion: 2 + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: -0.849, y: 0.953, z: -1.678} + m_LocalScale: {x: 0.2, y: 0.2, z: 0.2} + m_ConstrainProportionsScale: 1 + m_Children: [] + m_Father: {fileID: 0} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!1773428102 &21929895 +ParentConstraint: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 21929887} + m_Enabled: 1 + serializedVersion: 2 + m_Weight: 1 + m_TranslationAtRest: {x: -0.849, y: 0.953, z: -1.678} + m_RotationAtRest: {x: 0, y: 0, z: 0} + m_TranslationOffsets: [] + m_RotationOffsets: [] + m_AffectTranslationX: 1 + m_AffectTranslationY: 1 + m_AffectTranslationZ: 1 + m_AffectRotationX: 1 + m_AffectRotationY: 1 + m_AffectRotationZ: 1 + m_Active: 0 + m_IsLocked: 0 + m_Sources: [] +--- !u!1 &241820446 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 241820450} + - component: {fileID: 241820449} + - component: {fileID: 241820448} + - component: {fileID: 241820447} + m_Layer: 0 + m_Name: Plane + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!64 &241820447 +MeshCollider: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 241820446} + m_Material: {fileID: 0} + m_IncludeLayers: + serializedVersion: 2 + m_Bits: 0 + m_ExcludeLayers: + serializedVersion: 2 + m_Bits: 0 + m_LayerOverridePriority: 0 + m_IsTrigger: 0 + m_ProvidesContacts: 0 + m_Enabled: 1 + serializedVersion: 5 + m_Convex: 0 + m_CookingOptions: 30 + m_Mesh: {fileID: 10209, guid: 0000000000000000e000000000000000, type: 0} +--- !u!23 &241820448 +MeshRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 241820446} + m_Enabled: 1 + m_CastShadows: 1 + m_ReceiveShadows: 1 + m_DynamicOccludee: 1 + m_StaticShadowCaster: 0 + m_MotionVectors: 1 + m_LightProbeUsage: 1 + m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 + m_RayTraceProcedural: 0 + m_RayTracingAccelStructBuildFlagsOverride: 0 + m_RayTracingAccelStructBuildFlags: 1 + m_SmallMeshCulling: 1 + m_RenderingLayerMask: 1 + m_RendererPriority: 0 + m_Materials: + - {fileID: 2100000, guid: 31321ba15b8f8eb4c954353edc038b1d, type: 2} + m_StaticBatchInfo: + firstSubMesh: 0 + subMeshCount: 0 + m_StaticBatchRoot: {fileID: 0} + m_ProbeAnchor: {fileID: 0} + m_LightProbeVolumeOverride: {fileID: 0} + m_ScaleInLightmap: 1 + m_ReceiveGI: 1 + m_PreserveUVs: 0 + m_IgnoreNormalsForChartDetection: 0 + m_ImportantGI: 0 + m_StitchLightmapSeams: 1 + m_SelectedEditorRenderState: 3 + m_MinimumChartSize: 4 + m_AutoUVMaxDistance: 0.5 + m_AutoUVMaxAngle: 89 + m_LightmapParameters: {fileID: 0} + m_SortingLayerID: 0 + m_SortingLayer: 0 + m_SortingOrder: 0 + m_AdditionalVertexStreams: {fileID: 0} +--- !u!33 &241820449 +MeshFilter: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 241820446} + m_Mesh: {fileID: 10209, guid: 0000000000000000e000000000000000, type: 0} +--- !u!4 &241820450 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 241820446} + serializedVersion: 2 + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 0} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!1001 &264690768 +PrefabInstance: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Modification: + serializedVersion: 3 + m_TransformParent: {fileID: 0} + m_Modifications: + - target: {fileID: 1001019263030247314, guid: 2d8f3575614e0d7419c84f967185cdac, type: 3} + propertyPath: m_IsKinematic + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 2600401473938556946, guid: 2d8f3575614e0d7419c84f967185cdac, type: 3} + propertyPath: m_Size.x + value: 0.48 + objectReference: {fileID: 0} + - target: {fileID: 2600401473938556946, guid: 2d8f3575614e0d7419c84f967185cdac, type: 3} + propertyPath: m_Size.y + value: 0.43 + objectReference: {fileID: 0} + - target: {fileID: 2600401473938556946, guid: 2d8f3575614e0d7419c84f967185cdac, type: 3} + propertyPath: m_Size.z + value: 3.71 + objectReference: {fileID: 0} + - target: {fileID: 5036961803400065188, guid: 2d8f3575614e0d7419c84f967185cdac, type: 3} + propertyPath: KinematicWhileInteracting + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 6918077497000395064, guid: 2d8f3575614e0d7419c84f967185cdac, type: 3} + propertyPath: m_LocalPosition.x + value: -0.92800003 + objectReference: {fileID: 0} + - target: {fileID: 6918077497000395064, guid: 2d8f3575614e0d7419c84f967185cdac, type: 3} + propertyPath: m_LocalPosition.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 6918077497000395064, guid: 2d8f3575614e0d7419c84f967185cdac, type: 3} + propertyPath: m_LocalPosition.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 6918077497000395064, guid: 2d8f3575614e0d7419c84f967185cdac, type: 3} + propertyPath: m_LocalRotation.w + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 6918077497000395064, guid: 2d8f3575614e0d7419c84f967185cdac, type: 3} + propertyPath: m_LocalRotation.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 6918077497000395064, guid: 2d8f3575614e0d7419c84f967185cdac, type: 3} + propertyPath: m_LocalRotation.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 6918077497000395064, guid: 2d8f3575614e0d7419c84f967185cdac, type: 3} + propertyPath: m_LocalRotation.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 6918077497000395064, guid: 2d8f3575614e0d7419c84f967185cdac, type: 3} + propertyPath: m_LocalEulerAnglesHint.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 6918077497000395064, guid: 2d8f3575614e0d7419c84f967185cdac, type: 3} + propertyPath: m_LocalEulerAnglesHint.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 6918077497000395064, guid: 2d8f3575614e0d7419c84f967185cdac, type: 3} + propertyPath: m_LocalEulerAnglesHint.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 8381068889838832174, guid: 2d8f3575614e0d7419c84f967185cdac, type: 3} + propertyPath: m_Name + value: TestPickup (2) + objectReference: {fileID: 0} + - target: {fileID: 8381068889838832174, guid: 2d8f3575614e0d7419c84f967185cdac, type: 3} + propertyPath: m_Layer + value: 8 + objectReference: {fileID: 0} + - target: {fileID: 8381068889838832174, guid: 2d8f3575614e0d7419c84f967185cdac, type: 3} + propertyPath: m_IsActive + value: 1 + objectReference: {fileID: 0} + m_RemovedComponents: [] + m_RemovedGameObjects: [] + m_AddedGameObjects: [] + m_AddedComponents: + - targetCorrespondingSourceObject: {fileID: 8381068889838832174, guid: 2d8f3575614e0d7419c84f967185cdac, type: 3} + insertIndex: -1 + addedObject: {fileID: 609646646} + m_SourcePrefab: {fileID: 100100000, guid: 2d8f3575614e0d7419c84f967185cdac, type: 3} +--- !u!1001 &391151166 +PrefabInstance: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Modification: + serializedVersion: 3 + m_TransformParent: {fileID: 0} + m_Modifications: + - target: {fileID: 1001019263030247314, guid: 2d8f3575614e0d7419c84f967185cdac, type: 3} + propertyPath: m_UseGravity + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 1001019263030247314, guid: 2d8f3575614e0d7419c84f967185cdac, type: 3} + propertyPath: m_ImplicitCom + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 1001019263030247314, guid: 2d8f3575614e0d7419c84f967185cdac, type: 3} + propertyPath: m_IsKinematic + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 2600401473938556946, guid: 2d8f3575614e0d7419c84f967185cdac, type: 3} + propertyPath: m_IsTrigger + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 2600401473938556946, guid: 2d8f3575614e0d7419c84f967185cdac, type: 3} + propertyPath: m_ExcludeLayers.m_Bits + value: 192 + objectReference: {fileID: 0} + - target: {fileID: 5036961803400065188, guid: 2d8f3575614e0d7419c84f967185cdac, type: 3} + propertyPath: KinematicWhileInteracting + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 6918077497000395064, guid: 2d8f3575614e0d7419c84f967185cdac, type: 3} + propertyPath: m_LocalPosition.x + value: -0.799 + objectReference: {fileID: 0} + - target: {fileID: 6918077497000395064, guid: 2d8f3575614e0d7419c84f967185cdac, type: 3} + propertyPath: m_LocalPosition.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 6918077497000395064, guid: 2d8f3575614e0d7419c84f967185cdac, type: 3} + propertyPath: m_LocalPosition.z + value: 0.502 + objectReference: {fileID: 0} + - target: {fileID: 6918077497000395064, guid: 2d8f3575614e0d7419c84f967185cdac, type: 3} + propertyPath: m_LocalRotation.w + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 6918077497000395064, guid: 2d8f3575614e0d7419c84f967185cdac, type: 3} + propertyPath: m_LocalRotation.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 6918077497000395064, guid: 2d8f3575614e0d7419c84f967185cdac, type: 3} + propertyPath: m_LocalRotation.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 6918077497000395064, guid: 2d8f3575614e0d7419c84f967185cdac, type: 3} + propertyPath: m_LocalRotation.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 6918077497000395064, guid: 2d8f3575614e0d7419c84f967185cdac, type: 3} + propertyPath: m_LocalEulerAnglesHint.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 6918077497000395064, guid: 2d8f3575614e0d7419c84f967185cdac, type: 3} + propertyPath: m_LocalEulerAnglesHint.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 6918077497000395064, guid: 2d8f3575614e0d7419c84f967185cdac, type: 3} + propertyPath: m_LocalEulerAnglesHint.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 8381068889838832174, guid: 2d8f3575614e0d7419c84f967185cdac, type: 3} + propertyPath: m_Name + value: TestPickup (4) + objectReference: {fileID: 0} + - target: {fileID: 8381068889838832174, guid: 2d8f3575614e0d7419c84f967185cdac, type: 3} + propertyPath: m_Layer + value: 8 + objectReference: {fileID: 0} + - target: {fileID: 8381068889838832174, guid: 2d8f3575614e0d7419c84f967185cdac, type: 3} + propertyPath: m_IsActive + value: 1 + objectReference: {fileID: 0} + m_RemovedComponents: [] + m_RemovedGameObjects: [] + m_AddedGameObjects: [] + m_AddedComponents: [] + m_SourcePrefab: {fileID: 100100000, guid: 2d8f3575614e0d7419c84f967185cdac, type: 3} +--- !u!1 &462462406 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 462462413} + - component: {fileID: 462462412} + - component: {fileID: 462462411} + - component: {fileID: 462462410} + - component: {fileID: 462462409} + - component: {fileID: 462462408} + - component: {fileID: 462462414} + m_Layer: 8 + m_Name: Sphere (1) + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!114 &462462408 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 462462406} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 690ab0b52a9b06b4498ad303592416aa, type: 3} + m_Name: + m_EditorClassIdentifier: + InteractRange: 1 + CanEquip: 0 + equipPos: {x: 0, y: 0, z: 0} + equipRot: {x: 0, y: 0, z: 0, w: 0} + KinematicWhileInteracting: 0 + LocalOnly: 1 + ColliderRef: {fileID: 0} + RigidRef: {fileID: 0} + ConstraintRef: {fileID: 0} +--- !u!54 &462462409 +Rigidbody: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 462462406} + serializedVersion: 4 + m_Mass: 1 + m_Drag: 0 + m_AngularDrag: 0.05 + m_CenterOfMass: {x: 0, y: 0, z: 0} + m_InertiaTensor: {x: 1, y: 1, z: 1} + m_InertiaRotation: {x: 0, y: 0, z: 0, w: 1} + m_IncludeLayers: + serializedVersion: 2 + m_Bits: 0 + m_ExcludeLayers: + serializedVersion: 2 + m_Bits: 0 + m_ImplicitCom: 1 + m_ImplicitTensor: 1 + m_UseGravity: 0 + m_IsKinematic: 1 + m_Interpolate: 0 + m_Constraints: 0 + m_CollisionDetection: 0 +--- !u!135 &462462410 +SphereCollider: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 462462406} + m_Material: {fileID: 0} + m_IncludeLayers: + serializedVersion: 2 + m_Bits: 0 + m_ExcludeLayers: + serializedVersion: 2 + m_Bits: 0 + m_LayerOverridePriority: 0 + m_IsTrigger: 0 + m_ProvidesContacts: 0 + m_Enabled: 1 + serializedVersion: 3 + m_Radius: 0.3 + m_Center: {x: 0, y: 0, z: 0} +--- !u!23 &462462411 +MeshRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 462462406} + m_Enabled: 1 + m_CastShadows: 1 + m_ReceiveShadows: 1 + m_DynamicOccludee: 1 + m_StaticShadowCaster: 0 + m_MotionVectors: 1 + m_LightProbeUsage: 1 + m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 + m_RayTraceProcedural: 0 + m_RayTracingAccelStructBuildFlagsOverride: 0 + m_RayTracingAccelStructBuildFlags: 1 + m_SmallMeshCulling: 1 + m_RenderingLayerMask: 1 + m_RendererPriority: 0 + m_Materials: + - {fileID: 2100000, guid: 31321ba15b8f8eb4c954353edc038b1d, type: 2} + m_StaticBatchInfo: + firstSubMesh: 0 + subMeshCount: 0 + m_StaticBatchRoot: {fileID: 0} + m_ProbeAnchor: {fileID: 0} + m_LightProbeVolumeOverride: {fileID: 0} + m_ScaleInLightmap: 1 + m_ReceiveGI: 1 + m_PreserveUVs: 0 + m_IgnoreNormalsForChartDetection: 0 + m_ImportantGI: 0 + m_StitchLightmapSeams: 1 + m_SelectedEditorRenderState: 3 + m_MinimumChartSize: 4 + m_AutoUVMaxDistance: 0.5 + m_AutoUVMaxAngle: 89 + m_LightmapParameters: {fileID: 0} + m_SortingLayerID: 0 + m_SortingLayer: 0 + m_SortingOrder: 0 + m_AdditionalVertexStreams: {fileID: 0} +--- !u!33 &462462412 +MeshFilter: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 462462406} + m_Mesh: {fileID: 10207, guid: 0000000000000000e000000000000000, type: 0} +--- !u!4 &462462413 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 462462406} + serializedVersion: 2 + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: -1.191, y: 0.953, z: -1.678} + m_LocalScale: {x: 0.2, y: 0.2, z: 0.2} + m_ConstrainProportionsScale: 1 + m_Children: [] + m_Father: {fileID: 0} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!1773428102 &462462414 +ParentConstraint: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 462462406} + m_Enabled: 1 + serializedVersion: 2 + m_Weight: 1 + m_TranslationAtRest: {x: -1.191, y: 0.953, z: -1.678} + m_RotationAtRest: {x: 0, y: 0, z: 0} + m_TranslationOffsets: [] + m_RotationOffsets: [] + m_AffectTranslationX: 1 + m_AffectTranslationY: 1 + m_AffectTranslationZ: 1 + m_AffectRotationX: 1 + m_AffectRotationY: 1 + m_AffectRotationZ: 1 + m_Active: 0 + m_IsLocked: 0 + m_Sources: [] +--- !u!1 &556741047 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 556741054} + - component: {fileID: 556741053} + - component: {fileID: 556741052} + - component: {fileID: 556741051} + - component: {fileID: 556741050} + - component: {fileID: 556741049} + - component: {fileID: 556741055} + m_Layer: 8 + m_Name: Sphere (2) + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!114 &556741049 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 556741047} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 690ab0b52a9b06b4498ad303592416aa, type: 3} + m_Name: + m_EditorClassIdentifier: + InteractRange: 1 + CanEquip: 0 + equipPos: {x: 0, y: 0, z: 0} + equipRot: {x: 0, y: 0, z: 0, w: 0} + KinematicWhileInteracting: 0 + LocalOnly: 1 + ColliderRef: {fileID: 0} + RigidRef: {fileID: 0} + ConstraintRef: {fileID: 0} +--- !u!54 &556741050 +Rigidbody: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 556741047} + serializedVersion: 4 + m_Mass: 1 + m_Drag: 0 + m_AngularDrag: 0.05 + m_CenterOfMass: {x: 0, y: 0, z: 0} + m_InertiaTensor: {x: 1, y: 1, z: 1} + m_InertiaRotation: {x: 0, y: 0, z: 0, w: 1} + m_IncludeLayers: + serializedVersion: 2 + m_Bits: 0 + m_ExcludeLayers: + serializedVersion: 2 + m_Bits: 0 + m_ImplicitCom: 1 + m_ImplicitTensor: 1 + m_UseGravity: 0 + m_IsKinematic: 1 + m_Interpolate: 0 + m_Constraints: 0 + m_CollisionDetection: 0 +--- !u!135 &556741051 +SphereCollider: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 556741047} + m_Material: {fileID: 0} + m_IncludeLayers: + serializedVersion: 2 + m_Bits: 0 + m_ExcludeLayers: + serializedVersion: 2 + m_Bits: 0 + m_LayerOverridePriority: 0 + m_IsTrigger: 0 + m_ProvidesContacts: 0 + m_Enabled: 1 + serializedVersion: 3 + m_Radius: 0.5 + m_Center: {x: 0, y: 1.24, z: 0} +--- !u!23 &556741052 +MeshRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 556741047} + m_Enabled: 1 + m_CastShadows: 1 + m_ReceiveShadows: 1 + m_DynamicOccludee: 1 + m_StaticShadowCaster: 0 + m_MotionVectors: 1 + m_LightProbeUsage: 1 + m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 + m_RayTraceProcedural: 0 + m_RayTracingAccelStructBuildFlagsOverride: 0 + m_RayTracingAccelStructBuildFlags: 1 + m_SmallMeshCulling: 1 + m_RenderingLayerMask: 1 + m_RendererPriority: 0 + m_Materials: + - {fileID: 2100000, guid: 31321ba15b8f8eb4c954353edc038b1d, type: 2} + m_StaticBatchInfo: + firstSubMesh: 0 + subMeshCount: 0 + m_StaticBatchRoot: {fileID: 0} + m_ProbeAnchor: {fileID: 0} + m_LightProbeVolumeOverride: {fileID: 0} + m_ScaleInLightmap: 1 + m_ReceiveGI: 1 + m_PreserveUVs: 0 + m_IgnoreNormalsForChartDetection: 0 + m_ImportantGI: 0 + m_StitchLightmapSeams: 1 + m_SelectedEditorRenderState: 3 + m_MinimumChartSize: 4 + m_AutoUVMaxDistance: 0.5 + m_AutoUVMaxAngle: 89 + m_LightmapParameters: {fileID: 0} + m_SortingLayerID: 0 + m_SortingLayer: 0 + m_SortingOrder: 0 + m_AdditionalVertexStreams: {fileID: 0} +--- !u!33 &556741053 +MeshFilter: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 556741047} + m_Mesh: {fileID: 10207, guid: 0000000000000000e000000000000000, type: 0} +--- !u!4 &556741054 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 556741047} + serializedVersion: 2 + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: -1.546, y: 0.953, z: -1.678} + m_LocalScale: {x: 0.2, y: 0.2, z: 0.2} + m_ConstrainProportionsScale: 1 + m_Children: [] + m_Father: {fileID: 0} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!1773428102 &556741055 +ParentConstraint: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 556741047} + m_Enabled: 1 + serializedVersion: 2 + m_Weight: 1 + m_TranslationAtRest: {x: -1.546, y: 0.953, z: -1.678} + m_RotationAtRest: {x: 0, y: 0, z: 0} + m_TranslationOffsets: [] + m_RotationOffsets: [] + m_AffectTranslationX: 1 + m_AffectTranslationY: 1 + m_AffectTranslationZ: 1 + m_AffectRotationX: 1 + m_AffectRotationY: 1 + m_AffectRotationZ: 1 + m_Active: 0 + m_IsLocked: 0 + m_Sources: [] +--- !u!1 &609646638 stripped +GameObject: + m_CorrespondingSourceObject: {fileID: 8381068889838832174, guid: 2d8f3575614e0d7419c84f967185cdac, type: 3} + m_PrefabInstance: {fileID: 264690768} + m_PrefabAsset: {fileID: 0} +--- !u!1773428102 &609646646 +ParentConstraint: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 609646638} + m_Enabled: 1 + serializedVersion: 2 + m_Weight: 1 + m_TranslationAtRest: {x: -0.92800003, y: 1, z: 0} + m_RotationAtRest: {x: 0, y: 0, z: 0} + m_TranslationOffsets: [] + m_RotationOffsets: [] + m_AffectTranslationX: 1 + m_AffectTranslationY: 1 + m_AffectTranslationZ: 1 + m_AffectRotationX: 1 + m_AffectRotationY: 1 + m_AffectRotationZ: 1 + m_Active: 0 + m_IsLocked: 0 + m_Sources: [] +--- !u!1001 &782519661 +PrefabInstance: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Modification: + serializedVersion: 3 + m_TransformParent: {fileID: 0} + m_Modifications: + - target: {fileID: 1001019263030247314, guid: 2d8f3575614e0d7419c84f967185cdac, type: 3} + propertyPath: m_IsKinematic + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 2600401473938556946, guid: 2d8f3575614e0d7419c84f967185cdac, type: 3} + propertyPath: m_Center.y + value: 1.03 + objectReference: {fileID: 0} + - target: {fileID: 5036961803400065188, guid: 2d8f3575614e0d7419c84f967185cdac, type: 3} + propertyPath: KinematicWhileInteracting + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 6918077497000395064, guid: 2d8f3575614e0d7419c84f967185cdac, type: 3} + propertyPath: m_LocalPosition.x + value: -1.1370001 + objectReference: {fileID: 0} + - target: {fileID: 6918077497000395064, guid: 2d8f3575614e0d7419c84f967185cdac, type: 3} + propertyPath: m_LocalPosition.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 6918077497000395064, guid: 2d8f3575614e0d7419c84f967185cdac, type: 3} + propertyPath: m_LocalPosition.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 6918077497000395064, guid: 2d8f3575614e0d7419c84f967185cdac, type: 3} + propertyPath: m_LocalRotation.w + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 6918077497000395064, guid: 2d8f3575614e0d7419c84f967185cdac, type: 3} + propertyPath: m_LocalRotation.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 6918077497000395064, guid: 2d8f3575614e0d7419c84f967185cdac, type: 3} + propertyPath: m_LocalRotation.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 6918077497000395064, guid: 2d8f3575614e0d7419c84f967185cdac, type: 3} + propertyPath: m_LocalRotation.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 6918077497000395064, guid: 2d8f3575614e0d7419c84f967185cdac, type: 3} + propertyPath: m_LocalEulerAnglesHint.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 6918077497000395064, guid: 2d8f3575614e0d7419c84f967185cdac, type: 3} + propertyPath: m_LocalEulerAnglesHint.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 6918077497000395064, guid: 2d8f3575614e0d7419c84f967185cdac, type: 3} + propertyPath: m_LocalEulerAnglesHint.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 8381068889838832174, guid: 2d8f3575614e0d7419c84f967185cdac, type: 3} + propertyPath: m_Name + value: TestPickup (1) + objectReference: {fileID: 0} + - target: {fileID: 8381068889838832174, guid: 2d8f3575614e0d7419c84f967185cdac, type: 3} + propertyPath: m_Layer + value: 8 + objectReference: {fileID: 0} + - target: {fileID: 8381068889838832174, guid: 2d8f3575614e0d7419c84f967185cdac, type: 3} + propertyPath: m_IsActive + value: 1 + objectReference: {fileID: 0} + m_RemovedComponents: [] + m_RemovedGameObjects: [] + m_AddedGameObjects: [] + m_AddedComponents: + - targetCorrespondingSourceObject: {fileID: 8381068889838832174, guid: 2d8f3575614e0d7419c84f967185cdac, type: 3} + insertIndex: -1 + addedObject: {fileID: 1212161320} + m_SourcePrefab: {fileID: 100100000, guid: 2d8f3575614e0d7419c84f967185cdac, type: 3} +--- !u!1001 &857767427 +PrefabInstance: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Modification: + serializedVersion: 3 + m_TransformParent: {fileID: 0} + m_Modifications: + - target: {fileID: -8679921383154817045, guid: 7906979de341558478671be4f6bdf5e8, type: 3} + propertyPath: m_LocalScale.x + value: 15.000001 + objectReference: {fileID: 0} + - target: {fileID: -8679921383154817045, guid: 7906979de341558478671be4f6bdf5e8, type: 3} + propertyPath: m_LocalScale.y + value: 15.000001 + objectReference: {fileID: 0} + - target: {fileID: -8679921383154817045, guid: 7906979de341558478671be4f6bdf5e8, type: 3} + propertyPath: m_LocalScale.z + value: 15.000001 + objectReference: {fileID: 0} + - target: {fileID: -8679921383154817045, guid: 7906979de341558478671be4f6bdf5e8, type: 3} + propertyPath: m_LocalPosition.x + value: -1.451 + objectReference: {fileID: 0} + - target: {fileID: -8679921383154817045, guid: 7906979de341558478671be4f6bdf5e8, type: 3} + propertyPath: m_LocalPosition.y + value: 0.991 + objectReference: {fileID: 0} + - target: {fileID: -8679921383154817045, guid: 7906979de341558478671be4f6bdf5e8, type: 3} + propertyPath: m_LocalPosition.z + value: 0.668 + objectReference: {fileID: 0} + - target: {fileID: -8679921383154817045, guid: 7906979de341558478671be4f6bdf5e8, type: 3} + propertyPath: m_LocalRotation.w + value: 0.49734756 + objectReference: {fileID: 0} + - target: {fileID: -8679921383154817045, guid: 7906979de341558478671be4f6bdf5e8, type: 3} + propertyPath: m_LocalRotation.x + value: -0.7723371 + objectReference: {fileID: 0} + - target: {fileID: -8679921383154817045, guid: 7906979de341558478671be4f6bdf5e8, type: 3} + propertyPath: m_LocalRotation.y + value: 0.28377828 + objectReference: {fileID: 0} + - target: {fileID: -8679921383154817045, guid: 7906979de341558478671be4f6bdf5e8, type: 3} + propertyPath: m_LocalRotation.z + value: -0.27497402 + objectReference: {fileID: 0} + - target: {fileID: -8679921383154817045, guid: 7906979de341558478671be4f6bdf5e8, type: 3} + propertyPath: m_LocalEulerAnglesHint.x + value: -37.747 + objectReference: {fileID: 0} + - target: {fileID: -8679921383154817045, guid: 7906979de341558478671be4f6bdf5e8, type: 3} + propertyPath: m_LocalEulerAnglesHint.y + value: 116.601 + objectReference: {fileID: 0} + - target: {fileID: -8679921383154817045, guid: 7906979de341558478671be4f6bdf5e8, type: 3} + propertyPath: m_LocalEulerAnglesHint.z + value: -115.807 + objectReference: {fileID: 0} + - target: {fileID: -8679921383154817045, guid: 7906979de341558478671be4f6bdf5e8, type: 3} + propertyPath: m_ConstrainProportionsScale + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 919132149155446097, guid: 7906979de341558478671be4f6bdf5e8, type: 3} + propertyPath: m_Name + value: monkey_susan + objectReference: {fileID: 0} + - target: {fileID: 919132149155446097, guid: 7906979de341558478671be4f6bdf5e8, type: 3} + propertyPath: m_Layer + value: 8 + objectReference: {fileID: 0} + m_RemovedComponents: [] + m_RemovedGameObjects: [] + m_AddedGameObjects: [] + m_AddedComponents: + - targetCorrespondingSourceObject: {fileID: 919132149155446097, guid: 7906979de341558478671be4f6bdf5e8, type: 3} + insertIndex: -1 + addedObject: {fileID: 1232611347} + - targetCorrespondingSourceObject: {fileID: 919132149155446097, guid: 7906979de341558478671be4f6bdf5e8, type: 3} + insertIndex: -1 + addedObject: {fileID: 1232611346} + - targetCorrespondingSourceObject: {fileID: 919132149155446097, guid: 7906979de341558478671be4f6bdf5e8, type: 3} + insertIndex: -1 + addedObject: {fileID: 1232611345} + - targetCorrespondingSourceObject: {fileID: 919132149155446097, guid: 7906979de341558478671be4f6bdf5e8, type: 3} + insertIndex: -1 + addedObject: {fileID: 1232611344} + m_SourcePrefab: {fileID: 100100000, guid: 7906979de341558478671be4f6bdf5e8, type: 3} +--- !u!1001 &953741117 +PrefabInstance: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Modification: + serializedVersion: 3 + m_TransformParent: {fileID: 0} + m_Modifications: + - target: {fileID: 1001019263030247314, guid: 2d8f3575614e0d7419c84f967185cdac, type: 3} + propertyPath: m_IsKinematic + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 5036961803400065188, guid: 2d8f3575614e0d7419c84f967185cdac, type: 3} + propertyPath: CanEquip + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 5036961803400065188, guid: 2d8f3575614e0d7419c84f967185cdac, type: 3} + propertyPath: equipPos.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 5036961803400065188, guid: 2d8f3575614e0d7419c84f967185cdac, type: 3} + propertyPath: equipPos.y + value: -0.1 + objectReference: {fileID: 0} + - target: {fileID: 5036961803400065188, guid: 2d8f3575614e0d7419c84f967185cdac, type: 3} + propertyPath: equipPos.z + value: 0.1 + objectReference: {fileID: 0} + - target: {fileID: 5036961803400065188, guid: 2d8f3575614e0d7419c84f967185cdac, type: 3} + propertyPath: KinematicWhileInteracting + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 6918077497000395064, guid: 2d8f3575614e0d7419c84f967185cdac, type: 3} + propertyPath: m_LocalPosition.x + value: -1.291 + objectReference: {fileID: 0} + - target: {fileID: 6918077497000395064, guid: 2d8f3575614e0d7419c84f967185cdac, type: 3} + propertyPath: m_LocalPosition.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 6918077497000395064, guid: 2d8f3575614e0d7419c84f967185cdac, type: 3} + propertyPath: m_LocalPosition.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 6918077497000395064, guid: 2d8f3575614e0d7419c84f967185cdac, type: 3} + propertyPath: m_LocalRotation.w + value: 0.786496 + objectReference: {fileID: 0} + - target: {fileID: 6918077497000395064, guid: 2d8f3575614e0d7419c84f967185cdac, type: 3} + propertyPath: m_LocalRotation.x + value: 0.5044684 + objectReference: {fileID: 0} + - target: {fileID: 6918077497000395064, guid: 2d8f3575614e0d7419c84f967185cdac, type: 3} + propertyPath: m_LocalRotation.y + value: 0.3318485 + objectReference: {fileID: 0} + - target: {fileID: 6918077497000395064, guid: 2d8f3575614e0d7419c84f967185cdac, type: 3} + propertyPath: m_LocalRotation.z + value: 0.12966242 + objectReference: {fileID: 0} + - target: {fileID: 6918077497000395064, guid: 2d8f3575614e0d7419c84f967185cdac, type: 3} + propertyPath: m_LocalEulerAnglesHint.x + value: 45.029 + objectReference: {fileID: 0} + - target: {fileID: 6918077497000395064, guid: 2d8f3575614e0d7419c84f967185cdac, type: 3} + propertyPath: m_LocalEulerAnglesHint.y + value: 67.472 + objectReference: {fileID: 0} + - target: {fileID: 6918077497000395064, guid: 2d8f3575614e0d7419c84f967185cdac, type: 3} + propertyPath: m_LocalEulerAnglesHint.z + value: 49.67 + objectReference: {fileID: 0} + - target: {fileID: 8381068889838832174, guid: 2d8f3575614e0d7419c84f967185cdac, type: 3} + propertyPath: m_Name + value: TestPickup (3) + objectReference: {fileID: 0} + - target: {fileID: 8381068889838832174, guid: 2d8f3575614e0d7419c84f967185cdac, type: 3} + propertyPath: m_Layer + value: 8 + objectReference: {fileID: 0} + - target: {fileID: 8381068889838832174, guid: 2d8f3575614e0d7419c84f967185cdac, type: 3} + propertyPath: m_IsActive + value: 1 + objectReference: {fileID: 0} + m_RemovedComponents: [] + m_RemovedGameObjects: [] + m_AddedGameObjects: [] + m_AddedComponents: + - targetCorrespondingSourceObject: {fileID: 8381068889838832174, guid: 2d8f3575614e0d7419c84f967185cdac, type: 3} + insertIndex: -1 + addedObject: {fileID: 11334222} + m_SourcePrefab: {fileID: 100100000, guid: 2d8f3575614e0d7419c84f967185cdac, type: 3} +--- !u!1 &1212161312 stripped +GameObject: + m_CorrespondingSourceObject: {fileID: 8381068889838832174, guid: 2d8f3575614e0d7419c84f967185cdac, type: 3} + m_PrefabInstance: {fileID: 782519661} + m_PrefabAsset: {fileID: 0} +--- !u!1773428102 &1212161320 +ParentConstraint: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1212161312} + m_Enabled: 1 + serializedVersion: 2 + m_Weight: 1 + m_TranslationAtRest: {x: -1.1370001, y: 1, z: 0} + m_RotationAtRest: {x: 0, y: 0, z: 0} + m_TranslationOffsets: [] + m_RotationOffsets: [] + m_AffectTranslationX: 1 + m_AffectTranslationY: 1 + m_AffectTranslationZ: 1 + m_AffectRotationX: 1 + m_AffectRotationY: 1 + m_AffectRotationZ: 1 + m_Active: 0 + m_IsLocked: 0 + m_Sources: [] +--- !u!1 &1232611343 stripped +GameObject: + m_CorrespondingSourceObject: {fileID: 919132149155446097, guid: 7906979de341558478671be4f6bdf5e8, type: 3} + m_PrefabInstance: {fileID: 857767427} + m_PrefabAsset: {fileID: 0} +--- !u!64 &1232611344 +MeshCollider: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1232611343} + m_Material: {fileID: 0} + m_IncludeLayers: + serializedVersion: 2 + m_Bits: 0 + m_ExcludeLayers: + serializedVersion: 2 + m_Bits: 0 + m_LayerOverridePriority: 0 + m_IsTrigger: 0 + m_ProvidesContacts: 0 + m_Enabled: 1 + serializedVersion: 5 + m_Convex: 1 + m_CookingOptions: 30 + m_Mesh: {fileID: -2222346464153789849, guid: 7906979de341558478671be4f6bdf5e8, type: 3} +--- !u!114 &1232611345 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1232611343} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 690ab0b52a9b06b4498ad303592416aa, type: 3} + m_Name: + m_EditorClassIdentifier: + InteractRange: 1 + CanEquip: 0 + equipPos: {x: 0, y: 0, z: 0} + equipRot: {x: 0, y: 0, z: 0, w: 0} + KinematicWhileInteracting: 1 + LocalOnly: 1 + ColliderRef: {fileID: 0} + RigidRef: {fileID: 0} + ConstraintRef: {fileID: 0} +--- !u!54 &1232611346 +Rigidbody: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1232611343} + serializedVersion: 4 + m_Mass: 1 + m_Drag: 0 + m_AngularDrag: 0.05 + m_CenterOfMass: {x: 0, y: 0, z: 0} + m_InertiaTensor: {x: 1, y: 1, z: 1} + m_InertiaRotation: {x: 0, y: 0, z: 0, w: 1} + m_IncludeLayers: + serializedVersion: 2 + m_Bits: 0 + m_ExcludeLayers: + serializedVersion: 2 + m_Bits: 0 + m_ImplicitCom: 1 + m_ImplicitTensor: 1 + m_UseGravity: 1 + m_IsKinematic: 0 + m_Interpolate: 0 + m_Constraints: 0 + m_CollisionDetection: 0 +--- !u!1773428102 &1232611347 +ParentConstraint: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1232611343} + m_Enabled: 1 + serializedVersion: 2 + m_Weight: 1 + m_TranslationAtRest: {x: -1.451, y: 0.991, z: 0.668} + m_RotationAtRest: {x: -89.98, y: 0, z: 0} + m_TranslationOffsets: [] + m_RotationOffsets: [] + m_AffectTranslationX: 1 + m_AffectTranslationY: 1 + m_AffectTranslationZ: 1 + m_AffectRotationX: 1 + m_AffectRotationY: 1 + m_AffectRotationZ: 1 + m_Active: 0 + m_IsLocked: 0 + m_Sources: [] +--- !u!1 &1336315009 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1336315016} + - component: {fileID: 1336315015} + - component: {fileID: 1336315014} + - component: {fileID: 1336315013} + - component: {fileID: 1336315012} + - component: {fileID: 1336315017} + - component: {fileID: 1336315018} + m_Layer: 8 + m_Name: Capsule (3) + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!54 &1336315012 +Rigidbody: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1336315009} + serializedVersion: 4 + m_Mass: 1 + m_Drag: 0 + m_AngularDrag: 0.05 + m_CenterOfMass: {x: 0, y: 0, z: 0} + m_InertiaTensor: {x: 1, y: 1, z: 1} + m_InertiaRotation: {x: 0, y: 0, z: 0, w: 1} + m_IncludeLayers: + serializedVersion: 2 + m_Bits: 0 + m_ExcludeLayers: + serializedVersion: 2 + m_Bits: 0 + m_ImplicitCom: 1 + m_ImplicitTensor: 1 + m_UseGravity: 0 + m_IsKinematic: 1 + m_Interpolate: 0 + m_Constraints: 0 + m_CollisionDetection: 0 +--- !u!136 &1336315013 +CapsuleCollider: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1336315009} + m_Material: {fileID: 0} + m_IncludeLayers: + serializedVersion: 2 + m_Bits: 0 + m_ExcludeLayers: + serializedVersion: 2 + m_Bits: 0 + m_LayerOverridePriority: 0 + m_IsTrigger: 0 + m_ProvidesContacts: 0 + m_Enabled: 1 + serializedVersion: 2 + m_Radius: 0.5 + m_Height: 2 + m_Direction: 1 + m_Center: {x: 0, y: -0.52, z: 1.26} +--- !u!23 &1336315014 +MeshRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1336315009} + m_Enabled: 1 + m_CastShadows: 1 + m_ReceiveShadows: 1 + m_DynamicOccludee: 1 + m_StaticShadowCaster: 0 + m_MotionVectors: 1 + m_LightProbeUsage: 1 + m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 + m_RayTraceProcedural: 0 + m_RayTracingAccelStructBuildFlagsOverride: 0 + m_RayTracingAccelStructBuildFlags: 1 + m_SmallMeshCulling: 1 + m_RenderingLayerMask: 1 + m_RendererPriority: 0 + m_Materials: + - {fileID: 2100000, guid: 31321ba15b8f8eb4c954353edc038b1d, type: 2} + m_StaticBatchInfo: + firstSubMesh: 0 + subMeshCount: 0 + m_StaticBatchRoot: {fileID: 0} + m_ProbeAnchor: {fileID: 0} + m_LightProbeVolumeOverride: {fileID: 0} + m_ScaleInLightmap: 1 + m_ReceiveGI: 1 + m_PreserveUVs: 0 + m_IgnoreNormalsForChartDetection: 0 + m_ImportantGI: 0 + m_StitchLightmapSeams: 1 + m_SelectedEditorRenderState: 3 + m_MinimumChartSize: 4 + m_AutoUVMaxDistance: 0.5 + m_AutoUVMaxAngle: 89 + m_LightmapParameters: {fileID: 0} + m_SortingLayerID: 0 + m_SortingLayer: 0 + m_SortingOrder: 0 + m_AdditionalVertexStreams: {fileID: 0} +--- !u!33 &1336315015 +MeshFilter: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1336315009} + m_Mesh: {fileID: 10208, guid: 0000000000000000e000000000000000, type: 0} +--- !u!4 &1336315016 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1336315009} + serializedVersion: 2 + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: -2.2507, y: 1.0181, z: 0.001} + m_LocalScale: {x: 0.1, y: 0.1, z: 0.1} + m_ConstrainProportionsScale: 1 + m_Children: [] + m_Father: {fileID: 0} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!114 &1336315017 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1336315009} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 690ab0b52a9b06b4498ad303592416aa, type: 3} + m_Name: + m_EditorClassIdentifier: + InteractRange: 1 + CanEquip: 0 + equipPos: {x: 0, y: 0, z: 0} + equipRot: {x: 0, y: 0, z: 0, w: 0} + KinematicWhileInteracting: 0 + LocalOnly: 1 + ColliderRef: {fileID: 0} + RigidRef: {fileID: 0} + ConstraintRef: {fileID: 0} +--- !u!1773428102 &1336315018 +ParentConstraint: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1336315009} + m_Enabled: 1 + serializedVersion: 2 + m_Weight: 1 + m_TranslationAtRest: {x: -2.2507, y: 1.0181, z: 0.001} + m_RotationAtRest: {x: 0, y: 0, z: 0} + m_TranslationOffsets: [] + m_RotationOffsets: [] + m_AffectTranslationX: 1 + m_AffectTranslationY: 1 + m_AffectTranslationZ: 1 + m_AffectRotationX: 1 + m_AffectRotationY: 1 + m_AffectRotationZ: 1 + m_Active: 0 + m_IsLocked: 0 + m_Sources: [] +--- !u!1 &1405895927 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1405895930} + - component: {fileID: 1405895929} + - component: {fileID: 1405895928} + m_Layer: 0 + m_Name: Directional Light + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!114 &1405895928 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1405895927} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 474bcb49853aa07438625e644c072ee6, type: 3} + m_Name: + m_EditorClassIdentifier: + m_Version: 3 + m_UsePipelineSettings: 1 + m_AdditionalLightsShadowResolutionTier: 2 + m_LightLayerMask: 1 + m_RenderingLayers: 1 + m_CustomShadowLayers: 0 + m_ShadowLayerMask: 1 + m_ShadowRenderingLayers: 1 + m_LightCookieSize: {x: 1, y: 1} + m_LightCookieOffset: {x: 0, y: 0} + m_SoftShadowQuality: 0 +--- !u!108 &1405895929 +Light: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1405895927} + m_Enabled: 1 + serializedVersion: 11 + m_Type: 1 + m_Color: {r: 1, g: 0.95686275, b: 0.8392157, a: 1} + m_Intensity: 1 + m_Range: 10 + m_SpotAngle: 30 + m_InnerSpotAngle: 21.80208 + m_CookieSize: 10 + m_Shadows: + m_Type: 2 + m_Resolution: -1 + m_CustomResolution: -1 + m_Strength: 1 + m_Bias: 0.05 + m_NormalBias: 0.4 + m_NearPlane: 0.2 + m_CullingMatrixOverride: + e00: 1 + e01: 0 + e02: 0 + e03: 0 + e10: 0 + e11: 1 + e12: 0 + e13: 0 + e20: 0 + e21: 0 + e22: 1 + e23: 0 + e30: 0 + e31: 0 + e32: 0 + e33: 1 + m_UseCullingMatrixOverride: 0 + m_Cookie: {fileID: 0} + m_DrawHalo: 0 + m_Flare: {fileID: 0} + m_RenderMode: 0 + m_CullingMask: + serializedVersion: 2 + m_Bits: 4294967295 + m_RenderingLayerMask: 1 + m_Lightmapping: 4 + m_LightShadowCasterMode: 0 + m_AreaSize: {x: 1, y: 1} + m_BounceIntensity: 1 + m_ColorTemperature: 6570 + m_UseColorTemperature: 0 + m_BoundingSphereOverride: {x: 0, y: 0, z: 0, w: 0} + m_UseBoundingSphereOverride: 0 + m_UseViewFrustumForShadowCasterCull: 1 + m_ForceVisible: 0 + m_ShadowRadius: 0 + m_ShadowAngle: 0 + m_LightUnit: 1 + m_LuxAtDistance: 1 + m_EnableSpotReflector: 1 +--- !u!4 &1405895930 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1405895927} + serializedVersion: 2 + m_LocalRotation: {x: 0.40821788, y: -0.23456968, z: 0.10938163, w: 0.8754261} + m_LocalPosition: {x: 0, y: 3, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 0} + m_LocalEulerAnglesHint: {x: 50, y: -30, z: 0} +--- !u!1 &1472934484 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1472934491} + - component: {fileID: 1472934490} + - component: {fileID: 1472934489} + - component: {fileID: 1472934488} + - component: {fileID: 1472934487} + - component: {fileID: 1472934492} + - component: {fileID: 1472934493} + m_Layer: 8 + m_Name: Capsule (4) + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!54 &1472934487 +Rigidbody: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1472934484} + serializedVersion: 4 + m_Mass: 1 + m_Drag: 0 + m_AngularDrag: 0.05 + m_CenterOfMass: {x: 0, y: 0, z: 0} + m_InertiaTensor: {x: 1, y: 1, z: 1} + m_InertiaRotation: {x: 0, y: 0, z: 0, w: 1} + m_IncludeLayers: + serializedVersion: 2 + m_Bits: 0 + m_ExcludeLayers: + serializedVersion: 2 + m_Bits: 0 + m_ImplicitCom: 1 + m_ImplicitTensor: 1 + m_UseGravity: 0 + m_IsKinematic: 1 + m_Interpolate: 0 + m_Constraints: 0 + m_CollisionDetection: 0 +--- !u!136 &1472934488 +CapsuleCollider: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1472934484} + m_Material: {fileID: 0} + m_IncludeLayers: + serializedVersion: 2 + m_Bits: 0 + m_ExcludeLayers: + serializedVersion: 2 + m_Bits: 0 + m_LayerOverridePriority: 0 + m_IsTrigger: 0 + m_ProvidesContacts: 0 + m_Enabled: 1 + serializedVersion: 2 + m_Radius: 0.5 + m_Height: 2 + m_Direction: 2 + m_Center: {x: 0, y: 0, z: 0} +--- !u!23 &1472934489 +MeshRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1472934484} + m_Enabled: 1 + m_CastShadows: 1 + m_ReceiveShadows: 1 + m_DynamicOccludee: 1 + m_StaticShadowCaster: 0 + m_MotionVectors: 1 + m_LightProbeUsage: 1 + m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 + m_RayTraceProcedural: 0 + m_RayTracingAccelStructBuildFlagsOverride: 0 + m_RayTracingAccelStructBuildFlags: 1 + m_SmallMeshCulling: 1 + m_RenderingLayerMask: 1 + m_RendererPriority: 0 + m_Materials: + - {fileID: 2100000, guid: 31321ba15b8f8eb4c954353edc038b1d, type: 2} + m_StaticBatchInfo: + firstSubMesh: 0 + subMeshCount: 0 + m_StaticBatchRoot: {fileID: 0} + m_ProbeAnchor: {fileID: 0} + m_LightProbeVolumeOverride: {fileID: 0} + m_ScaleInLightmap: 1 + m_ReceiveGI: 1 + m_PreserveUVs: 0 + m_IgnoreNormalsForChartDetection: 0 + m_ImportantGI: 0 + m_StitchLightmapSeams: 1 + m_SelectedEditorRenderState: 3 + m_MinimumChartSize: 4 + m_AutoUVMaxDistance: 0.5 + m_AutoUVMaxAngle: 89 + m_LightmapParameters: {fileID: 0} + m_SortingLayerID: 0 + m_SortingLayer: 0 + m_SortingOrder: 0 + m_AdditionalVertexStreams: {fileID: 0} +--- !u!33 &1472934490 +MeshFilter: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1472934484} + m_Mesh: {fileID: 10208, guid: 0000000000000000e000000000000000, type: 0} +--- !u!4 &1472934491 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1472934484} + serializedVersion: 2 + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: -2.417, y: 1.0181, z: 0.001} + m_LocalScale: {x: 0.1, y: 0.1, z: 0.1} + m_ConstrainProportionsScale: 1 + m_Children: [] + m_Father: {fileID: 0} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!114 &1472934492 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1472934484} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 690ab0b52a9b06b4498ad303592416aa, type: 3} + m_Name: + m_EditorClassIdentifier: + InteractRange: 1 + CanEquip: 0 + equipPos: {x: 0, y: 0, z: 0} + equipRot: {x: 0, y: 0, z: 0, w: 0} + KinematicWhileInteracting: 0 + LocalOnly: 1 + ColliderRef: {fileID: 0} + RigidRef: {fileID: 0} + ConstraintRef: {fileID: 0} +--- !u!1773428102 &1472934493 +ParentConstraint: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1472934484} + m_Enabled: 1 + serializedVersion: 2 + m_Weight: 1 + m_TranslationAtRest: {x: -2.417, y: 1.0181, z: 0.001} + m_RotationAtRest: {x: 0, y: 0, z: 0} + m_TranslationOffsets: [] + m_RotationOffsets: [] + m_AffectTranslationX: 1 + m_AffectTranslationY: 1 + m_AffectTranslationZ: 1 + m_AffectRotationX: 1 + m_AffectRotationY: 1 + m_AffectRotationZ: 1 + m_Active: 0 + m_IsLocked: 0 + m_Sources: [] +--- !u!1 &1556212794 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1556212797} + - component: {fileID: 1556212796} + - component: {fileID: 1556212795} + - component: {fileID: 1556212798} + m_Layer: 0 + m_Name: Main Camera + m_TagString: MainCamera + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!81 &1556212795 +AudioListener: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1556212794} + m_Enabled: 1 +--- !u!20 &1556212796 +Camera: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1556212794} + m_Enabled: 1 + serializedVersion: 2 + m_ClearFlags: 1 + m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0} + m_projectionMatrixMode: 1 + m_GateFitMode: 2 + m_FOVAxisMode: 0 + m_Iso: 200 + m_ShutterSpeed: 0.005 + m_Aperture: 16 + m_FocusDistance: 10 + m_FocalLength: 50 + m_BladeCount: 5 + m_Curvature: {x: 2, y: 11} + m_BarrelClipping: 0.25 + m_Anamorphism: 0 + m_SensorSize: {x: 36, y: 24} + m_LensShift: {x: 0, y: 0} + m_NormalizedViewPortRect: + serializedVersion: 2 + x: 0 + y: 0 + width: 1 + height: 1 + near clip plane: 0.3 + far clip plane: 1000 + field of view: 60 + orthographic: 0 + orthographic size: 5 + m_Depth: -1 + m_CullingMask: + serializedVersion: 2 + m_Bits: 4294967295 + m_RenderingPath: -1 + m_TargetTexture: {fileID: 0} + m_TargetDisplay: 0 + m_TargetEye: 3 + m_HDR: 1 + m_AllowMSAA: 1 + m_AllowDynamicResolution: 0 + m_ForceIntoRT: 0 + m_OcclusionCulling: 1 + m_StereoConvergence: 10 + m_StereoSeparation: 0.022 +--- !u!4 &1556212797 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1556212794} + serializedVersion: 2 + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 1, z: -10} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 0} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!114 &1556212798 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1556212794} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: a79441f348de89743a2939f4d699eac1, type: 3} + m_Name: + m_EditorClassIdentifier: + m_RenderShadows: 1 + m_RequiresDepthTextureOption: 2 + m_RequiresOpaqueTextureOption: 2 + m_CameraType: 0 + m_Cameras: [] + m_RendererIndex: -1 + m_VolumeLayerMask: + serializedVersion: 2 + m_Bits: 1 + m_VolumeTrigger: {fileID: 0} + m_VolumeFrameworkUpdateModeOption: 2 + m_RenderPostProcessing: 0 + m_Antialiasing: 0 + m_AntialiasingQuality: 2 + m_StopNaN: 0 + m_Dithering: 0 + m_ClearDepth: 1 + m_AllowXRRendering: 1 + m_AllowHDROutput: 1 + m_UseScreenCoordOverride: 0 + m_ScreenSizeOverride: {x: 0, y: 0, z: 0, w: 0} + m_ScreenCoordScaleBias: {x: 0, y: 0, z: 0, w: 0} + m_RequiresDepthTexture: 0 + m_RequiresColorTexture: 0 + m_Version: 2 + m_TaaSettings: + m_Quality: 3 + m_FrameInfluence: 0.1 + m_JitterScale: 1 + m_MipBias: 0 + m_VarianceClampScale: 0.9 + m_ContrastAdaptiveSharpening: 0 +--- !u!1 &1568311656 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1568311663} + - component: {fileID: 1568311662} + - component: {fileID: 1568311661} + - component: {fileID: 1568311660} + - component: {fileID: 1568311659} + - component: {fileID: 1568311658} + - component: {fileID: 1568311657} + m_Layer: 8 + m_Name: Capsule (5) + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!1773428102 &1568311657 +ParentConstraint: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1568311656} + m_Enabled: 1 + serializedVersion: 2 + m_Weight: 1 + m_TranslationAtRest: {x: -1.897, y: 1.0181, z: 0.001} + m_RotationAtRest: {x: 0, y: 0, z: 0} + m_TranslationOffsets: [] + m_RotationOffsets: [] + m_AffectTranslationX: 1 + m_AffectTranslationY: 1 + m_AffectTranslationZ: 1 + m_AffectRotationX: 1 + m_AffectRotationY: 1 + m_AffectRotationZ: 1 + m_Active: 0 + m_IsLocked: 0 + m_Sources: [] +--- !u!114 &1568311658 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1568311656} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 690ab0b52a9b06b4498ad303592416aa, type: 3} + m_Name: + m_EditorClassIdentifier: + InteractRange: 1 + CanEquip: 0 + equipPos: {x: 0, y: 0, z: 0} + equipRot: {x: 0, y: 0, z: 0, w: 0} + KinematicWhileInteracting: 0 + LocalOnly: 1 + ColliderRef: {fileID: 0} + RigidRef: {fileID: 0} + ConstraintRef: {fileID: 0} +--- !u!54 &1568311659 +Rigidbody: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1568311656} + serializedVersion: 4 + m_Mass: 1 + m_Drag: 0 + m_AngularDrag: 0.05 + m_CenterOfMass: {x: 0, y: 0, z: 0} + m_InertiaTensor: {x: 1, y: 1, z: 1} + m_InertiaRotation: {x: 0, y: 0, z: 0, w: 1} + m_IncludeLayers: + serializedVersion: 2 + m_Bits: 0 + m_ExcludeLayers: + serializedVersion: 2 + m_Bits: 0 + m_ImplicitCom: 1 + m_ImplicitTensor: 1 + m_UseGravity: 0 + m_IsKinematic: 1 + m_Interpolate: 0 + m_Constraints: 0 + m_CollisionDetection: 0 +--- !u!136 &1568311660 +CapsuleCollider: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1568311656} + m_Material: {fileID: 0} + m_IncludeLayers: + serializedVersion: 2 + m_Bits: 0 + m_ExcludeLayers: + serializedVersion: 2 + m_Bits: 0 + m_LayerOverridePriority: 0 + m_IsTrigger: 0 + m_ProvidesContacts: 0 + m_Enabled: 1 + serializedVersion: 2 + m_Radius: 0.5 + m_Height: 2 + m_Direction: 1 + m_Center: {x: 0, y: 0, z: 0} +--- !u!23 &1568311661 +MeshRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1568311656} + m_Enabled: 1 + m_CastShadows: 1 + m_ReceiveShadows: 1 + m_DynamicOccludee: 1 + m_StaticShadowCaster: 0 + m_MotionVectors: 1 + m_LightProbeUsage: 1 + m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 + m_RayTraceProcedural: 0 + m_RayTracingAccelStructBuildFlagsOverride: 0 + m_RayTracingAccelStructBuildFlags: 1 + m_SmallMeshCulling: 1 + m_RenderingLayerMask: 1 + m_RendererPriority: 0 + m_Materials: + - {fileID: 2100000, guid: 31321ba15b8f8eb4c954353edc038b1d, type: 2} + m_StaticBatchInfo: + firstSubMesh: 0 + subMeshCount: 0 + m_StaticBatchRoot: {fileID: 0} + m_ProbeAnchor: {fileID: 0} + m_LightProbeVolumeOverride: {fileID: 0} + m_ScaleInLightmap: 1 + m_ReceiveGI: 1 + m_PreserveUVs: 0 + m_IgnoreNormalsForChartDetection: 0 + m_ImportantGI: 0 + m_StitchLightmapSeams: 1 + m_SelectedEditorRenderState: 3 + m_MinimumChartSize: 4 + m_AutoUVMaxDistance: 0.5 + m_AutoUVMaxAngle: 89 + m_LightmapParameters: {fileID: 0} + m_SortingLayerID: 0 + m_SortingLayer: 0 + m_SortingOrder: 0 + m_AdditionalVertexStreams: {fileID: 0} +--- !u!33 &1568311662 +MeshFilter: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1568311656} + m_Mesh: {fileID: 10208, guid: 0000000000000000e000000000000000, type: 0} +--- !u!4 &1568311663 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1568311656} + serializedVersion: 2 + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: -1.6685, y: 1.0181, z: 0.001} + m_LocalScale: {x: 0.1, y: 0.1, z: 0.1} + m_ConstrainProportionsScale: 1 + m_Children: [] + m_Father: {fileID: 0} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!1 &1734220523 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1734220527} + - component: {fileID: 1734220526} + - component: {fileID: 1734220525} + - component: {fileID: 1734220524} + m_Layer: 0 + m_Name: Cube + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!65 &1734220524 +BoxCollider: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1734220523} + m_Material: {fileID: 0} + m_IncludeLayers: + serializedVersion: 2 + m_Bits: 0 + m_ExcludeLayers: + serializedVersion: 2 + m_Bits: 200 + m_LayerOverridePriority: 0 + m_IsTrigger: 0 + m_ProvidesContacts: 0 + m_Enabled: 1 + serializedVersion: 3 + m_Size: {x: 1, y: 1, z: 1} + m_Center: {x: 0, y: 0, z: 0} +--- !u!23 &1734220525 +MeshRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1734220523} + m_Enabled: 1 + m_CastShadows: 1 + m_ReceiveShadows: 1 + m_DynamicOccludee: 1 + m_StaticShadowCaster: 0 + m_MotionVectors: 1 + m_LightProbeUsage: 1 + m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 + m_RayTraceProcedural: 0 + m_RayTracingAccelStructBuildFlagsOverride: 0 + m_RayTracingAccelStructBuildFlags: 1 + m_SmallMeshCulling: 1 + m_RenderingLayerMask: 1 + m_RendererPriority: 0 + m_Materials: + - {fileID: 2100000, guid: 31321ba15b8f8eb4c954353edc038b1d, type: 2} + m_StaticBatchInfo: + firstSubMesh: 0 + subMeshCount: 0 + m_StaticBatchRoot: {fileID: 0} + m_ProbeAnchor: {fileID: 0} + m_LightProbeVolumeOverride: {fileID: 0} + m_ScaleInLightmap: 1 + m_ReceiveGI: 1 + m_PreserveUVs: 0 + m_IgnoreNormalsForChartDetection: 0 + m_ImportantGI: 0 + m_StitchLightmapSeams: 1 + m_SelectedEditorRenderState: 3 + m_MinimumChartSize: 4 + m_AutoUVMaxDistance: 0.5 + m_AutoUVMaxAngle: 89 + m_LightmapParameters: {fileID: 0} + m_SortingLayerID: 0 + m_SortingLayer: 0 + m_SortingOrder: 0 + m_AdditionalVertexStreams: {fileID: 0} +--- !u!33 &1734220526 +MeshFilter: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1734220523} + m_Mesh: {fileID: 10202, guid: 0000000000000000e000000000000000, type: 0} +--- !u!4 &1734220527 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1734220523} + serializedVersion: 2 + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: -1.891, y: 0.222, z: 0.445} + m_LocalScale: {x: 2.43, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 0} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!1001 &1770558167 +PrefabInstance: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Modification: + serializedVersion: 3 + m_TransformParent: {fileID: 0} + m_Modifications: + - target: {fileID: 1001019263030247314, guid: 2d8f3575614e0d7419c84f967185cdac, type: 3} + propertyPath: m_IsKinematic + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 5036961803400065188, guid: 2d8f3575614e0d7419c84f967185cdac, type: 3} + propertyPath: KinematicWhileInteracting + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 6918077497000395064, guid: 2d8f3575614e0d7419c84f967185cdac, type: 3} + propertyPath: m_LocalPosition.x + value: -0.744 + objectReference: {fileID: 0} + - target: {fileID: 6918077497000395064, guid: 2d8f3575614e0d7419c84f967185cdac, type: 3} + propertyPath: m_LocalPosition.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 6918077497000395064, guid: 2d8f3575614e0d7419c84f967185cdac, type: 3} + propertyPath: m_LocalPosition.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 6918077497000395064, guid: 2d8f3575614e0d7419c84f967185cdac, type: 3} + propertyPath: m_LocalRotation.w + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 6918077497000395064, guid: 2d8f3575614e0d7419c84f967185cdac, type: 3} + propertyPath: m_LocalRotation.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 6918077497000395064, guid: 2d8f3575614e0d7419c84f967185cdac, type: 3} + propertyPath: m_LocalRotation.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 6918077497000395064, guid: 2d8f3575614e0d7419c84f967185cdac, type: 3} + propertyPath: m_LocalRotation.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 6918077497000395064, guid: 2d8f3575614e0d7419c84f967185cdac, type: 3} + propertyPath: m_LocalEulerAnglesHint.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 6918077497000395064, guid: 2d8f3575614e0d7419c84f967185cdac, type: 3} + propertyPath: m_LocalEulerAnglesHint.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 6918077497000395064, guid: 2d8f3575614e0d7419c84f967185cdac, type: 3} + propertyPath: m_LocalEulerAnglesHint.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 8381068889838832174, guid: 2d8f3575614e0d7419c84f967185cdac, type: 3} + propertyPath: m_Name + value: TestPickup + objectReference: {fileID: 0} + - target: {fileID: 8381068889838832174, guid: 2d8f3575614e0d7419c84f967185cdac, type: 3} + propertyPath: m_Layer + value: 8 + objectReference: {fileID: 0} + - target: {fileID: 8381068889838832174, guid: 2d8f3575614e0d7419c84f967185cdac, type: 3} + propertyPath: m_IsActive + value: 1 + objectReference: {fileID: 0} + m_RemovedComponents: [] + m_RemovedGameObjects: [] + m_AddedGameObjects: [] + m_AddedComponents: + - targetCorrespondingSourceObject: {fileID: 8381068889838832174, guid: 2d8f3575614e0d7419c84f967185cdac, type: 3} + insertIndex: -1 + addedObject: {fileID: 1896202243} + m_SourcePrefab: {fileID: 100100000, guid: 2d8f3575614e0d7419c84f967185cdac, type: 3} +--- !u!1 &1896202235 stripped +GameObject: + m_CorrespondingSourceObject: {fileID: 8381068889838832174, guid: 2d8f3575614e0d7419c84f967185cdac, type: 3} + m_PrefabInstance: {fileID: 1770558167} + m_PrefabAsset: {fileID: 0} +--- !u!1773428102 &1896202243 +ParentConstraint: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1896202235} + m_Enabled: 1 + serializedVersion: 2 + m_Weight: 1 + m_TranslationAtRest: {x: -0.744, y: 1, z: 0} + m_RotationAtRest: {x: 0, y: 0, z: 0} + m_TranslationOffsets: [] + m_RotationOffsets: [] + m_AffectTranslationX: 1 + m_AffectTranslationY: 1 + m_AffectTranslationZ: 1 + m_AffectRotationX: 1 + m_AffectRotationY: 1 + m_AffectRotationZ: 1 + m_Active: 0 + m_IsLocked: 0 + m_Sources: [] +--- !u!1 &1983638905 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1983638912} + - component: {fileID: 1983638911} + - component: {fileID: 1983638910} + - component: {fileID: 1983638909} + - component: {fileID: 1983638908} + - component: {fileID: 1983638913} + - component: {fileID: 1983638914} + m_Layer: 8 + m_Name: Capsule (2) + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!54 &1983638908 +Rigidbody: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1983638905} + serializedVersion: 4 + m_Mass: 1 + m_Drag: 0 + m_AngularDrag: 0.05 + m_CenterOfMass: {x: 0, y: 0, z: 0} + m_InertiaTensor: {x: 1, y: 1, z: 1} + m_InertiaRotation: {x: 0, y: 0, z: 0, w: 1} + m_IncludeLayers: + serializedVersion: 2 + m_Bits: 0 + m_ExcludeLayers: + serializedVersion: 2 + m_Bits: 0 + m_ImplicitCom: 1 + m_ImplicitTensor: 1 + m_UseGravity: 0 + m_IsKinematic: 1 + m_Interpolate: 0 + m_Constraints: 0 + m_CollisionDetection: 0 +--- !u!136 &1983638909 +CapsuleCollider: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1983638905} + m_Material: {fileID: 0} + m_IncludeLayers: + serializedVersion: 2 + m_Bits: 0 + m_ExcludeLayers: + serializedVersion: 2 + m_Bits: 0 + m_LayerOverridePriority: 0 + m_IsTrigger: 0 + m_ProvidesContacts: 0 + m_Enabled: 1 + serializedVersion: 2 + m_Radius: 1.02 + m_Height: 2 + m_Direction: 1 + m_Center: {x: 0, y: 0, z: 0} +--- !u!23 &1983638910 +MeshRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1983638905} + m_Enabled: 1 + m_CastShadows: 1 + m_ReceiveShadows: 1 + m_DynamicOccludee: 1 + m_StaticShadowCaster: 0 + m_MotionVectors: 1 + m_LightProbeUsage: 1 + m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 + m_RayTraceProcedural: 0 + m_RayTracingAccelStructBuildFlagsOverride: 0 + m_RayTracingAccelStructBuildFlags: 1 + m_SmallMeshCulling: 1 + m_RenderingLayerMask: 1 + m_RendererPriority: 0 + m_Materials: + - {fileID: 2100000, guid: 31321ba15b8f8eb4c954353edc038b1d, type: 2} + m_StaticBatchInfo: + firstSubMesh: 0 + subMeshCount: 0 + m_StaticBatchRoot: {fileID: 0} + m_ProbeAnchor: {fileID: 0} + m_LightProbeVolumeOverride: {fileID: 0} + m_ScaleInLightmap: 1 + m_ReceiveGI: 1 + m_PreserveUVs: 0 + m_IgnoreNormalsForChartDetection: 0 + m_ImportantGI: 0 + m_StitchLightmapSeams: 1 + m_SelectedEditorRenderState: 3 + m_MinimumChartSize: 4 + m_AutoUVMaxDistance: 0.5 + m_AutoUVMaxAngle: 89 + m_LightmapParameters: {fileID: 0} + m_SortingLayerID: 0 + m_SortingLayer: 0 + m_SortingOrder: 0 + m_AdditionalVertexStreams: {fileID: 0} +--- !u!33 &1983638911 +MeshFilter: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1983638905} + m_Mesh: {fileID: 10208, guid: 0000000000000000e000000000000000, type: 0} +--- !u!4 &1983638912 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1983638905} + serializedVersion: 2 + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: -2.075, y: 1.0181, z: 0.001} + m_LocalScale: {x: 0.1, y: 0.1, z: 0.1} + m_ConstrainProportionsScale: 1 + m_Children: [] + m_Father: {fileID: 0} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!114 &1983638913 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1983638905} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 690ab0b52a9b06b4498ad303592416aa, type: 3} + m_Name: + m_EditorClassIdentifier: + InteractRange: 1 + CanEquip: 0 + equipPos: {x: 0, y: 0, z: 0} + equipRot: {x: 0, y: 0, z: 0, w: 0} + KinematicWhileInteracting: 0 + LocalOnly: 1 + ColliderRef: {fileID: 0} + RigidRef: {fileID: 0} + ConstraintRef: {fileID: 0} +--- !u!1773428102 &1983638914 +ParentConstraint: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1983638905} + m_Enabled: 1 + serializedVersion: 2 + m_Weight: 1 + m_TranslationAtRest: {x: -2.075, y: 1.0181, z: 0.001} + m_RotationAtRest: {x: 0, y: 0, z: 0} + m_TranslationOffsets: [] + m_RotationOffsets: [] + m_AffectTranslationX: 1 + m_AffectTranslationY: 1 + m_AffectTranslationZ: 1 + m_AffectRotationX: 1 + m_AffectRotationY: 1 + m_AffectRotationZ: 1 + m_Active: 0 + m_IsLocked: 0 + m_Sources: [] +--- !u!1 &2063075830 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 2063075837} + - component: {fileID: 2063075836} + - component: {fileID: 2063075835} + - component: {fileID: 2063075834} + - component: {fileID: 2063075833} + - component: {fileID: 2063075838} + - component: {fileID: 2063075839} + m_Layer: 8 + m_Name: Capsule (1) + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!54 &2063075833 +Rigidbody: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2063075830} + serializedVersion: 4 + m_Mass: 1 + m_Drag: 0 + m_AngularDrag: 0.05 + m_CenterOfMass: {x: 0, y: 0, z: 0} + m_InertiaTensor: {x: 1, y: 1, z: 1} + m_InertiaRotation: {x: 0, y: 0, z: 0, w: 1} + m_IncludeLayers: + serializedVersion: 2 + m_Bits: 0 + m_ExcludeLayers: + serializedVersion: 2 + m_Bits: 0 + m_ImplicitCom: 1 + m_ImplicitTensor: 1 + m_UseGravity: 0 + m_IsKinematic: 1 + m_Interpolate: 0 + m_Constraints: 0 + m_CollisionDetection: 0 +--- !u!136 &2063075834 +CapsuleCollider: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2063075830} + m_Material: {fileID: 0} + m_IncludeLayers: + serializedVersion: 2 + m_Bits: 0 + m_ExcludeLayers: + serializedVersion: 2 + m_Bits: 0 + m_LayerOverridePriority: 0 + m_IsTrigger: 0 + m_ProvidesContacts: 0 + m_Enabled: 1 + serializedVersion: 2 + m_Radius: 0.32 + m_Height: 1.25 + m_Direction: 1 + m_Center: {x: 0, y: 0, z: 0} +--- !u!23 &2063075835 +MeshRenderer: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2063075830} + m_Enabled: 1 + m_CastShadows: 1 + m_ReceiveShadows: 1 + m_DynamicOccludee: 1 + m_StaticShadowCaster: 0 + m_MotionVectors: 1 + m_LightProbeUsage: 1 + m_ReflectionProbeUsage: 1 + m_RayTracingMode: 2 + m_RayTraceProcedural: 0 + m_RayTracingAccelStructBuildFlagsOverride: 0 + m_RayTracingAccelStructBuildFlags: 1 + m_SmallMeshCulling: 1 + m_RenderingLayerMask: 1 + m_RendererPriority: 0 + m_Materials: + - {fileID: 2100000, guid: 31321ba15b8f8eb4c954353edc038b1d, type: 2} + m_StaticBatchInfo: + firstSubMesh: 0 + subMeshCount: 0 + m_StaticBatchRoot: {fileID: 0} + m_ProbeAnchor: {fileID: 0} + m_LightProbeVolumeOverride: {fileID: 0} + m_ScaleInLightmap: 1 + m_ReceiveGI: 1 + m_PreserveUVs: 0 + m_IgnoreNormalsForChartDetection: 0 + m_ImportantGI: 0 + m_StitchLightmapSeams: 1 + m_SelectedEditorRenderState: 3 + m_MinimumChartSize: 4 + m_AutoUVMaxDistance: 0.5 + m_AutoUVMaxAngle: 89 + m_LightmapParameters: {fileID: 0} + m_SortingLayerID: 0 + m_SortingLayer: 0 + m_SortingOrder: 0 + m_AdditionalVertexStreams: {fileID: 0} +--- !u!33 &2063075836 +MeshFilter: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2063075830} + m_Mesh: {fileID: 10208, guid: 0000000000000000e000000000000000, type: 0} +--- !u!4 &2063075837 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2063075830} + serializedVersion: 2 + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: -1.897, y: 1.0181, z: 0.001} + m_LocalScale: {x: 0.1, y: 0.1, z: 0.1} + m_ConstrainProportionsScale: 1 + m_Children: [] + m_Father: {fileID: 0} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!114 &2063075838 +MonoBehaviour: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2063075830} + m_Enabled: 1 + m_EditorHideFlags: 0 + m_Script: {fileID: 11500000, guid: 690ab0b52a9b06b4498ad303592416aa, type: 3} + m_Name: + m_EditorClassIdentifier: + InteractRange: 1 + CanEquip: 0 + equipPos: {x: 0, y: 0, z: 0} + equipRot: {x: 0, y: 0, z: 0, w: 0} + KinematicWhileInteracting: 0 + LocalOnly: 1 + ColliderRef: {fileID: 0} + RigidRef: {fileID: 0} + ConstraintRef: {fileID: 0} +--- !u!1773428102 &2063075839 +ParentConstraint: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 2063075830} + m_Enabled: 1 + serializedVersion: 2 + m_Weight: 1 + m_TranslationAtRest: {x: -1.897, y: 1.0181, z: 0.001} + m_RotationAtRest: {x: 0, y: 0, z: 0} + m_TranslationOffsets: [] + m_RotationOffsets: [] + m_AffectTranslationX: 1 + m_AffectTranslationY: 1 + m_AffectTranslationZ: 1 + m_AffectRotationX: 1 + m_AffectRotationY: 1 + m_AffectRotationZ: 1 + m_Active: 0 + m_IsLocked: 0 + m_Sources: [] +--- !u!1001 &6034627799823193631 +PrefabInstance: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Modification: + serializedVersion: 3 + m_TransformParent: {fileID: 0} + m_Modifications: + - target: {fileID: 3062725048134576212, guid: 59eac2e4af8e4e44d9efa5bac62e0100, type: 3} + propertyPath: m_LocalPosition.x + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 3062725048134576212, guid: 59eac2e4af8e4e44d9efa5bac62e0100, type: 3} + propertyPath: m_LocalPosition.y + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 3062725048134576212, guid: 59eac2e4af8e4e44d9efa5bac62e0100, type: 3} + propertyPath: m_LocalPosition.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 3062725048134576212, guid: 59eac2e4af8e4e44d9efa5bac62e0100, type: 3} + propertyPath: m_LocalRotation.w + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 3062725048134576212, guid: 59eac2e4af8e4e44d9efa5bac62e0100, type: 3} + propertyPath: m_LocalRotation.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 3062725048134576212, guid: 59eac2e4af8e4e44d9efa5bac62e0100, type: 3} + propertyPath: m_LocalRotation.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 3062725048134576212, guid: 59eac2e4af8e4e44d9efa5bac62e0100, type: 3} + propertyPath: m_LocalRotation.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 3062725048134576212, guid: 59eac2e4af8e4e44d9efa5bac62e0100, type: 3} + propertyPath: m_LocalEulerAnglesHint.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 3062725048134576212, guid: 59eac2e4af8e4e44d9efa5bac62e0100, type: 3} + propertyPath: m_LocalEulerAnglesHint.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 3062725048134576212, guid: 59eac2e4af8e4e44d9efa5bac62e0100, type: 3} + propertyPath: m_LocalEulerAnglesHint.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 3097727246981266052, guid: 59eac2e4af8e4e44d9efa5bac62e0100, type: 3} + propertyPath: m_UseGravity + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 5542437488106794660, guid: 59eac2e4af8e4e44d9efa5bac62e0100, type: 3} + propertyPath: m_Name + value: ExampleInteractableButton + objectReference: {fileID: 0} + - target: {fileID: 5542437488106794660, guid: 59eac2e4af8e4e44d9efa5bac62e0100, type: 3} + propertyPath: m_Layer + value: 8 + objectReference: {fileID: 0} + - target: {fileID: 5542437488106794660, guid: 59eac2e4af8e4e44d9efa5bac62e0100, type: 3} + propertyPath: m_IsActive + value: 1 + objectReference: {fileID: 0} + m_RemovedComponents: [] + m_RemovedGameObjects: [] + m_AddedGameObjects: [] + m_AddedComponents: [] + m_SourcePrefab: {fileID: 100100000, guid: 59eac2e4af8e4e44d9efa5bac62e0100, type: 3} +--- !u!1001 &6880374503260693233 +PrefabInstance: + m_ObjectHideFlags: 0 + serializedVersion: 2 + m_Modification: + serializedVersion: 3 + m_TransformParent: {fileID: 0} + m_Modifications: + - target: {fileID: 1391509528021517971, guid: 1701187c6a784ab4f8030c14149b0bce, type: 3} + propertyPath: m_LocalPosition.x + value: 0.952 + objectReference: {fileID: 0} + - target: {fileID: 1391509528021517971, guid: 1701187c6a784ab4f8030c14149b0bce, type: 3} + propertyPath: m_LocalPosition.y + value: 0.838 + objectReference: {fileID: 0} + - target: {fileID: 1391509528021517971, guid: 1701187c6a784ab4f8030c14149b0bce, type: 3} + propertyPath: m_LocalPosition.z + value: 0.654 + objectReference: {fileID: 0} + - target: {fileID: 1391509528021517971, guid: 1701187c6a784ab4f8030c14149b0bce, type: 3} + propertyPath: m_LocalRotation.w + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 1391509528021517971, guid: 1701187c6a784ab4f8030c14149b0bce, type: 3} + propertyPath: m_LocalRotation.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 1391509528021517971, guid: 1701187c6a784ab4f8030c14149b0bce, type: 3} + propertyPath: m_LocalRotation.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 1391509528021517971, guid: 1701187c6a784ab4f8030c14149b0bce, type: 3} + propertyPath: m_LocalRotation.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 1391509528021517971, guid: 1701187c6a784ab4f8030c14149b0bce, type: 3} + propertyPath: m_LocalEulerAnglesHint.x + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 1391509528021517971, guid: 1701187c6a784ab4f8030c14149b0bce, type: 3} + propertyPath: m_LocalEulerAnglesHint.y + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 1391509528021517971, guid: 1701187c6a784ab4f8030c14149b0bce, type: 3} + propertyPath: m_LocalEulerAnglesHint.z + value: 0 + objectReference: {fileID: 0} + - target: {fileID: 7823537412809617706, guid: 1701187c6a784ab4f8030c14149b0bce, type: 3} + propertyPath: m_Name + value: MirrorFront + objectReference: {fileID: 0} + - target: {fileID: 7823537412809617706, guid: 1701187c6a784ab4f8030c14149b0bce, type: 3} + propertyPath: m_Layer + value: 8 + objectReference: {fileID: 0} + - target: {fileID: 7823537412809617706, guid: 1701187c6a784ab4f8030c14149b0bce, type: 3} + propertyPath: m_IsActive + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 8090299133553875483, guid: 1701187c6a784ab4f8030c14149b0bce, type: 3} + propertyPath: m_Name + value: MirrorBack + objectReference: {fileID: 0} + - target: {fileID: 8090299133553875483, guid: 1701187c6a784ab4f8030c14149b0bce, type: 3} + propertyPath: m_Layer + value: 8 + objectReference: {fileID: 0} + - target: {fileID: 8090299133553875483, guid: 1701187c6a784ab4f8030c14149b0bce, type: 3} + propertyPath: m_IsActive + value: 1 + objectReference: {fileID: 0} + - target: {fileID: 8495108801776137362, guid: 1701187c6a784ab4f8030c14149b0bce, type: 3} + propertyPath: m_Name + value: PersonalMirror + objectReference: {fileID: 0} + - target: {fileID: 8495108801776137362, guid: 1701187c6a784ab4f8030c14149b0bce, type: 3} + propertyPath: m_Layer + value: 8 + objectReference: {fileID: 0} + - target: {fileID: 8495108801776137362, guid: 1701187c6a784ab4f8030c14149b0bce, type: 3} + propertyPath: m_IsActive + value: 1 + objectReference: {fileID: 0} + m_RemovedComponents: [] + m_RemovedGameObjects: [] + m_AddedGameObjects: [] + m_AddedComponents: [] + m_SourcePrefab: {fileID: 100100000, guid: 1701187c6a784ab4f8030c14149b0bce, type: 3} +--- !u!1660057539 &9223372036854775807 +SceneRoots: + m_ObjectHideFlags: 0 + m_Roots: + - {fileID: 1556212797} + - {fileID: 1405895930} + - {fileID: 241820450} + - {fileID: 1770558167} + - {fileID: 391151166} + - {fileID: 953741117} + - {fileID: 782519661} + - {fileID: 264690768} + - {fileID: 1472934491} + - {fileID: 2063075837} + - {fileID: 1568311663} + - {fileID: 1983638912} + - {fileID: 1336315016} + - {fileID: 21929894} + - {fileID: 462462413} + - {fileID: 556741054} + - {fileID: 6034627799823193631} + - {fileID: 6880374503260693233} + - {fileID: 1734220527} + - {fileID: 857767427} diff --git a/Basis/Packages/com.basis.server/BasisNetworkCore/BasisNetworkCore.csproj.meta b/Basis/Packages/com.basis.tests/Interactable/InteractableTestScene.unity.meta similarity index 74% rename from Basis/Packages/com.basis.server/BasisNetworkCore/BasisNetworkCore.csproj.meta rename to Basis/Packages/com.basis.tests/Interactable/InteractableTestScene.unity.meta index 8b4d0e3ce..19352c0cb 100644 --- a/Basis/Packages/com.basis.server/BasisNetworkCore/BasisNetworkCore.csproj.meta +++ b/Basis/Packages/com.basis.tests/Interactable/InteractableTestScene.unity.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: 781f141bec8a3c048a88d9a3ad24e821 +guid: e1c5df4575fa3064ab323ddb185aa733 DefaultImporter: externalObjects: {} userData: diff --git a/Basis/Packages/com.basis.tests/Interactable/PickupInteractable.cs b/Basis/Packages/com.basis.tests/Interactable/PickupInteractable.cs new file mode 100644 index 000000000..ffdecc79f --- /dev/null +++ b/Basis/Packages/com.basis.tests/Interactable/PickupInteractable.cs @@ -0,0 +1,285 @@ +using Basis.Scripts.Device_Management.Devices; +using UnityEngine; +using UnityEngine.AddressableAssets; +using UnityEngine.Animations; +using UnityEngine.LowLevelPhysics; +using UnityEngine.ResourceManagement.AsyncOperations; + +public class PickupInteractable : InteractableObject +{ + // public BasisObjectSyncNetworking syncNetworking; + + + + [Header("Reparent Settings")] + public bool KinematicWhileInteracting = false; + + [SerializeField] + private bool LocalOnly = true; + + [Header("References")] + public Collider ColliderRef; + public Rigidbody RigidRef; + public ParentConstraint ConstraintRef; + + // internal values + private GameObject HighlightClone; + private AsyncOperationHandle asyncOperationHighlightMat; + private Material ColliderHighlightMat; + private bool _previousKinematicValue = true; + + // constants + const string k_LoadMaterialAddress = "Interactable/InteractHighlightMat.mat"; + const string k_CloneName = "HighlightClone"; + + void Start() + { + InputSources = new CachedList + { + new InputSource(null, false) + }; + + if (RigidRef == null) + { + TryGetComponent(out RigidRef); + } + if (ColliderRef == null) + { + TryGetComponent(out ColliderRef); + } + if (ConstraintRef == null) + { + if (TryGetComponent(out ConstraintRef)) + { + var nullSource = new ConstraintSource() { + sourceTransform = null, + weight = 1, + }; + ConstraintRef.AddSource(nullSource); + } + } + + // TODO: netsync + if (!LocalOnly) + { + // syncNetworking = GetComponent(); + } + + AsyncOperationHandle op = Addressables.LoadAssetAsync(k_LoadMaterialAddress); + ColliderHighlightMat = op.WaitForCompletion(); + asyncOperationHighlightMat = op; + + // NOTE: Collider mesh highlight position and size is only updated on Start(). + // If you wish to have the highlight update at runtime do that elsewhere or make a different InteractableObject Script + HighlightClone = ColliderClone.CloneColliderMesh(ColliderRef, gameObject.transform, k_CloneName); + + if (HighlightClone != null) + { + if (HighlightClone.TryGetComponent(out MeshRenderer meshRenderer)) + { + meshRenderer.material = ColliderHighlightMat; + } + else + { + BasisDebug.LogWarning("Pickup Interactable could not find MeshRenderer component on mesh clone. Highlights will be broken"); + } + } + + } + + + + + public void HighlightObject(bool highlight) + { + if (ColliderRef && HighlightClone) + { + HighlightClone.SetActive(highlight); + } + } + + public override bool CanHover(BasisInput input) + { + // must be dropped to hover + return InputSources[0].Source == null && IsWithinRange(input.transform.position); + } + public override bool CanInteract(BasisInput input) + { + // currently hovering with this input + return InputSources[0].Source != null && + !InputSources[0].IsInteracting && + InputSources[0].Source.UniqueDeviceIdentifier == input.UniqueDeviceIdentifier && + IsWithinRange(input.transform.position); + } + + public override void OnHoverStart(BasisInput input) + { + InputSources[0] = new InputSource(input, false); + HighlightObject(true); + } + + public override void OnHoverEnd(BasisInput input, bool willInteract) + { + if (InputSources[0].Source.UniqueDeviceIdentifier == input.UniqueDeviceIdentifier) + { + if (!willInteract) + { + InputSources[0] = new InputSource(null, false); + } + HighlightObject(false); + } + } + + public override void OnInteractStart(BasisInput input) + { + // same input that was highlighting previously + if (InputSources[0].Source != null && + InputSources[0].Source.UniqueDeviceIdentifier == input.UniqueDeviceIdentifier && + !InputSources[0].IsInteracting + ) { + SetParentConstraint(input.transform); + + if(RigidRef != null && KinematicWhileInteracting) + { + _previousKinematicValue = RigidRef.isKinematic; + RigidRef.isKinematic = true; + } + + // Set ownership to the local player + // syncNetworking.IsOwner = true; + InputSources[0] = new InputSource(input, true); + } + else + { + Debug.LogWarning("Input source interacted with ReparentInteractable without highlighting first."); + } + } + + public override void OnInteractEnd(BasisInput input) + { + if (InputSources[0].IsInteracting && InputSources[0].Source != null && InputSources[0].Source.UniqueDeviceIdentifier == input.UniqueDeviceIdentifier) + { + SetParentConstraint(null); + + InputSources[0] = new InputSource(null, false); + + if(KinematicWhileInteracting && RigidRef != null) + { + RigidRef.isKinematic = _previousKinematicValue; + } + + + // syncNetworking.IsOwner = false; + } + } + + public void SetParentConstraint(Transform source) { + if (ConstraintRef != null) + { + // ignore source count, only modify the 0 index + var newSource = new ConstraintSource() + { + sourceTransform = source, + weight = 1, + }; + ConstraintRef.SetSource(0, newSource); + + if (CanEquip) + { + ConstraintRef.SetTranslationOffset(0, equipPos); + ConstraintRef.SetRotationOffset(0, equipRot.eulerAngles); + } + else if (source != null) + { + ConstraintRef.SetTranslationOffset(0, source.InverseTransformPoint(transform.position)); + ConstraintRef.SetRotationOffset(0, (Quaternion.Inverse(source.rotation) * transform.rotation).eulerAngles); + } + + + // force constraint weight + ConstraintRef.weight = 1; + ConstraintRef.constraintActive = source != null; + } + else + { + Debug.LogError("ReparentInteractable lost its parent constraint component!", gameObject); + } + } + + public override void InputUpdate() + { + if (InputSources[0].IsInteracting && InputSources[0].Source != null) + { + // transform updated by transform heirarchy already + + // Update the networked data (Storeddata) to reflect the position, rotation, and scale + if (!LocalOnly) + { + // syncNetworking.Storeddata.Position = transform.position; + // syncNetworking.Storeddata.Rotation = transform.rotation; + // syncNetworking.Storeddata.Scale = transform.localScale; + } + } + } + + + public override bool IsInteractingWith(BasisInput input) + { + return InputSources[0].IsInteracting && + InputSources[0].Source != null && + InputSources[0].Source.UniqueDeviceIdentifier == input.UniqueDeviceIdentifier; + } + + public override bool IsHoveredBy(BasisInput input) + { + return !InputSources[0].IsInteracting && + InputSources[0].Source != null && + InputSources[0].Source.UniqueDeviceIdentifier == input.UniqueDeviceIdentifier; + } + + // this is cached, use it + public override Collider GetCollider() + { + return ColliderRef; + } + + // TODO: netsync + // public void OnOwnershipTransfer(bool isOwner) + // { + // // remove ourselves from influece + // if (!isOwner) + // { + // transform.SetParent(null); + // InputSources[0] = new InputSource(null, true); + // } + // // dont care otherwise, wait for hover/interact + // } + + void OnDestroy() + { + Destroy(HighlightClone); + if (asyncOperationHighlightMat.IsValid()) + { + asyncOperationHighlightMat.Release(); + } + } + + #if UNITY_EDITOR + public void OnValidate() + { + string errPrefix = "ReparentInteractable needs component defined on self or given a reference for "; + if (RigidRef == null && !TryGetComponent(out Rigidbody _)) + { + Debug.LogWarning(errPrefix + "Rigidbody", gameObject); + } + if (ColliderRef == null && !TryGetComponent(out Collider _)) + { + Debug.LogWarning(errPrefix + "Collider", gameObject); + } + if (ConstraintRef == null && !TryGetComponent(out ParentConstraint _)) + { + Debug.LogWarning(errPrefix + "ParentConstraint", gameObject); + } + } + #endif +} \ No newline at end of file diff --git a/Basis/Packages/com.basis.tests/Interactable/PickupInteractable.cs.meta b/Basis/Packages/com.basis.tests/Interactable/PickupInteractable.cs.meta new file mode 100644 index 000000000..fe74fed80 --- /dev/null +++ b/Basis/Packages/com.basis.tests/Interactable/PickupInteractable.cs.meta @@ -0,0 +1,2 @@ +fileFormatVersion: 2 +guid: 690ab0b52a9b06b4498ad303592416aa \ No newline at end of file diff --git a/Basis/Packages/com.basis.tests/Interactable/PickupJointInteractable.cs b/Basis/Packages/com.basis.tests/Interactable/PickupJointInteractable.cs new file mode 100644 index 000000000..fff38efaf --- /dev/null +++ b/Basis/Packages/com.basis.tests/Interactable/PickupJointInteractable.cs @@ -0,0 +1,134 @@ +using Basis.Scripts.Device_Management.Devices; +using UnityEngine; + +public class PickupJointInteractable : InteractableObject +{ + [Header("Pickup Joint Settings")] + + + [Header("References")] + public Collider ColliderRef; + public Rigidbody RigidRef; + private ConfigurableJoint JointRef; + private bool lastDetectCollisions; + + private Transform anchor; + private float offsetDistance; + private Quaternion offsetRot; + + + bool isHeld = false; + // public BasisObjectSyncNetworking syncNetworking; + + void Start() + { + if (RigidRef == null) + { + TryGetComponent(out RigidRef); + } + if (ColliderRef == null) + { + TryGetComponent(out ColliderRef); + } + if (JointRef == null) + { + TryGetComponent(out JointRef); + } + + JointRef.autoConfigureConnectedAnchor = false; + JointRef.configuredInWorldSpace = true; + LockJoint(false); + + + // TODO: netsync + // syncNetworking = GetComponent(); + } + + public void LockJoint(bool isLocked) { + if(isLocked){ + JointRef.xMotion = ConfigurableJointMotion.Locked; + JointRef.yMotion = ConfigurableJointMotion.Locked; + JointRef.zMotion = ConfigurableJointMotion.Locked; + + JointRef.angularXMotion = ConfigurableJointMotion.Locked; + JointRef.angularYMotion = ConfigurableJointMotion.Locked; + JointRef.angularZMotion = ConfigurableJointMotion.Locked; + } else { + JointRef.xMotion = ConfigurableJointMotion.Free; + JointRef.yMotion = ConfigurableJointMotion.Free; + JointRef.zMotion = ConfigurableJointMotion.Free; + + JointRef.angularXMotion = ConfigurableJointMotion.Free; + JointRef.angularYMotion = ConfigurableJointMotion.Free; + JointRef.angularZMotion = ConfigurableJointMotion.Free; + } + } + + public void FixedUpdate() { + if(isHeld) { + // set world position and rotation of the joint + JointRef.connectedAnchor = anchor.position + anchor.forward * offsetDistance; + JointRef.targetRotation = Quaternion.Inverse(anchor.rotation) * offsetRot; + // TODO: send postition to network while held + } + } + + public override bool CanHover(BasisInput input) + { + throw new System.NotImplementedException(); + } + + public override bool IsHoveredBy(BasisInput input) + { + throw new System.NotImplementedException(); + } + + public override bool CanInteract(BasisInput input) + { + throw new System.NotImplementedException(); + } + + public override bool IsInteractingWith(BasisInput input) + { + throw new System.NotImplementedException(); + } + + public override void OnInteractStart(BasisInput input) + { + // save object distance and rotation + anchor = input.transform; + offsetDistance = Vector3.Distance(transform.position, input.transform.position); + offsetRot = gameObject.transform.rotation; + + // lock all axes of the joint + LockJoint(true); + + // // Update the networked data (Storeddata) to reflect the position, rotation, and scale + // syncNetworking.Storeddata.Position = transform.position; + // syncNetworking.Storeddata.Rotation = transform.rotation; + // syncNetworking.Storeddata.Scale = transform.localScale; + + // Set ownership to the local player when they pick up the object + // syncNetworking.IsOwner = true; + } + + public override void OnInteractEnd(BasisInput input) + { + LockJoint(false); + } + + public override void OnHoverStart(BasisInput input) + { + throw new System.NotImplementedException(); + } + + public override void OnHoverEnd(BasisInput input, bool willInteract) + { + throw new System.NotImplementedException(); + } + + public override void InputUpdate() + { + throw new System.NotImplementedException(); + } +} \ No newline at end of file diff --git a/Basis/Packages/com.basis.tests/Interactable/PickupJointInteractable.cs.meta b/Basis/Packages/com.basis.tests/Interactable/PickupJointInteractable.cs.meta new file mode 100644 index 000000000..a092cf237 --- /dev/null +++ b/Basis/Packages/com.basis.tests/Interactable/PickupJointInteractable.cs.meta @@ -0,0 +1,2 @@ +fileFormatVersion: 2 +guid: dd7363cfce68e0c45a0c524fe6a109d5 \ No newline at end of file diff --git a/Basis/Packages/com.basis.tests/Interactable/PlayerInteract.cs b/Basis/Packages/com.basis.tests/Interactable/PlayerInteract.cs new file mode 100644 index 000000000..5d31fccc5 --- /dev/null +++ b/Basis/Packages/com.basis.tests/Interactable/PlayerInteract.cs @@ -0,0 +1,456 @@ +using UnityEngine; +using Basis.Scripts.BasisSdk.Players; +using Basis.Scripts.Device_Management; +using System.Collections.Generic; +using System.Linq; +using Basis.Scripts.Device_Management.Devices; +using UnityEngine.AddressableAssets; +using Unity.Burst; +using UnityEngine.ResourceManagement.AsyncOperations; +using Basis.Scripts.TransformBinders.BoneControl; + +public class PlayerInteract : MonoBehaviour +{ + + [Tooltip("How far the player can interact with objects. Must > hoverDistance")] + public float raycastDistance = 1.0f; + [Tooltip("How far the player Hover.")] + public float hoverRadius = 0.5f; + [Tooltip("Both of the above are relative to object transforms, objects with larger colliders may have issues")] + + public struct InteractInput + { + public string deviceUid { get; set; } + public BasisInput input { get; set; } + public GameObject interactOrigin { get; set; } + // TODO: use this ref + public LineRenderer lineRenderer { get; set; } + public HoverInteractSphere hoverInteract { get; set; } + public InteractableObject lastTarget { get; set; } + + public bool IsInput(BasisInput input) + { + return deviceUid == input.UniqueDeviceIdentifier; + } + } + + public CachedList InteractInputs = new(); + + // private UniqueCounterList ActiveObjects = new(); + + public Material LineMaterial; + private AsyncOperationHandle asyncOperationLineMaterial; + public float interactLineWidth = 0.015f; + public bool renderInteractLine = true; + + // TODO: load with addressable. + public static string LoadMaterialAddress = "Interactable/InteractLineMat.mat"; + + + void Start() + { + BasisLocalPlayer.Instance.LocalBoneDriver.OnSimulate += Simulate; + BasisDeviceManagement.Instance.AllInputDevices.OnListChanged += OnInputChanged; + BasisDeviceManagement.Instance.AllInputDevices.OnListItemRemoved += OnInputRemoved; + + AsyncOperationHandle op = Addressables.LoadAssetAsync(LoadMaterialAddress); + LineMaterial = op.WaitForCompletion(); + asyncOperationLineMaterial = op; + } + void OnDestroy() + { + if (asyncOperationLineMaterial.IsValid()) + { + asyncOperationLineMaterial.Release(); + } + BasisLocalPlayer.Instance.LocalBoneDriver.OnSimulate -= Simulate; + BasisDeviceManagement.Instance.AllInputDevices.OnListChanged -= OnInputChanged; + BasisDeviceManagement.Instance.AllInputDevices.OnListItemRemoved -= OnInputRemoved; + + foreach (InteractInput input in InteractInputs) + { + Destroy(input.interactOrigin); + } + } + + private void OnInputChanged() + { + int count = BasisDeviceManagement.Instance.AllInputDevices.Count; + for (int Index = 0; Index < count; Index++) + { + BasisInput device = BasisDeviceManagement.Instance.AllInputDevices[Index]; + // skip invalid or already included + if (device == null || device != null && InteractInputs.Any(x => x.IsInput(device))) + { + continue; + } + + // TODO: need a different config value for can interact/pickup/grab. Mainly input action/trigger values + if (device.BasisDeviceMatchableNames != null && + device.BasisDeviceMatchableNames.HasRayCastSupport + ) { + AddInput(device); + } + // TODO: what if it has no matchable name? + // device removed handled elsewhere + } + } + + private void OnInputRemoved(BasisInput input) + { + RemoveInput(input.UniqueDeviceIdentifier); + } + + // simulate after IK update + [BurstCompile] + private void Simulate() + { + var count = InteractInputs.Count; + for (int Index = 0; Index < count; Index++) + { + InteractInput interactInput = InteractInputs[Index]; + if (interactInput.input == null) + { + Debug.LogWarning("Pickup input device unexpectedly null, input devices likely changed"); + continue; + } + + HoverInteractSphere hoverSphere = interactInput.hoverInteract; + + Vector3 originPos = interactInput.interactOrigin.transform.position; + Ray ray; + if (hoverSphere.HoverTarget != null) + { + Vector3 direction = (originPos - hoverSphere.TargetClosestPoint).normalized; + ray = new Ray(originPos, direction); + } + else + { + if (IsDesktopCenterEye(interactInput.input)) + { + ray = new Ray(interactInput.input.transform.position, interactInput.input.transform.forward); + } + else + { + Vector3 origin = originPos; + Vector3 direction = interactInput.interactOrigin.transform.forward; + ray = new Ray(origin, direction); + } + } + + RaycastHit rayHit; + InteractableObject hitInteractable = null; + // TODO: Interact layer + bool isValidRayHit = Physics.Raycast(ray, out rayHit, raycastDistance) && + rayHit.collider != null && + rayHit.collider.TryGetComponent(out hitInteractable); + + + if (isValidRayHit || hoverSphere.HoverTarget != null) + { + // prioritize hover + if (hoverSphere.HoverTarget != null) + { + hitInteractable = hoverSphere.HoverTarget; + } + + if (hitInteractable != null) + { + // NOTE: this will skip a frame of hover after stopping interact + interactInput = UpdatePickupState(hitInteractable, interactInput); + + + } + } + // hover misssed entirely + else + { + if (interactInput.lastTarget != null) + { + // seperate if blocks in case implementation allows for hovering and holding of the same object + + // TODO: proximity check so we dont keep interacting with objects out side of player's reach. Needs an impl that wont break under lag though. `|| !interactInput.targetObject.IsWithinRange(interactInput.input.transform)` + // only drop if trigger was released + if (!IsInputGrabbing(interactInput.input) && interactInput.lastTarget.IsInteractingWith(interactInput.input)) + { + interactInput.lastTarget.OnInteractEnd(interactInput.input); + } + + if (interactInput.lastTarget.IsHoveredBy(interactInput.input)) + { + interactInput.lastTarget.OnHoverEnd(interactInput.input, false); + } + } + } + + // write changes back + InteractInputs[Index] = interactInput; + } + + // update objects, seperate list to ensure each target only gets one update + List updateList = new(); + foreach (InteractInput input in InteractInputs) + { + if (input.lastTarget != null && !updateList.Any(x => x.GetInstanceID() == input.lastTarget.GetInstanceID())) + { + updateList.Add(input.lastTarget); + } + } + foreach (InteractableObject interactable in updateList) + { + interactable.InputUpdate(); + } + + + // apply line renderer + if (renderInteractLine) + { + foreach (InteractInput input in InteractInputs) + { + if (input.lastTarget != null && input.lastTarget.IsHoveredBy(input.input)) + { + Vector3 origin = input.interactOrigin.transform.position; + Vector3 start; + // desktop offset for center eye (a little to the bottom right) + if (IsDesktopCenterEye(input.input)) + { + start = input.interactOrigin.transform.position + (input.interactOrigin.transform.forward * 0.1f) + Vector3.down * 0.1f + (input.interactOrigin.transform.right * 0.1f); + } + else + { + start = origin; + } + if (input.lineRenderer != null) + { + Vector3 endPos = input.lastTarget.GetCollider().ClosestPoint(origin); + input.lineRenderer.SetPosition(0, start); + input.lineRenderer.SetPosition(1, endPos); + input.lineRenderer.enabled = true; + } + } + else + { + if (input.lineRenderer) + { + input.lineRenderer.enabled = false; + } + } + } + } + // turn all the lines off + else + { + foreach (InteractInput input in InteractInputs) + { + input.lineRenderer.enabled = false; + } + } + } + + private InteractInput UpdatePickupState(InteractableObject hitInteractable, InteractInput interactInput) + { + // hit a different target than last time + if (interactInput.lastTarget != null && interactInput.lastTarget.GetInstanceID() != hitInteractable.GetInstanceID()) + { + // TODO: grab button instead of full trigger + // Holding Logic: + if (IsInputGrabbing(interactInput.input)) + { + // clear hover (unlikely to happen since last frame, but possible) + if (interactInput.lastTarget.IsHoveredBy(interactInput.input)) + { + interactInput.lastTarget.OnHoverEnd(interactInput.input, false); + } + + // interacted with new hit since last frame & we arent holding (in which case do nothing) + if (hitInteractable.CanInteract(interactInput.input) && !interactInput.lastTarget.IsInteractingWith(interactInput.input)) + { + hitInteractable.OnInteractStart(interactInput.input); + interactInput.lastTarget = hitInteractable; + } + } + // No trigger + else + { + bool removeTarget = false; + // end iteract of hit (unlikely since we just hit it this update) + if (hitInteractable.IsInteractingWith(interactInput.input)) + { + hitInteractable.OnInteractEnd(interactInput.input); + } + // end interact of previous object + if (interactInput.lastTarget.IsInteractingWith(interactInput.input)) + { + interactInput.lastTarget.OnInteractEnd(interactInput.input); + removeTarget = true; + } + + // hover missed previous object + if (interactInput.lastTarget.IsHoveredBy(interactInput.input)) + { + interactInput.lastTarget.OnHoverEnd(interactInput.input, false); + removeTarget = true; + } + + // remove here in case both hover and interact ended + if (removeTarget) + { + interactInput.lastTarget = null; + } + + // try hovering new interactable + if (hitInteractable.CanHover(interactInput.input)) + { + hitInteractable.OnHoverStart(interactInput.input); + interactInput.lastTarget = hitInteractable; + } + } + } + // hitting same interactable + else + { + // TODO: middle finger grab instead of full trigger + // Pickup logic: + // per input an object can be either held or hovered, not both. Objects can ignore this by purposfully modifying IsHovered/IsInteracted. + if (IsInputGrabbing(interactInput.input)) + { + // first clear hover... + if (hitInteractable.IsHoveredBy(interactInput.input)) + { + // will interact this frame + hitInteractable.OnHoverEnd(interactInput.input, hitInteractable.CanInteract(interactInput.input)); + } + + // then try to interact + // TODO: hand set pickup limitations + if (hitInteractable.CanInteract(interactInput.input)) + { + hitInteractable.OnInteractStart(interactInput.input); + interactInput.lastTarget = hitInteractable; + } + } + // not holding + // hover if we arent holding, drop any held + else + { + // first end interact... + if (hitInteractable.IsInteractingWith(interactInput.input)) + { + hitInteractable.OnInteractEnd(interactInput.input); + } + + // then hover + if (hitInteractable.CanHover(interactInput.input)) + { + hitInteractable.OnHoverStart(interactInput.input); + interactInput.lastTarget = hitInteractable; + } + } + } + return interactInput; + } + + private bool IsInputGrabbing(BasisInput input) + { + return input.InputState.Trigger > 0.5f; + } + + private void RemoveInput(string uid) + { + var inputs = InteractInputs.Where(x => x.deviceUid == uid).ToArray(); + if (inputs.Length > 1) + { + BasisDebug.LogError("Interact Inputs has multiple inputs of the same UID. Please report this bug."); + } + + if (inputs.Length > 0) + { + InteractInput input = inputs[0]; + if (input.lastTarget != null) + { + if (input.lastTarget.IsHoveredBy(input.input)) + { + input.lastTarget.OnHoverEnd(input.input, false); + } + + if (input.lastTarget.IsInteractingWith(input.input)) + { + input.lastTarget.OnInteractEnd(input.input); + } + } + + + Destroy(input.interactOrigin); + InteractInputs.Remove(input); + } + } + + private void AddInput(BasisInput input) + { + GameObject interactOrigin = new GameObject("Interact Origin"); + + LineRenderer lineRenderer = interactOrigin.AddComponent(); + SphereCollider sphereCollider = interactOrigin.AddComponent(); + HoverInteractSphere interactSphere = interactOrigin.AddComponent(); + + interactOrigin.transform.SetParent(input.transform); + interactOrigin.layer = LayerMask.NameToLayer("Interactable"); + // TODO: custom config to use center of palm instead of raycast offset (IK palm? but that breaks input on a bad avi upload, no?) + interactOrigin.transform.SetLocalPositionAndRotation(input.BasisDeviceMatchableNames.PositionRayCastOffset, Quaternion.Euler(input.BasisDeviceMatchableNames.RotationRaycastOffset)); + + lineRenderer.enabled = false; + lineRenderer.material = LineMaterial; + lineRenderer.startWidth = interactLineWidth; + lineRenderer.endWidth = interactLineWidth; + lineRenderer.useWorldSpace = true; + lineRenderer.textureMode = LineTextureMode.Tile; + lineRenderer.positionCount = 2; + lineRenderer.numCapVertices = 0; + lineRenderer.shadowCastingMode = UnityEngine.Rendering.ShadowCastingMode.Off; + + sphereCollider.isTrigger = true; + sphereCollider.center = Vector3.zero; + sphereCollider.radius = hoverRadius; + // deskies cant hover grab :) + sphereCollider.enabled = !IsDesktopCenterEye(input); + + + InteractInput interactInput = new() + { + deviceUid = input.UniqueDeviceIdentifier, + input = input, + interactOrigin = interactOrigin, + lineRenderer = lineRenderer, + hoverInteract = interactSphere, + }; + + InteractInputs.Add(interactInput); + } + + + private void OnDrawGizmos() + { + foreach (var device in InteractInputs) + { + // pointer line + Gizmos.DrawLine(device.interactOrigin.transform.position, device.interactOrigin.transform.position + device.interactOrigin.transform.forward * raycastDistance); + + // hover target line + if (device.hoverInteract != null && device.hoverInteract.HoverTarget != null) + { + Gizmos.DrawLine(device.interactOrigin.transform.position, device.hoverInteract.TargetClosestPoint); + } + + // hover sphere + if (!IsDesktopCenterEye(device.input)) + { + Gizmos.DrawWireSphere(device.interactOrigin.transform.position, hoverRadius); + } + } + } + + public bool IsDesktopCenterEye(BasisInput input) + { + return input.TryGetRole(out BasisBoneTrackedRole role) && role == BasisBoneTrackedRole.CenterEye; + } +} diff --git a/Basis/Packages/com.basis.tests/Interactable/PlayerInteract.cs.meta b/Basis/Packages/com.basis.tests/Interactable/PlayerInteract.cs.meta new file mode 100644 index 000000000..9548a6186 --- /dev/null +++ b/Basis/Packages/com.basis.tests/Interactable/PlayerInteract.cs.meta @@ -0,0 +1,12 @@ +fileFormatVersion: 2 +guid: b2ca35de189490844b1d7864bc416ffb +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: + - lineMaterial: {fileID: 2100000, guid: d493c777ec2122f44b6c648a5024c42a, type: 2} + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Basis/Packages/com.basis.tests/Interactable/UniqueCounterList.cs b/Basis/Packages/com.basis.tests/Interactable/UniqueCounterList.cs new file mode 100644 index 000000000..b332b5103 --- /dev/null +++ b/Basis/Packages/com.basis.tests/Interactable/UniqueCounterList.cs @@ -0,0 +1,144 @@ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Diagnostics; +using System.Linq; + +public class UniqueCounterList : IEnumerable where T : UnityEngine.Object +{ + private readonly List _list; + private readonly HashSet _hashSet; + private int _cachedCount; + private bool _isCountValid; + + public UniqueCounterList() + { + _list = new List(); + _hashSet = new HashSet(); + _isCountValid = false; + } + + public struct UItem + { + public T Item; + public int Counter; + } + + public UniqueCounterList(IEnumerable collection) + { + var unique = collection.GroupBy(s => s.GetInstanceID(), s => s, (k, v) => new UItem { Item = (T)v, Counter = k}); + + _list = new List(unique); + _hashSet = new HashSet(collection); + _cachedCount = _list.Count; + _isCountValid = true; + } + + public int Count + { + get + { + if (!_isCountValid) + { + _cachedCount = _list.Count; + _isCountValid = true; + } + return _cachedCount; + } + } + + public void Add(T item) + { + if (_hashSet.Contains(item)) + { + int index = _list.FindIndex(x => x.Item.GetInstanceID() == item.GetInstanceID()); + Debug.Assert(index >= 0); + var old = _list[index]; + old.Counter++; + _list[index] = old; + } + else + { + _list.Add(new UItem {Item = item, Counter = 1}); + _hashSet.Add(item); + InvalidateCount(); + } + } + + // public void AddRange(IEnumerable collection) + // { + // _list.AddRange(collection); + // InvalidateCount(); + // } + + public bool Remove(T item) + { + bool removed = false; + + if(_hashSet.Contains(item)) { + int index = _list.FindIndex(x => x.Item.GetInstanceID() == item.GetInstanceID()); + Debug.Assert(index >= 0); + var old = _list[index]; + old.Counter--; + _list[index] = old; + removed = old.Counter <= 0; + } + if (removed) + { + bool listRemoved = _list.RemoveAll(x => x.Item.GetInstanceID() == item.GetInstanceID()) > 0; + bool hashSetRemoved = _hashSet.Remove(item); + Debug.Assert(listRemoved && hashSetRemoved); + InvalidateCount(); + } + return removed; + } + + public bool Contains(T item) + { + return _hashSet.Contains(item); + } + public int GetCounterOf(T item) + { + if(!_hashSet.Contains(item)) return 0; + return _list.Find(x => x.Item.GetInstanceID() == item.GetInstanceID()).Counter; + } + + // public void RemoveAt(int index) + // { + // _list.RemoveAt(index); + // InvalidateCount(); + // } + + public void Clear() + { + _list.Clear(); + _hashSet.Clear(); + InvalidateCount(); + } + + public T this[int index] + { + get => _list[index].Item; + // set => _list[index] = value; + } + + private void InvalidateCount() + { + _isCountValid = false; + } + + public IEnumerator GetEnumerator() + { + return _list.Select(x => x.Item).GetEnumerator(); + } + + public IEnumerator GetCountersEnumerator() + { + return _list.GetEnumerator(); + } + + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } +} diff --git a/Basis/Packages/com.basis.tests/Interactable/UniqueCounterList.cs.meta b/Basis/Packages/com.basis.tests/Interactable/UniqueCounterList.cs.meta new file mode 100644 index 000000000..8aaa0dc2f --- /dev/null +++ b/Basis/Packages/com.basis.tests/Interactable/UniqueCounterList.cs.meta @@ -0,0 +1,2 @@ +fileFormatVersion: 2 +guid: 0ef3eb9025860b549a27964cd3be6524 \ No newline at end of file diff --git a/Basis/ProjectSettings/DynamicsManager.asset b/Basis/ProjectSettings/DynamicsManager.asset index 33fb6817a..370bedd1f 100644 --- a/Basis/ProjectSettings/DynamicsManager.asset +++ b/Basis/ProjectSettings/DynamicsManager.asset @@ -17,7 +17,7 @@ PhysicsManager: m_EnableAdaptiveForce: 1 m_ClothInterCollisionDistance: 0.1 m_ClothInterCollisionStiffness: 0.2 - m_LayerCollisionMatrix: 5fffffff5fffffff5fffffff5fffffff5fffffff40ffffff7fffffff00ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff + m_LayerCollisionMatrix: 5fffffff5ffeffff5ffeffff5ffeffff5ffeffff40feffff7ffeffff00feffff01ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff m_SimulationMode: 0 m_AutoSyncTransforms: 0 m_ReuseCollisionCallbacks: 1 diff --git a/Basis/ProjectSettings/TagManager.asset b/Basis/ProjectSettings/TagManager.asset index 1f899bda2..a79da2b2d 100644 --- a/Basis/ProjectSettings/TagManager.asset +++ b/Basis/ProjectSettings/TagManager.asset @@ -13,7 +13,7 @@ TagManager: - UI - LocalPlayerAvatar - RemotePlayerAvatar - - + - Interactable - - -