Reworked Socket + EndPos reset

This commit is contained in:
FreshMix committed 2025-12-19 14:00:22 +03:00
1 parent 085d330a87
commit 430f676e49
151 files changed
+18189 -18441

No files matched your search

File diff suppressed because it is too large. Load diff
+319 -313
View File
File diff suppressed because it is too large. Load diff
-16
View File
@@ -1,16 +0,0 @@
using UnityEngine;
public class DbgScpt : MonoBehaviour
{
// Start is called once before the first execution of Update after the MonoBehaviour is created
void Start()
{
Debug.Log(gameObject.transform.position);
}
// Update is called once per frame
void Update()
{
}
}
-2
View File
@@ -1,2 +0,0 @@
fileFormatVersion: 2
guid: 75abe44480508fa449e887a1b264a2ef
@@ -1,9 +1,16 @@
fileFormatVersion: 2 fileFormatVersion: 2
guid: c9ba6b3ff8a431c4192dc95b381c4a4c guid: c9ba6b3ff8a431c4192dc95b381c4a4c
AssetOrigin:
serializedVersion: 1
productId: 287164
packageName: Optimized Ropes And Cables Tool
packageVersion: 1.2
assetPath: Assets/GogoGaga/OptimizedRopesAndCables/Example/Scenes/ExampleScene/ReflectionProbe-0.exr
uploadId: 683666
TextureImporter: TextureImporter:
internalIDToNameTable: [] internalIDToNameTable: []
externalObjects: {} externalObjects: {}
serializedVersion: 12 serializedVersion: 13
mipmaps: mipmaps:
mipMapMode: 0 mipMapMode: 0
enableMipMap: 1 enableMipMap: 1
@@ -67,7 +74,7 @@ TextureImporter:
swizzle: 50462976 swizzle: 50462976
cookieLightType: 0 cookieLightType: 0
platformSettings: platformSettings:
- serializedVersion: 3 - serializedVersion: 4
buildTarget: DefaultTexturePlatform buildTarget: DefaultTexturePlatform
maxTextureSize: 2048 maxTextureSize: 2048
resizeAlgorithm: 0 resizeAlgorithm: 0
@@ -77,9 +84,10 @@ TextureImporter:
crunchedCompression: 0 crunchedCompression: 0
allowsAlphaSplitting: 0 allowsAlphaSplitting: 0
overridden: 0 overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0 androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0 forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3 - serializedVersion: 4
buildTarget: Standalone buildTarget: Standalone
maxTextureSize: 2048 maxTextureSize: 2048
resizeAlgorithm: 0 resizeAlgorithm: 0
@@ -89,9 +97,10 @@ TextureImporter:
crunchedCompression: 0 crunchedCompression: 0
allowsAlphaSplitting: 0 allowsAlphaSplitting: 0
overridden: 0 overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0 androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0 forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3 - serializedVersion: 4
buildTarget: Server buildTarget: Server
maxTextureSize: 2048 maxTextureSize: 2048
resizeAlgorithm: 0 resizeAlgorithm: 0
@@ -101,9 +110,10 @@ TextureImporter:
crunchedCompression: 0 crunchedCompression: 0
allowsAlphaSplitting: 0 allowsAlphaSplitting: 0
overridden: 0 overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0 androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0 forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3 - serializedVersion: 4
buildTarget: WebGL buildTarget: WebGL
maxTextureSize: 2048 maxTextureSize: 2048
resizeAlgorithm: 0 resizeAlgorithm: 0
@@ -113,12 +123,27 @@ TextureImporter:
crunchedCompression: 0 crunchedCompression: 0
allowsAlphaSplitting: 0 allowsAlphaSplitting: 0
overridden: 0 overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 4
buildTarget: Android
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 100
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0 androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0 forceMaximumCompressionQuality_BC6H_BC7: 0
spriteSheet: spriteSheet:
serializedVersion: 2 serializedVersion: 2
sprites: [] sprites: []
outline: [] outline: []
customData:
physicsShape: [] physicsShape: []
bones: [] bones: []
spriteID: spriteID:
@@ -128,16 +153,11 @@ TextureImporter:
edges: [] edges: []
weights: [] weights: []
secondaryTextures: [] secondaryTextures: []
spriteCustomMetadata:
entries: []
nameFileIdTable: {} nameFileIdTable: {}
mipmapLimitGroupName: mipmapLimitGroupName:
pSDRemoveMatte: 0 pSDRemoveMatte: 0
userData: userData:
assetBundleName: assetBundleName:
assetBundleVariant: assetBundleVariant:
AssetOrigin:
serializedVersion: 1
productId: 287164
packageName: Optimized Ropes And Cables Tool
packageVersion: 1.2
assetPath: Assets/GogoGaga/OptimizedRopesAndCables/Example/Scenes/ExampleScene/ReflectionProbe-0.exr
uploadId: 683666
-65
View File
@@ -1,65 +0,0 @@
using GogoGaga.OptimizedRopesAndCables;
using UnityEngine;
using UnityEngine.XR.Interaction.Toolkit.Interactables;
public class MaterialRopeDetachAction : MonoBehaviour
{
[SerializeField]
Vector3 InitialCords;
[SerializeField]
Quaternion InitialRotation;
//Rope Rope;
bool resetAsked = false;
XRGrabInteractable grabComponent;
// Start is called once before the first execution of Update after the MonoBehaviour is created
void Start()
{
grabComponent = gameObject.GetComponent<XRGrabInteractable>();
//InitialCords = transform.localPosition;
//InitialRotation = gameObject.transform.rotation;
//Rope = gameObject.GetComponentInChildren<Rope>();
//InvokeRepeating("DebugSender", 0f, 1f);
}
// Update is called once per frame
void LateUpdate()
{
//Debug.Log(grabComponent.interactorsSelecting);
if (resetAsked)
{
Invoke("InvokedReset", 0.5f);
resetAsked = false;
}
}
void DebugSender()
{
Debug.Log("Ôóíêöèÿ âûçâàíà â: " + Time.time + "\n" + grabComponent.interactorsSelecting.Count);
}
void OnDestroy()
{
// Îñòàíîâèòü âûçîâû ïðè óíè÷òîæåíèè îáúåêòà
CancelInvoke("DebugSender");
}
public void reset()
{
//transform.localPosition = InitialCords;
//transform.rotation = InitialRotation;
//Rope.RecalculateRope();
// gameObject.GetComponent<XRGrabInteractable>().interactionManager.
//Invoke("InvokedReset", 0.1f);
resetAsked = true;
}
private void InvokedReset() {
transform.localPosition = InitialCords;
transform.rotation = InitialRotation;
}
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -1,5 +1,5 @@
fileFormatVersion: 2 fileFormatVersion: 2
guid: e33ff3cb60a23014c9d3aacc889cf875 guid: 484a2f6b5ff47524991712d71bf8cf8e
folderAsset: yes folderAsset: yes
DefaultImporter: DefaultImporter:
externalObjects: {} externalObjects: {}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
-16
View File
@@ -1,16 +0,0 @@
using UnityEngine;
public class NewMonoBehaviourScript : MonoBehaviour
{
// Start is called once before the first execution of Update after the MonoBehaviour is created
void Start()
{
}
// Update is called once per frame
void Update()
{
}
}
-2
View File
@@ -1,2 +0,0 @@
fileFormatVersion: 2
guid: 8c97a2e51cabf9f4da2cdb18e502ec00
File diff suppressed because it is too large. Load diff
@@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 302c6a013fc4fa54589b421bc05e1313
PrefabImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
+61
View File
@@ -0,0 +1,61 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1 &5110496278330240476
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 1730820333764801041}
- component: {fileID: 2674595972798899402}
- component: {fileID: 8854059141330627992}
m_Layer: 0
m_Name: PICODebugger
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &1730820333764801041
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 5110496278330240476}
serializedVersion: 2
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 1.07, z: 3.09}
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 &2674595972798899402
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 5110496278330240476}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 16f20e8e0453b4ff8a0517178b2117ea, type: 3}
m_Name:
m_EditorClassIdentifier:
config: {fileID: 0}
uiController: {fileID: 0}
--- !u!114 &8854059141330627992
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 5110496278330240476}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: d3a4e4bf576cc4998a8d2b5a8b5a3399, type: 3}
m_Name:
m_EditorClassIdentifier:
@@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 6eceb9469d5294c43a6c9a2c4b88a1a2
PrefabImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
+1 -1
View File
@@ -13,7 +13,7 @@ MonoBehaviour:
m_Name: PXR_ProjectSetting m_Name: PXR_ProjectSetting
m_EditorClassIdentifier: m_EditorClassIdentifier:
useContentProtect: 0 useContentProtect: 0
handTracking: 1 handTracking: 0
adaptiveHand: 0 adaptiveHand: 0
highFrequencyHand: 0 highFrequencyHand: 0
openMRC: 1 openMRC: 1
+1 -1
View File
@@ -1 +1 @@
{"general":{"region":"cn"},"account":{"access_token":""},"package":{"package_name":"com.unity.skb.smd","package_version_code":1,"package_version_name":"0.1"}} {"general":{"region":"cn"},"account":{"access_token":"43bba8b3e776ee8cb47b52ec0e0fe12d"},"package":{"package_name":"com.unity.skb.smd","package_version_code":1,"package_version_name":"0.1"}}
@@ -1,4 +0,0 @@
{
"displayName": "HandVisualizer",
"description": "Basic sample showing how visualize hands."
}
@@ -1,2 +0,0 @@
fileFormatVersion: 2
guid: 6e1c395ff62a3a14dbeb293298bb46bf
+8
View File
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 129fd5703c5d3e2439ee8ffa71f2c7bc
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
@@ -1,5 +1,5 @@
fileFormatVersion: 2 fileFormatVersion: 2
guid: e133da2a224f97a4faab1b065cdc4117 guid: fdf7b5556803e684e88eaa097d352b9b
folderAsset: yes folderAsset: yes
DefaultImporter: DefaultImporter:
externalObjects: {} externalObjects: {}
@@ -38,7 +38,6 @@ RenderSettings:
m_ReflectionIntensity: 1 m_ReflectionIntensity: 1
m_CustomReflection: {fileID: 0} m_CustomReflection: {fileID: 0}
m_Sun: {fileID: 0} m_Sun: {fileID: 0}
m_IndirectSpecularColor: {r: 0.18028378, g: 0.22571412, b: 0.30692285, a: 1}
m_UseRadianceAmbientProbe: 0 m_UseRadianceAmbientProbe: 0
--- !u!157 &3 --- !u!157 &3
LightmapSettings: LightmapSettings:
@@ -97,7 +96,7 @@ LightmapSettings:
m_ExportTrainingData: 0 m_ExportTrainingData: 0
m_TrainingDataDestination: TrainingData m_TrainingDataDestination: TrainingData
m_LightProbeSampleCountMultiplier: 4 m_LightProbeSampleCountMultiplier: 4
m_LightingDataAsset: {fileID: 0} m_LightingDataAsset: {fileID: 20201, guid: 0000000000000000f000000000000000, type: 0}
m_LightingSettings: {fileID: 2722834} m_LightingSettings: {fileID: 2722834}
--- !u!196 &4 --- !u!196 &4
NavMeshSettings: NavMeshSettings:
@@ -169,7 +168,7 @@ LightingSettings:
m_PVREnvironmentReferencePointCount: 2048 m_PVREnvironmentReferencePointCount: 2048
m_LightProbeSampleCountMultiplier: 4 m_LightProbeSampleCountMultiplier: 4
m_PVRBounces: 2 m_PVRBounces: 2
m_PVRMinBounces: 1 m_PVRMinBounces: 2
m_PVREnvironmentMIS: 1 m_PVREnvironmentMIS: 1
m_PVRFilteringMode: 1 m_PVRFilteringMode: 1
m_PVRDenoiserTypeDirect: 1 m_PVRDenoiserTypeDirect: 1
@@ -185,16 +184,6 @@ LightingSettings:
m_PVRFilteringAtrousPositionSigmaIndirect: 2 m_PVRFilteringAtrousPositionSigmaIndirect: 2
m_PVRFilteringAtrousPositionSigmaAO: 1 m_PVRFilteringAtrousPositionSigmaAO: 1
m_PVRTiledBaking: 0 m_PVRTiledBaking: 0
--- !u!1 &92641028 stripped
GameObject:
m_CorrespondingSourceObject: {fileID: 3133494152545806682, guid: 3f7511fbc40ae7a4b89c3298a3de199d, type: 3}
m_PrefabInstance: {fileID: 402783663}
m_PrefabAsset: {fileID: 0}
--- !u!4 &92641029 stripped
Transform:
m_CorrespondingSourceObject: {fileID: 2321527512367231968, guid: 3f7511fbc40ae7a4b89c3298a3de199d, type: 3}
m_PrefabInstance: {fileID: 402783663}
m_PrefabAsset: {fileID: 0}
--- !u!1 &215855080 --- !u!1 &215855080
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@@ -237,7 +226,7 @@ MonoBehaviour:
m_PrefabInstance: {fileID: 0} m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0} m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 215855080} m_GameObject: {fileID: 215855080}
m_Enabled: 1 m_Enabled: 0
m_EditorHideFlags: 0 m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 5a2a9c34df4095f47b9ca8f975175f5b, type: 3} m_Script: {fileID: 11500000, guid: 5a2a9c34df4095f47b9ca8f975175f5b, type: 3}
m_Name: m_Name:
@@ -313,6 +302,7 @@ MonoBehaviour:
m_EditorClassIdentifier: m_EditorClassIdentifier:
m_TrackingType: 0 m_TrackingType: 0
m_UpdateType: 0 m_UpdateType: 0
m_IgnoreTrackingState: 0
m_PositionInput: m_PositionInput:
m_UseReference: 0 m_UseReference: 0
m_Action: m_Action:
@@ -369,6 +359,34 @@ MonoBehaviour:
m_Flags: 0 m_Flags: 0
m_Flags: 0 m_Flags: 0
m_Reference: {fileID: 0} m_Reference: {fileID: 0}
m_TrackingStateInput:
m_UseReference: 0
m_Action:
m_Name: Tracking State Input
m_Type: 0
m_ExpectedControlType:
m_Id: 5a2bcbea-fd36-402d-bf3e-e299ba6113ac
m_Processors:
m_Interactions:
m_SingletonActionBindings:
- m_Name:
m_Id: 3265643c-ff9b-4c75-9db8-e53f04630227
m_Path: <XRHMD>/trackingState
m_Interactions:
m_Processors:
m_Groups:
m_Action: Tracking State Input
m_Flags: 0
- m_Name:
m_Id: ec57cceb-7fd5-4550-b3ca-78dd4ae9dfa4
m_Path: <HandheldARInputDevice>/trackingState
m_Interactions:
m_Processors:
m_Groups:
m_Action: Tracking State Input
m_Flags: 0
m_Flags: 0
m_Reference: {fileID: 0}
m_PositionAction: m_PositionAction:
m_Name: m_Name:
m_Type: 0 m_Type: 0
@@ -387,64 +405,200 @@ MonoBehaviour:
m_Interactions: m_Interactions:
m_SingletonActionBindings: [] m_SingletonActionBindings: []
m_Flags: 0 m_Flags: 0
m_HasMigratedActions: 1 --- !u!1 &447680416
--- !u!1001 &402783663 GameObject:
PrefabInstance:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 447680417}
- component: {fileID: 447680420}
- component: {fileID: 447680419}
- component: {fileID: 447680418}
m_Layer: 0
m_Name: LeftRuntimeMesh
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 0
--- !u!4 &447680417
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 447680416}
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_RootOrder: 1
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!65 &447680418
BoxCollider:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 447680416}
m_Material: {fileID: 0}
m_IsTrigger: 0
m_Enabled: 1
serializedVersion: 2 serializedVersion: 2
m_Modification: m_Size: {x: 2, y: 2, z: 2}
m_TransformParent: {fileID: 944581975} m_Center: {x: 0, y: 0, z: 0}
m_Modifications: --- !u!23 &447680419
- target: {fileID: 2321527512367231968, guid: 3f7511fbc40ae7a4b89c3298a3de199d, type: 3} MeshRenderer:
propertyPath: m_RootOrder m_ObjectHideFlags: 0
value: 3 m_CorrespondingSourceObject: {fileID: 0}
objectReference: {fileID: 0} m_PrefabInstance: {fileID: 0}
- target: {fileID: 2321527512367231968, guid: 3f7511fbc40ae7a4b89c3298a3de199d, type: 3} m_PrefabAsset: {fileID: 0}
propertyPath: m_LocalPosition.x m_GameObject: {fileID: 447680416}
value: 0 m_Enabled: 1
objectReference: {fileID: 0} m_CastShadows: 1
- target: {fileID: 2321527512367231968, guid: 3f7511fbc40ae7a4b89c3298a3de199d, type: 3} m_ReceiveShadows: 1
propertyPath: m_LocalPosition.y m_DynamicOccludee: 1
value: 0 m_StaticShadowCaster: 0
objectReference: {fileID: 0} m_MotionVectors: 1
- target: {fileID: 2321527512367231968, guid: 3f7511fbc40ae7a4b89c3298a3de199d, type: 3} m_LightProbeUsage: 1
propertyPath: m_LocalPosition.z m_ReflectionProbeUsage: 1
value: 0 m_RayTracingMode: 2
objectReference: {fileID: 0} m_RayTraceProcedural: 0
- target: {fileID: 2321527512367231968, guid: 3f7511fbc40ae7a4b89c3298a3de199d, type: 3} m_RenderingLayerMask: 1
propertyPath: m_LocalRotation.w m_RendererPriority: 0
value: 1 m_Materials:
objectReference: {fileID: 0} - {fileID: 10303, guid: 0000000000000000f000000000000000, type: 0}
- target: {fileID: 2321527512367231968, guid: 3f7511fbc40ae7a4b89c3298a3de199d, type: 3} m_StaticBatchInfo:
propertyPath: m_LocalRotation.x firstSubMesh: 0
value: -0 subMeshCount: 0
objectReference: {fileID: 0} m_StaticBatchRoot: {fileID: 0}
- target: {fileID: 2321527512367231968, guid: 3f7511fbc40ae7a4b89c3298a3de199d, type: 3} m_ProbeAnchor: {fileID: 0}
propertyPath: m_LocalRotation.y m_LightProbeVolumeOverride: {fileID: 0}
value: -0 m_ScaleInLightmap: 1
objectReference: {fileID: 0} m_ReceiveGI: 1
- target: {fileID: 2321527512367231968, guid: 3f7511fbc40ae7a4b89c3298a3de199d, type: 3} m_PreserveUVs: 0
propertyPath: m_LocalRotation.z m_IgnoreNormalsForChartDetection: 0
value: -0 m_ImportantGI: 0
objectReference: {fileID: 0} m_StitchLightmapSeams: 1
- target: {fileID: 2321527512367231968, guid: 3f7511fbc40ae7a4b89c3298a3de199d, type: 3} m_SelectedEditorRenderState: 3
propertyPath: m_LocalEulerAnglesHint.x m_MinimumChartSize: 4
value: 0 m_AutoUVMaxDistance: 0.5
objectReference: {fileID: 0} m_AutoUVMaxAngle: 89
- target: {fileID: 2321527512367231968, guid: 3f7511fbc40ae7a4b89c3298a3de199d, type: 3} m_LightmapParameters: {fileID: 0}
propertyPath: m_LocalEulerAnglesHint.y m_SortingLayerID: 0
value: 0 m_SortingLayer: 0
objectReference: {fileID: 0} m_SortingOrder: 0
- target: {fileID: 2321527512367231968, guid: 3f7511fbc40ae7a4b89c3298a3de199d, type: 3} m_AdditionalVertexStreams: {fileID: 0}
propertyPath: m_LocalEulerAnglesHint.z --- !u!33 &447680420
value: 0 MeshFilter:
objectReference: {fileID: 0} m_ObjectHideFlags: 0
- target: {fileID: 3133494152545806682, guid: 3f7511fbc40ae7a4b89c3298a3de199d, type: 3} m_CorrespondingSourceObject: {fileID: 0}
propertyPath: m_Name m_PrefabInstance: {fileID: 0}
value: Right Hand Tracking m_PrefabAsset: {fileID: 0}
objectReference: {fileID: 0} m_GameObject: {fileID: 447680416}
m_RemovedComponents: [] m_Mesh: {fileID: 0}
m_SourcePrefab: {fileID: 100100000, guid: 3f7511fbc40ae7a4b89c3298a3de199d, type: 3} --- !u!1 &713583834
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 713583835}
- component: {fileID: 713583838}
- component: {fileID: 713583837}
- component: {fileID: 713583836}
m_Layer: 0
m_Name: RightRuntimeMesh
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 0
--- !u!4 &713583835
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 713583834}
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_RootOrder: 2
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!65 &713583836
BoxCollider:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 713583834}
m_Material: {fileID: 0}
m_IsTrigger: 0
m_Enabled: 1
serializedVersion: 2
m_Size: {x: 2, y: 2, z: 2}
m_Center: {x: 0, y: 0, z: 0}
--- !u!23 &713583837
MeshRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 713583834}
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_RenderingLayerMask: 1
m_RendererPriority: 0
m_Materials:
- {fileID: 10303, guid: 0000000000000000f000000000000000, type: 0}
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 &713583838
MeshFilter:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 713583834}
m_Mesh: {fileID: 0}
--- !u!1 &935940900 --- !u!1 &935940900
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@@ -491,8 +645,10 @@ MonoBehaviour:
m_Name: m_Name:
m_EditorClassIdentifier: m_EditorClassIdentifier:
m_UseOptimizedControls: 0 m_UseOptimizedControls: 0
m_LeftHandMesh: {fileID: 1048441851} m_MetaQuestLeftHandMesh: {fileID: 919132149155446097, guid: bf7151579c38e2a44be94ba8773876c1, type: 3}
m_RightHandMesh: {fileID: 92641028} m_MetaQuestRightHandMesh: {fileID: 919132149155446097, guid: 56186ccf27ad7864681108ed88349071, type: 3}
m_AndroidXRLeftHandMesh: {fileID: 919132149155446097, guid: 7eff605df5fc69141bad762b74fb9228, type: 3}
m_AndroidXRRightHandMesh: {fileID: 919132149155446097, guid: 49090752ee8bba242ad64a291905ee10, type: 3}
m_HandMeshMaterial: {fileID: 2100000, guid: 613690cd962241049a0ec289a6ff835e, type: 2} m_HandMeshMaterial: {fileID: 2100000, guid: 613690cd962241049a0ec289a6ff835e, type: 2}
m_DrawMeshes: 1 m_DrawMeshes: 1
m_DebugDrawPrefab: {fileID: 6507399986997092475, guid: 254b742d65a15d14b9df756ae77de868, type: 3} m_DebugDrawPrefab: {fileID: 6507399986997092475, guid: 254b742d65a15d14b9df756ae77de868, type: 3}
@@ -544,78 +700,9 @@ Transform:
m_Children: m_Children:
- {fileID: 215855081} - {fileID: 215855081}
- {fileID: 935940901} - {fileID: 935940901}
- {fileID: 1048441850}
- {fileID: 92641029}
m_Father: {fileID: 1085439597} m_Father: {fileID: 1085439597}
m_RootOrder: 0 m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1001 &1048441849
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
m_TransformParent: {fileID: 944581975}
m_Modifications:
- target: {fileID: 141466980049140221, guid: b3ed8a0a703ebd34a9e44ed3d9f1fcf6, type: 3}
propertyPath: m_RootOrder
value: 2
objectReference: {fileID: 0}
- target: {fileID: 141466980049140221, guid: b3ed8a0a703ebd34a9e44ed3d9f1fcf6, type: 3}
propertyPath: m_LocalPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 141466980049140221, guid: b3ed8a0a703ebd34a9e44ed3d9f1fcf6, type: 3}
propertyPath: m_LocalPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 141466980049140221, guid: b3ed8a0a703ebd34a9e44ed3d9f1fcf6, type: 3}
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 141466980049140221, guid: b3ed8a0a703ebd34a9e44ed3d9f1fcf6, type: 3}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 141466980049140221, guid: b3ed8a0a703ebd34a9e44ed3d9f1fcf6, type: 3}
propertyPath: m_LocalRotation.x
value: -0
objectReference: {fileID: 0}
- target: {fileID: 141466980049140221, guid: b3ed8a0a703ebd34a9e44ed3d9f1fcf6, type: 3}
propertyPath: m_LocalRotation.y
value: -0
objectReference: {fileID: 0}
- target: {fileID: 141466980049140221, guid: b3ed8a0a703ebd34a9e44ed3d9f1fcf6, type: 3}
propertyPath: m_LocalRotation.z
value: -0
objectReference: {fileID: 0}
- target: {fileID: 141466980049140221, guid: b3ed8a0a703ebd34a9e44ed3d9f1fcf6, type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 141466980049140221, guid: b3ed8a0a703ebd34a9e44ed3d9f1fcf6, type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 141466980049140221, guid: b3ed8a0a703ebd34a9e44ed3d9f1fcf6, type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 773853689519989575, guid: b3ed8a0a703ebd34a9e44ed3d9f1fcf6, type: 3}
propertyPath: m_Name
value: Left Hand Tracking
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: b3ed8a0a703ebd34a9e44ed3d9f1fcf6, type: 3}
--- !u!4 &1048441850 stripped
Transform:
m_CorrespondingSourceObject: {fileID: 141466980049140221, guid: b3ed8a0a703ebd34a9e44ed3d9f1fcf6, type: 3}
m_PrefabInstance: {fileID: 1048441849}
m_PrefabAsset: {fileID: 0}
--- !u!1 &1048441851 stripped
GameObject:
m_CorrespondingSourceObject: {fileID: 773853689519989575, guid: b3ed8a0a703ebd34a9e44ed3d9f1fcf6, type: 3}
m_PrefabInstance: {fileID: 1048441849}
m_PrefabAsset: {fileID: 0}
--- !u!1 &1085439595 --- !u!1 &1085439595
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@@ -664,7 +751,7 @@ Transform:
m_Children: m_Children:
- {fileID: 944581975} - {fileID: 944581975}
m_Father: {fileID: 0} m_Father: {fileID: 0}
m_RootOrder: 1 m_RootOrder: 3
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &1517268251 --- !u!1 &1517268251
GameObject: GameObject:
@@ -12,7 +12,7 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: d0353a89b1f911e48b9e16bdc9f2e058, type: 3} m_Script: {fileID: 11500000, guid: d0353a89b1f911e48b9e16bdc9f2e058, type: 3}
m_Name: m_Name:
m_EditorClassIdentifier: m_EditorClassIdentifier:
version: 5 version: 10
--- !u!21 &2100000 --- !u!21 &2100000
Material: Material:
serializedVersion: 8 serializedVersion: 8
@@ -21,16 +21,21 @@ Material:
m_PrefabInstance: {fileID: 0} m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0} m_PrefabAsset: {fileID: 0}
m_Name: Blue m_Name: Blue
m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0} m_Shader: {fileID: 4800000, guid: 933532a4fcc9baf4fa0491de14d08ed7, type: 3}
m_Parent: {fileID: 0}
m_ModifiedSerializedProperties: 0
m_ValidKeywords: m_ValidKeywords:
- _EMISSION - _EMISSION
m_InvalidKeywords: [] m_InvalidKeywords: []
m_LightmapFlags: 0 m_LightmapFlags: 6
m_EnableInstancingVariants: 0 m_EnableInstancingVariants: 0
m_DoubleSidedGI: 0 m_DoubleSidedGI: 0
m_CustomRenderQueue: -1 m_CustomRenderQueue: -1
stringTagMap: {} stringTagMap:
disabledShaderPasses: [] RenderType: Opaque
disabledShaderPasses:
- MOTIONVECTORS
m_LockedProperties:
m_SavedProperties: m_SavedProperties:
serializedVersion: 3 serializedVersion: 3
m_TexEnvs: m_TexEnvs:
@@ -97,8 +102,11 @@ Material:
m_Ints: [] m_Ints: []
m_Floats: m_Floats:
- PixelSnap: 0 - PixelSnap: 0
- _AddPrecomputedVelocity: 0
- _AlphaClip: 0 - _AlphaClip: 0
- _AlphaToMask: 0
- _Blend: 0 - _Blend: 0
- _BlendModePreserveSpecular: 1
- _BlendOp: 0 - _BlendOp: 0
- _BumpScale: 1 - _BumpScale: 1
- _CameraFadingEnabled: 0 - _CameraFadingEnabled: 0
@@ -116,6 +124,7 @@ Material:
- _DistortionStrength: 1 - _DistortionStrength: 1
- _DistortionStrengthScaled: 0 - _DistortionStrengthScaled: 0
- _DstBlend: 0 - _DstBlend: 0
- _DstBlendAlpha: 0
- _EmissionEnabled: 0 - _EmissionEnabled: 0
- _EnableExternalAlpha: 0 - _EnableExternalAlpha: 0
- _EnvironmentReflections: 1 - _EnvironmentReflections: 1
@@ -137,6 +146,7 @@ Material:
- _SoftParticlesNearFadeDistance: 0 - _SoftParticlesNearFadeDistance: 0
- _SpecularHighlights: 1 - _SpecularHighlights: 1
- _SrcBlend: 1 - _SrcBlend: 1
- _SrcBlendAlpha: 1
- _Stencil: 0 - _Stencil: 0
- _StencilComp: 8 - _StencilComp: 8
- _StencilOp: 0 - _StencilOp: 0
@@ -146,6 +156,7 @@ Material:
- _UVSec: 0 - _UVSec: 0
- _UseUIAlphaClip: 0 - _UseUIAlphaClip: 0
- _WorkflowMode: 1 - _WorkflowMode: 1
- _XRMotionVectorsPass: 1
- _ZWrite: 1 - _ZWrite: 1
m_Colors: m_Colors:
- _BaseColor: {r: 0, g: 0, b: 1, a: 1} - _BaseColor: {r: 0, g: 0, b: 1, a: 1}
@@ -157,3 +168,4 @@ Material:
- _SoftParticleFadeParams: {r: 0, g: 0, b: 0, a: 0} - _SoftParticleFadeParams: {r: 0, g: 0, b: 0, a: 0}
- _SpecColor: {r: 0.19999996, g: 0.19999996, b: 0.19999996, a: 1} - _SpecColor: {r: 0.19999996, g: 0.19999996, b: 0.19999996, a: 1}
m_BuildTextureStacks: [] m_BuildTextureStacks: []
m_AllowLocking: 1
@@ -8,16 +8,21 @@ Material:
m_PrefabInstance: {fileID: 0} m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0} m_PrefabAsset: {fileID: 0}
m_Name: Green m_Name: Green
m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0} m_Shader: {fileID: 4800000, guid: 933532a4fcc9baf4fa0491de14d08ed7, type: 3}
m_Parent: {fileID: 0}
m_ModifiedSerializedProperties: 0
m_ValidKeywords: m_ValidKeywords:
- _EMISSION - _EMISSION
m_InvalidKeywords: [] m_InvalidKeywords: []
m_LightmapFlags: 0 m_LightmapFlags: 6
m_EnableInstancingVariants: 0 m_EnableInstancingVariants: 0
m_DoubleSidedGI: 0 m_DoubleSidedGI: 0
m_CustomRenderQueue: -1 m_CustomRenderQueue: -1
stringTagMap: {} stringTagMap:
disabledShaderPasses: [] RenderType: Opaque
disabledShaderPasses:
- MOTIONVECTORS
m_LockedProperties:
m_SavedProperties: m_SavedProperties:
serializedVersion: 3 serializedVersion: 3
m_TexEnvs: m_TexEnvs:
@@ -84,8 +89,11 @@ Material:
m_Ints: [] m_Ints: []
m_Floats: m_Floats:
- PixelSnap: 0 - PixelSnap: 0
- _AddPrecomputedVelocity: 0
- _AlphaClip: 0 - _AlphaClip: 0
- _AlphaToMask: 0
- _Blend: 0 - _Blend: 0
- _BlendModePreserveSpecular: 1
- _BlendOp: 0 - _BlendOp: 0
- _BumpScale: 1 - _BumpScale: 1
- _CameraFadingEnabled: 0 - _CameraFadingEnabled: 0
@@ -103,6 +111,7 @@ Material:
- _DistortionStrength: 1 - _DistortionStrength: 1
- _DistortionStrengthScaled: 0 - _DistortionStrengthScaled: 0
- _DstBlend: 0 - _DstBlend: 0
- _DstBlendAlpha: 0
- _EmissionEnabled: 0 - _EmissionEnabled: 0
- _EnableExternalAlpha: 0 - _EnableExternalAlpha: 0
- _EnvironmentReflections: 1 - _EnvironmentReflections: 1
@@ -124,6 +133,7 @@ Material:
- _SoftParticlesNearFadeDistance: 0 - _SoftParticlesNearFadeDistance: 0
- _SpecularHighlights: 1 - _SpecularHighlights: 1
- _SrcBlend: 1 - _SrcBlend: 1
- _SrcBlendAlpha: 1
- _Stencil: 0 - _Stencil: 0
- _StencilComp: 8 - _StencilComp: 8
- _StencilOp: 0 - _StencilOp: 0
@@ -133,6 +143,7 @@ Material:
- _UVSec: 0 - _UVSec: 0
- _UseUIAlphaClip: 0 - _UseUIAlphaClip: 0
- _WorkflowMode: 1 - _WorkflowMode: 1
- _XRMotionVectorsPass: 1
- _ZWrite: 1 - _ZWrite: 1
m_Colors: m_Colors:
- _BaseColor: {r: 0, g: 1, b: 0, a: 1} - _BaseColor: {r: 0, g: 1, b: 0, a: 1}
@@ -144,6 +155,7 @@ Material:
- _SoftParticleFadeParams: {r: 0, g: 0, b: 0, a: 0} - _SoftParticleFadeParams: {r: 0, g: 0, b: 0, a: 0}
- _SpecColor: {r: 0.19999996, g: 0.19999996, b: 0.19999996, a: 1} - _SpecColor: {r: 0.19999996, g: 0.19999996, b: 0.19999996, a: 1}
m_BuildTextureStacks: [] m_BuildTextureStacks: []
m_AllowLocking: 1
--- !u!114 &9064977523446290879 --- !u!114 &9064977523446290879
MonoBehaviour: MonoBehaviour:
m_ObjectHideFlags: 11 m_ObjectHideFlags: 11
@@ -156,4 +168,4 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: d0353a89b1f911e48b9e16bdc9f2e058, type: 3} m_Script: {fileID: 11500000, guid: d0353a89b1f911e48b9e16bdc9f2e058, type: 3}
m_Name: m_Name:
m_EditorClassIdentifier: m_EditorClassIdentifier:
version: 5 version: 10
@@ -12,7 +12,7 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: d0353a89b1f911e48b9e16bdc9f2e058, type: 3} m_Script: {fileID: 11500000, guid: d0353a89b1f911e48b9e16bdc9f2e058, type: 3}
m_Name: m_Name:
m_EditorClassIdentifier: m_EditorClassIdentifier:
version: 5 version: 10
--- !u!21 &2100000 --- !u!21 &2100000
Material: Material:
serializedVersion: 8 serializedVersion: 8
@@ -21,13 +21,15 @@ Material:
m_PrefabInstance: {fileID: 0} m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0} m_PrefabAsset: {fileID: 0}
m_Name: HandsDefaultMaterial m_Name: HandsDefaultMaterial
m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0} m_Shader: {fileID: 4800000, guid: 933532a4fcc9baf4fa0491de14d08ed7, type: 3}
m_Parent: {fileID: 0}
m_ModifiedSerializedProperties: 0
m_ValidKeywords: m_ValidKeywords:
- _ALPHABLEND_ON
- _EMISSION - _EMISSION
m_InvalidKeywords:
- _SURFACE_TYPE_TRANSPARENT - _SURFACE_TYPE_TRANSPARENT
m_LightmapFlags: 0 m_InvalidKeywords:
- _ALPHABLEND_ON
m_LightmapFlags: 6
m_EnableInstancingVariants: 0 m_EnableInstancingVariants: 0
m_DoubleSidedGI: 0 m_DoubleSidedGI: 0
m_CustomRenderQueue: 3000 m_CustomRenderQueue: 3000
@@ -36,6 +38,8 @@ Material:
disabledShaderPasses: disabledShaderPasses:
- DepthOnly - DepthOnly
- SHADOWCASTER - SHADOWCASTER
- MOTIONVECTORS
m_LockedProperties:
m_SavedProperties: m_SavedProperties:
serializedVersion: 3 serializedVersion: 3
m_TexEnvs: m_TexEnvs:
@@ -102,8 +106,11 @@ Material:
m_Ints: [] m_Ints: []
m_Floats: m_Floats:
- PixelSnap: 0 - PixelSnap: 0
- _AddPrecomputedVelocity: 0
- _AlphaClip: 0 - _AlphaClip: 0
- _AlphaToMask: 0
- _Blend: 0 - _Blend: 0
- _BlendModePreserveSpecular: 0
- _BlendOp: 0 - _BlendOp: 0
- _BumpScale: 1 - _BumpScale: 1
- _CameraFadingEnabled: 0 - _CameraFadingEnabled: 0
@@ -121,6 +128,7 @@ Material:
- _DistortionStrength: 1 - _DistortionStrength: 1
- _DistortionStrengthScaled: 0 - _DistortionStrengthScaled: 0
- _DstBlend: 10 - _DstBlend: 10
- _DstBlendAlpha: 10
- _EmissionEnabled: 0 - _EmissionEnabled: 0
- _EnableExternalAlpha: 0 - _EnableExternalAlpha: 0
- _EnvironmentReflections: 1 - _EnvironmentReflections: 1
@@ -142,6 +150,7 @@ Material:
- _SoftParticlesNearFadeDistance: 0 - _SoftParticlesNearFadeDistance: 0
- _SpecularHighlights: 1 - _SpecularHighlights: 1
- _SrcBlend: 5 - _SrcBlend: 5
- _SrcBlendAlpha: 1
- _Stencil: 0 - _Stencil: 0
- _StencilComp: 8 - _StencilComp: 8
- _StencilOp: 0 - _StencilOp: 0
@@ -151,6 +160,7 @@ Material:
- _UVSec: 0 - _UVSec: 0
- _UseUIAlphaClip: 0 - _UseUIAlphaClip: 0
- _WorkflowMode: 1 - _WorkflowMode: 1
- _XRMotionVectorsPass: 1
- _ZWrite: 0 - _ZWrite: 0
m_Colors: m_Colors:
- _BaseColor: {r: 0.66518503, g: 0.66518503, b: 0.66518503, a: 0.64705884} - _BaseColor: {r: 0.66518503, g: 0.66518503, b: 0.66518503, a: 0.64705884}
@@ -162,3 +172,4 @@ Material:
- _SoftParticleFadeParams: {r: 0, g: 0, b: 0, a: 0} - _SoftParticleFadeParams: {r: 0, g: 0, b: 0, a: 0}
- _SpecColor: {r: 0.19999996, g: 0.19999996, b: 0.19999996, a: 1} - _SpecColor: {r: 0.19999996, g: 0.19999996, b: 0.19999996, a: 1}
m_BuildTextureStacks: [] m_BuildTextureStacks: []
m_AllowLocking: 1
@@ -0,0 +1,58 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &11400000
MonoBehaviour:
m_ObjectHideFlags: 0
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: 6772a216ed6f29c42abef904c7d6940d, type: 3}
m_Name: MaterialPipelineHandler
m_EditorClassIdentifier:
m_ShaderContainers:
- material: {fileID: 2100000, guid: 7b26add94f09dc44fb811013f007a3aa, type: 2}
useSRPShaderName: 1
scriptableRenderPipelineShaderName: Universal Render Pipeline/Lit
scriptableRenderPipelineShader: {fileID: 0}
useBuiltinShaderName: 1
builtInPipelineShaderName: Standard
builtInPipelineShader: {fileID: 0}
- material: {fileID: 2100000, guid: 727f87098255ad04987a60f5f08390bc, type: 2}
useSRPShaderName: 1
scriptableRenderPipelineShaderName: Universal Render Pipeline/Lit
scriptableRenderPipelineShader: {fileID: 0}
useBuiltinShaderName: 1
builtInPipelineShaderName: Standard
builtInPipelineShader: {fileID: 0}
- material: {fileID: 2100000, guid: 613690cd962241049a0ec289a6ff835e, type: 2}
useSRPShaderName: 1
scriptableRenderPipelineShaderName: Universal Render Pipeline/Lit
scriptableRenderPipelineShader: {fileID: 0}
useBuiltinShaderName: 1
builtInPipelineShaderName: Standard
builtInPipelineShader: {fileID: 0}
- material: {fileID: 2100000, guid: 55fa12dc7870f1e46b6a7f8617949a86, type: 2}
useSRPShaderName: 1
scriptableRenderPipelineShaderName: Universal Render Pipeline/Lit
scriptableRenderPipelineShader: {fileID: 0}
useBuiltinShaderName: 1
builtInPipelineShaderName: Standard
builtInPipelineShader: {fileID: 0}
- material: {fileID: 2100000, guid: d149182fa7aa1dc47bd32b2a6da80ec9, type: 2}
useSRPShaderName: 1
scriptableRenderPipelineShaderName: Universal Render Pipeline/Lit
scriptableRenderPipelineShader: {fileID: 0}
useBuiltinShaderName: 1
builtInPipelineShaderName: Standard
builtInPipelineShader: {fileID: 0}
- material: {fileID: 2100000, guid: c3474c208278e814cb8d1c29aa806e81, type: 2}
useSRPShaderName: 1
scriptableRenderPipelineShaderName: Universal Render Pipeline/Lit
scriptableRenderPipelineShader: {fileID: 0}
useBuiltinShaderName: 1
builtInPipelineShaderName: Standard
builtInPipelineShader: {fileID: 0}
m_AutoRefreshShaders: 1
@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: e22d037d5d9286644b4b81a8b91b5ee5
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 11400000
userData:
assetBundleName:
assetBundleVariant:
@@ -8,16 +8,21 @@ Material:
m_PrefabInstance: {fileID: 0} m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0} m_PrefabAsset: {fileID: 0}
m_Name: Red m_Name: Red
m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0} m_Shader: {fileID: 4800000, guid: 933532a4fcc9baf4fa0491de14d08ed7, type: 3}
m_Parent: {fileID: 0}
m_ModifiedSerializedProperties: 0
m_ValidKeywords: m_ValidKeywords:
- _EMISSION - _EMISSION
m_InvalidKeywords: [] m_InvalidKeywords: []
m_LightmapFlags: 0 m_LightmapFlags: 6
m_EnableInstancingVariants: 0 m_EnableInstancingVariants: 0
m_DoubleSidedGI: 0 m_DoubleSidedGI: 0
m_CustomRenderQueue: -1 m_CustomRenderQueue: -1
stringTagMap: {} stringTagMap:
disabledShaderPasses: [] RenderType: Opaque
disabledShaderPasses:
- MOTIONVECTORS
m_LockedProperties:
m_SavedProperties: m_SavedProperties:
serializedVersion: 3 serializedVersion: 3
m_TexEnvs: m_TexEnvs:
@@ -84,8 +89,11 @@ Material:
m_Ints: [] m_Ints: []
m_Floats: m_Floats:
- PixelSnap: 0 - PixelSnap: 0
- _AddPrecomputedVelocity: 0
- _AlphaClip: 0 - _AlphaClip: 0
- _AlphaToMask: 0
- _Blend: 0 - _Blend: 0
- _BlendModePreserveSpecular: 1
- _BlendOp: 0 - _BlendOp: 0
- _BumpScale: 1 - _BumpScale: 1
- _CameraFadingEnabled: 0 - _CameraFadingEnabled: 0
@@ -103,6 +111,7 @@ Material:
- _DistortionStrength: 1 - _DistortionStrength: 1
- _DistortionStrengthScaled: 0 - _DistortionStrengthScaled: 0
- _DstBlend: 0 - _DstBlend: 0
- _DstBlendAlpha: 0
- _EmissionEnabled: 0 - _EmissionEnabled: 0
- _EnableExternalAlpha: 0 - _EnableExternalAlpha: 0
- _EnvironmentReflections: 1 - _EnvironmentReflections: 1
@@ -124,6 +133,7 @@ Material:
- _SoftParticlesNearFadeDistance: 0 - _SoftParticlesNearFadeDistance: 0
- _SpecularHighlights: 1 - _SpecularHighlights: 1
- _SrcBlend: 1 - _SrcBlend: 1
- _SrcBlendAlpha: 1
- _Stencil: 0 - _Stencil: 0
- _StencilComp: 8 - _StencilComp: 8
- _StencilOp: 0 - _StencilOp: 0
@@ -133,6 +143,7 @@ Material:
- _UVSec: 0 - _UVSec: 0
- _UseUIAlphaClip: 0 - _UseUIAlphaClip: 0
- _WorkflowMode: 1 - _WorkflowMode: 1
- _XRMotionVectorsPass: 1
- _ZWrite: 1 - _ZWrite: 1
m_Colors: m_Colors:
- _BaseColor: {r: 1, g: 0, b: 0, a: 1} - _BaseColor: {r: 1, g: 0, b: 0, a: 1}
@@ -144,6 +155,7 @@ Material:
- _SoftParticleFadeParams: {r: 0, g: 0, b: 0, a: 0} - _SoftParticleFadeParams: {r: 0, g: 0, b: 0, a: 0}
- _SpecColor: {r: 0.19999996, g: 0.19999996, b: 0.19999996, a: 1} - _SpecColor: {r: 0.19999996, g: 0.19999996, b: 0.19999996, a: 1}
m_BuildTextureStacks: [] m_BuildTextureStacks: []
m_AllowLocking: 1
--- !u!114 &2151432713694262380 --- !u!114 &2151432713694262380
MonoBehaviour: MonoBehaviour:
m_ObjectHideFlags: 11 m_ObjectHideFlags: 11
@@ -156,4 +168,4 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: d0353a89b1f911e48b9e16bdc9f2e058, type: 3} m_Script: {fileID: 11500000, guid: d0353a89b1f911e48b9e16bdc9f2e058, type: 3}
m_Name: m_Name:
m_EditorClassIdentifier: m_EditorClassIdentifier:
version: 5 version: 10
@@ -8,20 +8,20 @@ Material:
m_PrefabInstance: {fileID: 0} m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0} m_PrefabAsset: {fileID: 0}
m_Name: TransparentRed m_Name: TransparentRed
m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0} m_Shader: {fileID: 4800000, guid: 933532a4fcc9baf4fa0491de14d08ed7, type: 3}
m_Parent: {fileID: 0} m_Parent: {fileID: 0}
m_ModifiedSerializedProperties: 0 m_ModifiedSerializedProperties: 0
m_ValidKeywords: m_ValidKeywords:
- _ALPHAPREMULTIPLY_ON
- _EMISSION - _EMISSION
m_InvalidKeywords: [] m_InvalidKeywords: []
m_LightmapFlags: 0 m_LightmapFlags: 6
m_EnableInstancingVariants: 0 m_EnableInstancingVariants: 0
m_DoubleSidedGI: 0 m_DoubleSidedGI: 0
m_CustomRenderQueue: 3000 m_CustomRenderQueue: -1
stringTagMap: stringTagMap:
RenderType: Transparent RenderType: Opaque
disabledShaderPasses: [] disabledShaderPasses:
- MOTIONVECTORS
m_LockedProperties: m_LockedProperties:
m_SavedProperties: m_SavedProperties:
serializedVersion: 3 serializedVersion: 3
@@ -89,8 +89,11 @@ Material:
m_Ints: [] m_Ints: []
m_Floats: m_Floats:
- PixelSnap: 0 - PixelSnap: 0
- _AddPrecomputedVelocity: 0
- _AlphaClip: 0 - _AlphaClip: 0
- _AlphaToMask: 0
- _Blend: 0 - _Blend: 0
- _BlendModePreserveSpecular: 1
- _BlendOp: 0 - _BlendOp: 0
- _BumpScale: 1 - _BumpScale: 1
- _CameraFadingEnabled: 0 - _CameraFadingEnabled: 0
@@ -107,7 +110,8 @@ Material:
- _DistortionEnabled: 0 - _DistortionEnabled: 0
- _DistortionStrength: 1 - _DistortionStrength: 1
- _DistortionStrengthScaled: 0 - _DistortionStrengthScaled: 0
- _DstBlend: 10 - _DstBlend: 0
- _DstBlendAlpha: 0
- _EmissionEnabled: 0 - _EmissionEnabled: 0
- _EnableExternalAlpha: 0 - _EnableExternalAlpha: 0
- _EnvironmentReflections: 1 - _EnvironmentReflections: 1
@@ -129,6 +133,7 @@ Material:
- _SoftParticlesNearFadeDistance: 0 - _SoftParticlesNearFadeDistance: 0
- _SpecularHighlights: 1 - _SpecularHighlights: 1
- _SrcBlend: 1 - _SrcBlend: 1
- _SrcBlendAlpha: 1
- _Stencil: 0 - _Stencil: 0
- _StencilComp: 8 - _StencilComp: 8
- _StencilOp: 0 - _StencilOp: 0
@@ -138,9 +143,10 @@ Material:
- _UVSec: 0 - _UVSec: 0
- _UseUIAlphaClip: 0 - _UseUIAlphaClip: 0
- _WorkflowMode: 1 - _WorkflowMode: 1
- _ZWrite: 0 - _XRMotionVectorsPass: 1
- _ZWrite: 1
m_Colors: m_Colors:
- _BaseColor: {r: 1, g: 0, b: 0, a: 1} - _BaseColor: {r: 1, g: 0, b: 0, a: 0.54509807}
- _CameraFadeParams: {r: 0, g: Infinity, b: 0, a: 0} - _CameraFadeParams: {r: 0, g: Infinity, b: 0, a: 0}
- _Color: {r: 1, g: 0, b: 0, a: 0.54509807} - _Color: {r: 1, g: 0, b: 0, a: 0.54509807}
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1} - _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
@@ -162,4 +168,4 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: d0353a89b1f911e48b9e16bdc9f2e058, type: 3} m_Script: {fileID: 11500000, guid: d0353a89b1f911e48b9e16bdc9f2e058, type: 3}
m_Name: m_Name:
m_EditorClassIdentifier: m_EditorClassIdentifier:
version: 5 version: 10
@@ -8,16 +8,21 @@ Material:
m_PrefabInstance: {fileID: 0} m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0} m_PrefabAsset: {fileID: 0}
m_Name: White m_Name: White
m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0} m_Shader: {fileID: 4800000, guid: 933532a4fcc9baf4fa0491de14d08ed7, type: 3}
m_Parent: {fileID: 0}
m_ModifiedSerializedProperties: 0
m_ValidKeywords: m_ValidKeywords:
- _EMISSION - _EMISSION
m_InvalidKeywords: [] m_InvalidKeywords: []
m_LightmapFlags: 0 m_LightmapFlags: 6
m_EnableInstancingVariants: 0 m_EnableInstancingVariants: 0
m_DoubleSidedGI: 0 m_DoubleSidedGI: 0
m_CustomRenderQueue: -1 m_CustomRenderQueue: -1
stringTagMap: {} stringTagMap:
disabledShaderPasses: [] RenderType: Opaque
disabledShaderPasses:
- MOTIONVECTORS
m_LockedProperties:
m_SavedProperties: m_SavedProperties:
serializedVersion: 3 serializedVersion: 3
m_TexEnvs: m_TexEnvs:
@@ -84,8 +89,11 @@ Material:
m_Ints: [] m_Ints: []
m_Floats: m_Floats:
- PixelSnap: 0 - PixelSnap: 0
- _AddPrecomputedVelocity: 0
- _AlphaClip: 0 - _AlphaClip: 0
- _AlphaToMask: 0
- _Blend: 0 - _Blend: 0
- _BlendModePreserveSpecular: 1
- _BlendOp: 0 - _BlendOp: 0
- _BumpScale: 1 - _BumpScale: 1
- _CameraFadingEnabled: 0 - _CameraFadingEnabled: 0
@@ -103,6 +111,7 @@ Material:
- _DistortionStrength: 1 - _DistortionStrength: 1
- _DistortionStrengthScaled: 0 - _DistortionStrengthScaled: 0
- _DstBlend: 0 - _DstBlend: 0
- _DstBlendAlpha: 0
- _EmissionEnabled: 0 - _EmissionEnabled: 0
- _EnableExternalAlpha: 0 - _EnableExternalAlpha: 0
- _EnvironmentReflections: 1 - _EnvironmentReflections: 1
@@ -124,6 +133,7 @@ Material:
- _SoftParticlesNearFadeDistance: 0 - _SoftParticlesNearFadeDistance: 0
- _SpecularHighlights: 1 - _SpecularHighlights: 1
- _SrcBlend: 1 - _SrcBlend: 1
- _SrcBlendAlpha: 1
- _Stencil: 0 - _Stencil: 0
- _StencilComp: 8 - _StencilComp: 8
- _StencilOp: 0 - _StencilOp: 0
@@ -133,6 +143,7 @@ Material:
- _UVSec: 0 - _UVSec: 0
- _UseUIAlphaClip: 0 - _UseUIAlphaClip: 0
- _WorkflowMode: 1 - _WorkflowMode: 1
- _XRMotionVectorsPass: 1
- _ZWrite: 1 - _ZWrite: 1
m_Colors: m_Colors:
- _BaseColor: {r: 0.9686274, g: 0.9686274, b: 0.9686274, a: 1} - _BaseColor: {r: 0.9686274, g: 0.9686274, b: 0.9686274, a: 1}
@@ -144,6 +155,7 @@ Material:
- _SoftParticleFadeParams: {r: 0, g: 0, b: 0, a: 0} - _SoftParticleFadeParams: {r: 0, g: 0, b: 0, a: 0}
- _SpecColor: {r: 0.19999996, g: 0.19999996, b: 0.19999996, a: 1} - _SpecColor: {r: 0.19999996, g: 0.19999996, b: 0.19999996, a: 1}
m_BuildTextureStacks: [] m_BuildTextureStacks: []
m_AllowLocking: 1
--- !u!114 &447292672560585647 --- !u!114 &447292672560585647
MonoBehaviour: MonoBehaviour:
m_ObjectHideFlags: 11 m_ObjectHideFlags: 11
@@ -156,4 +168,4 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: d0353a89b1f911e48b9e16bdc9f2e058, type: 3} m_Script: {fileID: 11500000, guid: d0353a89b1f911e48b9e16bdc9f2e058, type: 3}
m_Name: m_Name:
m_EditorClassIdentifier: m_EditorClassIdentifier:
version: 5 version: 10
@@ -0,0 +1,247 @@
fileFormatVersion: 2
guid: 7eff605df5fc69141bad762b74fb9228
ModelImporter:
serializedVersion: 22200
internalIDToNameTable: []
externalObjects: {}
materials:
materialImportMode: 0
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: 3
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: 0
importCameras: 0
importLights: 0
nodeNameCollisionStrategy: 0
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: 0
humanDescription:
serializedVersion: 3
human: []
skeleton:
- name: RightHand-Original-ImportExportTest(Clone)
parentName:
position: {x: 0, y: 0, z: 0}
rotation: {x: 0, y: 0, z: 0, w: 1}
scale: {x: 1, y: 1, z: 1}
- name: V2-Hand reference mesh-02
parentName: RightHand-Original-ImportExportTest(Clone)
position: {x: -0, y: 0, z: 0}
rotation: {x: 0, y: -0, z: -0, w: 1}
scale: {x: 1, y: 1, z: 1}
- name: R_Wrist
parentName: RightHand-Original-ImportExportTest(Clone)
position: {x: -0.003278835, y: 0.05342003, z: -0.062004544}
rotation: {x: 0.6861093, y: 0.036429923, z: 0.028978078, w: 0.7260077}
scale: {x: 1.0000001, y: 1, z: 1.0000027}
- name: R_IndexMetacarpal
parentName: R_Wrist
position: {x: -0.015184388, y: 0.043368313, z: -0.0004082384}
rotation: {x: -0.039728012, y: -0.016940618, z: 0.0136341, w: 0.9989739}
scale: {x: 0.99999994, y: 1, z: 0.99999994}
- name: R_IndexProximal
parentName: R_IndexMetacarpal
position: {x: -0.0000000030971443, y: 0.053249188, z: 0.0000000036459735}
rotation: {x: 0.11408561, y: 0.027069341, z: -0.003031183, w: 0.9930975}
scale: {x: 1, y: 0.9999999, z: 1.0000002}
- name: R_IndexIntermediate
parentName: R_IndexProximal
position: {x: 2.0986757e-10, y: 0.03119257, z: -0.0000000029665912}
rotation: {x: 0.22822198, y: -0.0019579423, z: -0.0028197072, w: 0.9736031}
scale: {x: 1, y: 1.0000002, z: 0.9999998}
- name: R_IndexDistal
parentName: R_IndexIntermediate
position: {x: 0.000000011364375, y: 0.015153917, z: 0.000000006907221}
rotation: {x: 0.11608021, y: -0.020753868, z: 0.0004017833, w: 0.9930229}
scale: {x: 0.99999994, y: 1.0000006, z: 0.99999946}
- name: R_IndexTip
parentName: R_IndexDistal
position: {x: 0.0000000049176343, y: 0.008471283, z: 0.000000011485351}
rotation: {x: 0.023955874, y: -0.01890053, z: -0.00004664642, w: 0.99953437}
scale: {x: 0.99999994, y: 1.0000001, z: 0.9999998}
- name: R_MiddleMetacarpal
parentName: R_Wrist
position: {x: -0.0021637694, y: 0.041841764, z: -0.0008136065}
rotation: {x: -0.018308057, y: -0.06036859, z: -0.022970585, w: 0.9977439}
scale: {x: 1.0000001, y: 1, z: 0.99999994}
- name: R_MiddleProximal
parentName: R_MiddleMetacarpal
position: {x: -0.00000000739658, y: 0.053792052, z: 0.0000000048860156}
rotation: {x: 0.118838586, y: 0.01847689, z: -0.00033644997, w: 0.9927416}
scale: {x: 1, y: 0.9999999, z: 1.0000001}
- name: R_MiddleIntermediate
parentName: R_MiddleProximal
position: {x: 0.000000005422766, y: 0.031502105, z: -6.3897215e-10}
rotation: {x: 0.32552293, y: -0.011826178, z: 0.020449111, w: 0.945239}
scale: {x: 0.9999999, y: 1.0000005, z: 0.99999946}
- name: R_MiddleDistal
parentName: R_MiddleIntermediate
position: {x: 0.000000028710986, y: 0.018965539, z: 0.000000026385173}
rotation: {x: 0.20727825, y: 0.012435533, z: 0.028069785, w: 0.9778002}
scale: {x: 1, y: 1.0000008, z: 0.99999917}
- name: R_MiddleTip
parentName: R_MiddleDistal
position: {x: 0.000000018862254, y: 0.01355556, z: 0.000000010927729}
rotation: {x: 0.027218292, y: -0.026071634, z: -0.0108469, w: 0.9992306}
scale: {x: 1, y: 1.0000001, z: 0.9999999}
- name: R_RingMetacarpal
parentName: R_Wrist
position: {x: 0.009159105, y: 0.04289402, z: -0.0009776641}
rotation: {x: -0.5051329, y: -0.012376049, z: -0.08139011, w: 0.8591061}
scale: {x: 1.0000001, y: 1, z: 0.9999999}
- name: R_RingProximal
parentName: R_RingMetacarpal
position: {x: 7.1046946e-10, y: 0.047772877, z: -0.0000000012237608}
rotation: {x: 0.01830861, y: -0.036776215, z: 0.04406918, w: 0.9981835}
scale: {x: 1.0000002, y: 1, z: 0.9999999}
- name: R_RingIntermediate
parentName: R_RingProximal
position: {x: 0.000000020008601, y: 0.027416931, z: 0.000000009794475}
rotation: {x: -0.004819274, y: -0.085748516, z: -0.0073304567, w: 0.9962782}
scale: {x: 1.0000001, y: 1.0000005, z: 0.99999917}
- name: R_RingDistal
parentName: R_RingIntermediate
position: {x: 0.0000000361422, y: 0.021599585, z: 0.000000012509237}
rotation: {x: 0.21586773, y: -0.11252745, z: 0.5731088, w: 0.78248644}
scale: {x: 1.0000002, y: 1.0000005, z: 0.9999993}
- name: R_RingTip
parentName: R_RingDistal
position: {x: 0.000000014014161, y: 0.008182308, z: 0.000000016518117}
rotation: {x: 0.08212139, y: 0.050801937, z: -0.04902353, w: 0.9941187}
scale: {x: 0.99999976, y: 1.0000004, z: 0.99999976}
- name: R_Palm
parentName: R_Wrist
position: {x: 0.00033856664, y: 0.052908763, z: -0.0050242892}
rotation: {x: 0.036044274, y: -0.046207204, z: 0.0056319265, w: 0.9982655}
scale: {x: 1.0000001, y: 1, z: 0.9999999}
- name: R_ThumbMetacarpal
parentName: R_Wrist
position: {x: -0.024570636, y: 0.039576054, z: 0.0056750975}
rotation: {x: 0.38757673, y: 0.48578048, z: 0.5464086, w: 0.5614617}
scale: {x: 0.99999976, y: 0.99999994, z: 1.0000002}
- name: R_ThumbProximal
parentName: R_ThumbMetacarpal
position: {x: 0.0000000030227367, y: 0.024318831, z: 0.0000000127638735}
rotation: {x: 0.11798811, y: 0.073554516, z: 0.027695354, w: 0.9898998}
scale: {x: 1.0000005, y: 0.99999994, z: 0.9999997}
- name: R_ThumbDistal
parentName: R_ThumbProximal
position: {x: -0.000000013828266, y: 0.03048904, z: 0.000000047016265}
rotation: {x: 0.06120874, y: -0.114165455, z: -0.55291957, w: 0.82310367}
scale: {x: 1.0000006, y: 1.0000001, z: 0.99999917}
- name: R_ThumbTip
parentName: R_ThumbDistal
position: {x: -0.000000024058998, y: 0.017674206, z: 0.00000008461095}
rotation: {x: -0.042718224, y: -0.040577695, z: -0.007416172, w: 0.9982353}
scale: {x: 0.99999994, y: 1.0000001, z: 1.0000001}
- name: R_LittleMetacarpal
parentName: R_Wrist
position: {x: 0.018062059, y: 0.041240305, z: 0.002480461}
rotation: {x: 0.040541753, y: -0.2460445, z: -0.13661616, w: 0.9587255}
scale: {x: 1.0000004, y: 1, z: 0.9999997}
- name: R_LittleProximal
parentName: R_LittleMetacarpal
position: {x: 0.000000022705052, y: 0.04444153, z: -0.0000000065787407}
rotation: {x: 0.58528006, y: 0.13245042, z: -0.15188508, w: 0.7853885}
scale: {x: 0.99999964, y: 1.0000001, z: 1.0000004}
- name: R_LittleIntermediate
parentName: R_LittleProximal
position: {x: 0.000000013486351, y: 0.0184942, z: -0.0000000054124114}
rotation: {x: 0.21532907, y: -0.22571056, z: -0.01377247, w: 0.9499992}
scale: {x: 1.0000007, y: 1.0000004, z: 0.99999905}
- name: R_LittleDistal
parentName: R_LittleIntermediate
position: {x: 0.000000031878056, y: 0.014893936, z: 0.00000000870707}
rotation: {x: -0.27264047, y: 0.07361126, z: 0.2861297, w: 0.91563004}
scale: {x: 0.9999997, y: 1.0000007, z: 0.99999964}
- name: R_LittleTip
parentName: R_LittleDistal
position: {x: 0.000000019335364, y: 0.0077872393, z: -9.0059754e-10}
rotation: {x: 0.030928679, y: 0.115395255, z: 0.0017466116, w: 0.99283653}
scale: {x: 0.99999994, y: 1, z: 1}
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: 1
skeletonHasParents: 1
lastHumanDescriptionAvatarSource: {instanceID: 0}
autoGenerateAvatarMappingIfUnspecified: 1
animationType: 2
humanoidOversampling: 1
avatarSetup: 0
addHumanoidExtraRootOnlyWhenUsingAvatar: 1
importBlendShapeDeformPercent: 0
remapMaterialsIfMaterialImportModeIsNone: 0
additionalBone: 0
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,247 @@
fileFormatVersion: 2
guid: 49090752ee8bba242ad64a291905ee10
ModelImporter:
serializedVersion: 22200
internalIDToNameTable: []
externalObjects: {}
materials:
materialImportMode: 0
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: 3
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: 0
importCameras: 0
importLights: 0
nodeNameCollisionStrategy: 0
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: 0
humanDescription:
serializedVersion: 3
human: []
skeleton:
- name: RightHand-Original-ImportExportTest(Clone)
parentName:
position: {x: 0, y: 0, z: 0}
rotation: {x: 0, y: 0, z: 0, w: 1}
scale: {x: 1, y: 1, z: 1}
- name: V2-Hand reference mesh-02
parentName: RightHand-Original-ImportExportTest(Clone)
position: {x: -0, y: 0, z: 0}
rotation: {x: 0, y: -0, z: -0, w: 1}
scale: {x: 1, y: 1, z: 1}
- name: R_Wrist
parentName: RightHand-Original-ImportExportTest(Clone)
position: {x: -0.003278835, y: 0.05342003, z: -0.062004544}
rotation: {x: 0.6861093, y: 0.036429923, z: 0.028978078, w: 0.7260077}
scale: {x: 1.0000001, y: 1, z: 1.0000027}
- name: R_IndexMetacarpal
parentName: R_Wrist
position: {x: -0.015184388, y: 0.043368313, z: -0.0004082384}
rotation: {x: -0.039728012, y: -0.016940618, z: 0.0136341, w: 0.9989739}
scale: {x: 0.99999994, y: 1, z: 0.99999994}
- name: R_IndexProximal
parentName: R_IndexMetacarpal
position: {x: -0.0000000030971443, y: 0.053249188, z: 0.0000000036459735}
rotation: {x: 0.11408561, y: 0.027069341, z: -0.003031183, w: 0.9930975}
scale: {x: 1, y: 0.9999999, z: 1.0000002}
- name: R_IndexIntermediate
parentName: R_IndexProximal
position: {x: 2.0986757e-10, y: 0.03119257, z: -0.0000000029665912}
rotation: {x: 0.22822198, y: -0.0019579423, z: -0.0028197072, w: 0.9736031}
scale: {x: 1, y: 1.0000002, z: 0.9999998}
- name: R_IndexDistal
parentName: R_IndexIntermediate
position: {x: 0.000000011364375, y: 0.015153917, z: 0.000000006907221}
rotation: {x: 0.11608021, y: -0.020753868, z: 0.0004017833, w: 0.9930229}
scale: {x: 0.99999994, y: 1.0000006, z: 0.99999946}
- name: R_IndexTip
parentName: R_IndexDistal
position: {x: 0.0000000049176343, y: 0.008471283, z: 0.000000011485351}
rotation: {x: 0.023955874, y: -0.01890053, z: -0.00004664642, w: 0.99953437}
scale: {x: 0.99999994, y: 1.0000001, z: 0.9999998}
- name: R_MiddleMetacarpal
parentName: R_Wrist
position: {x: -0.0021637694, y: 0.041841764, z: -0.0008136065}
rotation: {x: -0.018308057, y: -0.06036859, z: -0.022970585, w: 0.9977439}
scale: {x: 1.0000001, y: 1, z: 0.99999994}
- name: R_MiddleProximal
parentName: R_MiddleMetacarpal
position: {x: -0.00000000739658, y: 0.053792052, z: 0.0000000048860156}
rotation: {x: 0.118838586, y: 0.01847689, z: -0.00033644997, w: 0.9927416}
scale: {x: 1, y: 0.9999999, z: 1.0000001}
- name: R_MiddleIntermediate
parentName: R_MiddleProximal
position: {x: 0.000000005422766, y: 0.031502105, z: -6.3897215e-10}
rotation: {x: 0.32552293, y: -0.011826178, z: 0.020449111, w: 0.945239}
scale: {x: 0.9999999, y: 1.0000005, z: 0.99999946}
- name: R_MiddleDistal
parentName: R_MiddleIntermediate
position: {x: 0.000000028710986, y: 0.018965539, z: 0.000000026385173}
rotation: {x: 0.20727825, y: 0.012435533, z: 0.028069785, w: 0.9778002}
scale: {x: 1, y: 1.0000008, z: 0.99999917}
- name: R_MiddleTip
parentName: R_MiddleDistal
position: {x: 0.000000018862254, y: 0.01355556, z: 0.000000010927729}
rotation: {x: 0.027218292, y: -0.026071634, z: -0.0108469, w: 0.9992306}
scale: {x: 1, y: 1.0000001, z: 0.9999999}
- name: R_RingMetacarpal
parentName: R_Wrist
position: {x: 0.009159105, y: 0.04289402, z: -0.0009776641}
rotation: {x: -0.5051329, y: -0.012376049, z: -0.08139011, w: 0.8591061}
scale: {x: 1.0000001, y: 1, z: 0.9999999}
- name: R_RingProximal
parentName: R_RingMetacarpal
position: {x: 7.1046946e-10, y: 0.047772877, z: -0.0000000012237608}
rotation: {x: 0.01830861, y: -0.036776215, z: 0.04406918, w: 0.9981835}
scale: {x: 1.0000002, y: 1, z: 0.9999999}
- name: R_RingIntermediate
parentName: R_RingProximal
position: {x: 0.000000020008601, y: 0.027416931, z: 0.000000009794475}
rotation: {x: -0.004819274, y: -0.085748516, z: -0.0073304567, w: 0.9962782}
scale: {x: 1.0000001, y: 1.0000005, z: 0.99999917}
- name: R_RingDistal
parentName: R_RingIntermediate
position: {x: 0.0000000361422, y: 0.021599585, z: 0.000000012509237}
rotation: {x: 0.21586773, y: -0.11252745, z: 0.5731088, w: 0.78248644}
scale: {x: 1.0000002, y: 1.0000005, z: 0.9999993}
- name: R_RingTip
parentName: R_RingDistal
position: {x: 0.000000014014161, y: 0.008182308, z: 0.000000016518117}
rotation: {x: 0.08212139, y: 0.050801937, z: -0.04902353, w: 0.9941187}
scale: {x: 0.99999976, y: 1.0000004, z: 0.99999976}
- name: R_Palm
parentName: R_Wrist
position: {x: 0.00033856664, y: 0.052908763, z: -0.0050242892}
rotation: {x: 0.036044274, y: -0.046207204, z: 0.0056319265, w: 0.9982655}
scale: {x: 1.0000001, y: 1, z: 0.9999999}
- name: R_ThumbMetacarpal
parentName: R_Wrist
position: {x: -0.024570636, y: 0.039576054, z: 0.0056750975}
rotation: {x: 0.38757673, y: 0.48578048, z: 0.5464086, w: 0.5614617}
scale: {x: 0.99999976, y: 0.99999994, z: 1.0000002}
- name: R_ThumbProximal
parentName: R_ThumbMetacarpal
position: {x: 0.0000000030227367, y: 0.024318831, z: 0.0000000127638735}
rotation: {x: 0.11798811, y: 0.073554516, z: 0.027695354, w: 0.9898998}
scale: {x: 1.0000005, y: 0.99999994, z: 0.9999997}
- name: R_ThumbDistal
parentName: R_ThumbProximal
position: {x: -0.000000013828266, y: 0.03048904, z: 0.000000047016265}
rotation: {x: 0.06120874, y: -0.114165455, z: -0.55291957, w: 0.82310367}
scale: {x: 1.0000006, y: 1.0000001, z: 0.99999917}
- name: R_ThumbTip
parentName: R_ThumbDistal
position: {x: -0.000000024058998, y: 0.017674206, z: 0.00000008461095}
rotation: {x: -0.042718224, y: -0.040577695, z: -0.007416172, w: 0.9982353}
scale: {x: 0.99999994, y: 1.0000001, z: 1.0000001}
- name: R_LittleMetacarpal
parentName: R_Wrist
position: {x: 0.018062059, y: 0.041240305, z: 0.002480461}
rotation: {x: 0.040541753, y: -0.2460445, z: -0.13661616, w: 0.9587255}
scale: {x: 1.0000004, y: 1, z: 0.9999997}
- name: R_LittleProximal
parentName: R_LittleMetacarpal
position: {x: 0.000000022705052, y: 0.04444153, z: -0.0000000065787407}
rotation: {x: 0.58528006, y: 0.13245042, z: -0.15188508, w: 0.7853885}
scale: {x: 0.99999964, y: 1.0000001, z: 1.0000004}
- name: R_LittleIntermediate
parentName: R_LittleProximal
position: {x: 0.000000013486351, y: 0.0184942, z: -0.0000000054124114}
rotation: {x: 0.21532907, y: -0.22571056, z: -0.01377247, w: 0.9499992}
scale: {x: 1.0000007, y: 1.0000004, z: 0.99999905}
- name: R_LittleDistal
parentName: R_LittleIntermediate
position: {x: 0.000000031878056, y: 0.014893936, z: 0.00000000870707}
rotation: {x: -0.27264047, y: 0.07361126, z: 0.2861297, w: 0.91563004}
scale: {x: 0.9999997, y: 1.0000007, z: 0.99999964}
- name: R_LittleTip
parentName: R_LittleDistal
position: {x: 0.000000019335364, y: 0.0077872393, z: -9.0059754e-10}
rotation: {x: 0.030928679, y: 0.115395255, z: 0.0017466116, w: 0.99283653}
scale: {x: 0.99999994, y: 1, z: 1}
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: 1
skeletonHasParents: 1
lastHumanDescriptionAvatarSource: {instanceID: 0}
autoGenerateAvatarMappingIfUnspecified: 1
animationType: 2
humanoidOversampling: 1
avatarSetup: 0
addHumanoidExtraRootOnlyWhenUsingAvatar: 1
importBlendShapeDeformPercent: 0
remapMaterialsIfMaterialImportModeIsNone: 0
additionalBone: 0
userData:
assetBundleName:
assetBundleVariant:
@@ -1,8 +1,16 @@
using System;
using System.Collections.Generic; using System.Collections.Generic;
using UnityEngine.Serialization;
namespace UnityEngine.XR.Hands.Samples.VisualizerSample namespace UnityEngine.XR.Hands.Samples.VisualizerSample
{ {
// Hand rig setups can differ between platforms. In these cases, the HandVisualizer supports displaying unique hands on a per-platform basis.
// If you would like to customize the hand meshes that are displayed by the HandVisualizer, based on the platform you are using,
// you will need to replace the rigged hand mesh references assigned to the corresponding fields for that platform.
// For Meta Quest devices, assign your rigged hand meshes to the "m_MetaQuestLeftHandMesh" & "m_MetaQuestRightHandMesh" fields.
// For Android XR devices, assign your rigged hand meshes to the "m_AndroidXRLeftHandMesh" & "m_AndroidXRRightHandMesh" fields.
// The rigged hand meshes that are assigned for a given platform will be displayed when that platform is detected,
// and any other rigged hand meshes assigned for other undetected platforms will not be displayed.
/// <summary> /// <summary>
/// This component visualizes the hand joints and mesh for the left and right hands. /// This component visualizes the hand joints and mesh for the left and right hands.
/// </summary> /// </summary>
@@ -33,13 +41,23 @@ namespace UnityEngine.XR.Hands.Samples.VisualizerSample
[Tooltip("If this is enabled, this component will enable the Input System internal feature flag 'USE_OPTIMIZED_CONTROLS'. You must have at least version 1.5.0 of the Input System and have its backend enabled for this to take effect.")] [Tooltip("If this is enabled, this component will enable the Input System internal feature flag 'USE_OPTIMIZED_CONTROLS'. You must have at least version 1.5.0 of the Input System and have its backend enabled for this to take effect.")]
bool m_UseOptimizedControls; bool m_UseOptimizedControls;
[SerializeField] [SerializeField, FormerlySerializedAs("m_LeftHandMesh")]
[Tooltip("References either a prefab or a GameObject in the scene that will be used to visualize the left hand.")] [Tooltip("References either a prefab or a GameObject in the scene that will be used to visualize the left hand.")]
GameObject m_LeftHandMesh; GameObject m_MetaQuestLeftHandMesh;
[SerializeField, FormerlySerializedAs("m_RightHandMesh")]
[Tooltip("References either a prefab or a GameObject in the scene that will be used to visualize the right hand.")]
GameObject m_MetaQuestRightHandMesh;
[SerializeField] [SerializeField]
[Tooltip("References either a prefab or a GameObject in the scene that will be used to visualize the right hand.")] [Tooltip("References either a prefab or a GameObject in the scene that will be used to visualize the left hand on Android XR devices." +
GameObject m_RightHandMesh; "<br><br><b>Instructions for how to setup and use these meshes can be found at the top of the <b>HandVisualizer.cs class</b>")]
GameObject m_AndroidXRLeftHandMesh;
[SerializeField]
[Tooltip("References either a prefab or a GameObject in the scene that will be used to visualize the right hand on Android XR devices." +
"<br><br><b>Instructions for how to setup and use these meshes can be found at the top of the <b>HandVisualizer.cs class</b>")]
GameObject m_AndroidXRRightHandMesh;
[SerializeField] [SerializeField]
[Tooltip("(Optional) If this is set, the hand meshes will be assigned this material.")] [Tooltip("(Optional) If this is set, the hand meshes will be assigned this material.")]
@@ -95,7 +113,6 @@ namespace UnityEngine.XR.Hands.Samples.VisualizerSample
set => m_VelocityType = value; set => m_VelocityType = value;
} }
XRHandSubsystem m_Subsystem; XRHandSubsystem m_Subsystem;
HandGameObjects m_LeftHandGameObjects; HandGameObjects m_LeftHandGameObjects;
HandGameObjects m_RightHandGameObjects; HandGameObjects m_RightHandGameObjects;
@@ -185,12 +202,24 @@ namespace UnityEngine.XR.Hands.Samples.VisualizerSample
if (!foundRunningHandSubsystem) if (!foundRunningHandSubsystem)
return; return;
GameObject selectedLeftHandMesh = null, selectedRightHandMesh = null;
if (m_Subsystem.detectedHandMeshLayout == XRDetectedHandMeshLayout.OpenXRAndroidXR)
{
selectedLeftHandMesh = m_AndroidXRLeftHandMesh;
selectedRightHandMesh = m_AndroidXRRightHandMesh;
}
else
{
selectedLeftHandMesh = m_MetaQuestLeftHandMesh;
selectedRightHandMesh = m_MetaQuestRightHandMesh;
}
if (m_LeftHandGameObjects == null) if (m_LeftHandGameObjects == null)
{ {
m_LeftHandGameObjects = new HandGameObjects( m_LeftHandGameObjects = new HandGameObjects(
Handedness.Left, Handedness.Left,
transform, transform,
m_LeftHandMesh, selectedLeftHandMesh,
m_HandMeshMaterial, m_HandMeshMaterial,
m_DebugDrawPrefab, m_DebugDrawPrefab,
m_VelocityPrefab); m_VelocityPrefab);
@@ -201,7 +230,7 @@ namespace UnityEngine.XR.Hands.Samples.VisualizerSample
m_RightHandGameObjects = new HandGameObjects( m_RightHandGameObjects = new HandGameObjects(
Handedness.Right, Handedness.Right,
transform, transform,
m_RightHandMesh, selectedRightHandMesh,
m_HandMeshMaterial, m_HandMeshMaterial,
m_DebugDrawPrefab, m_DebugDrawPrefab,
m_VelocityPrefab); m_VelocityPrefab);
@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 6e1c395ff62a3a14dbeb293298bb46bf
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
@@ -0,0 +1,249 @@
using UnityEngine.Rendering;
using System.Collections.Generic;
#if UNITY_EDITOR
using UnityEditor;
#endif
namespace UnityEngine.XR.Hands.Samples.VisualizerSample
{
#if UNITY_EDITOR
[InitializeOnLoad]
static class RenderPipelineValidation
{
static RenderPipelineValidation()
{
foreach (var pipelineHandler in GetAllInstances())
pipelineHandler.AutoRefreshPipelineShaders();
}
static List<MaterialPipelineHandler> GetAllInstances()
{
var instances = new List<MaterialPipelineHandler>();
// Find all GUIDs for objects that match the type MaterialPipelineHandler
var guids = AssetDatabase.FindAssets("t:MaterialPipelineHandler");
for (int i = 0; i < guids.Length; i++)
{
string path = AssetDatabase.GUIDToAssetPath(guids[i]);
var asset = AssetDatabase.LoadAssetAtPath<MaterialPipelineHandler>(path);
if (asset != null)
instances.Add(asset);
}
return instances;
}
}
#endif
/// <summary>
/// Serializable class that contains the shader information for a material.
/// </summary>
[System.Serializable]
public class ShaderContainer
{
public Material material;
public bool useSRPShaderName = true;
public string scriptableRenderPipelineShaderName = "Universal Render Pipeline/Lit";
public Shader scriptableRenderPipelineShader;
public bool useBuiltinShaderName = true;
public string builtInPipelineShaderName = "Standard";
public Shader builtInPipelineShader;
}
/// <summary>
/// Scriptable object that allows for setting the shader on a material based on the current render pipeline.
/// Will run automatically OnEnable in the editor to set the shaders on project bootup. Can be refreshed manually with editor button.
/// This exists because while objects render correctly using shadergraph shaders, others do not and using the standard shader resolves various rendering issues.
/// </summary>
[CreateAssetMenu(fileName = "MaterialPipelineHandler", menuName = "XR/MaterialPipelineHandler", order = 0)]
public class MaterialPipelineHandler : ScriptableObject
{
[SerializeField]
[Tooltip("List of materials and their associated shaders.")]
List<ShaderContainer> m_ShaderContainers;
[SerializeField]
[Tooltip("If true, the shaders will be refreshed automatically when the editor opens and when this scriptable object instance is enabled.")]
bool m_AutoRefreshShaders = true;
#if UNITY_EDITOR
void OnEnable()
{
if (Application.isPlaying)
return;
AutoRefreshPipelineShaders();
}
#endif
public void AutoRefreshPipelineShaders()
{
if (m_AutoRefreshShaders)
SetPipelineShaders();
}
/// <summary>
/// Applies the appropriate shader to the materials based on the current render pipeline.
/// </summary>
public void SetPipelineShaders()
{
if (m_ShaderContainers == null)
return;
bool isBuiltinRenderPipeline = GraphicsSettings.currentRenderPipeline == null;
foreach (var info in m_ShaderContainers)
{
if (info.material == null)
continue;
// Store original color before shader change
Color originalColor = info.material.GetColor("_Color");
if (!info.material.HasProperty("_Color"))
originalColor = info.material.GetColor("_BaseColor"); // URP uses _BaseColor
// Find the appropriate shaders based on the toggle
Shader birpShader = info.useBuiltinShaderName ? Shader.Find(info.builtInPipelineShaderName) : info.builtInPipelineShader;
Shader srpShader = info.useSRPShaderName ? Shader.Find(info.scriptableRenderPipelineShaderName) : info.scriptableRenderPipelineShader;
// Determine current shader for comparison
Shader currentShader = info.material.shader;
// Update shader for the current render pipeline only if necessary
if (isBuiltinRenderPipeline && birpShader != null && currentShader != birpShader)
{
info.material.shader = birpShader;
info.material.SetColor("_Color", originalColor);
MarkMaterialModified(info.material);
}
else if (!isBuiltinRenderPipeline && srpShader != null && currentShader != srpShader)
{
info.material.shader = srpShader;
info.material.SetColor("_BaseColor", originalColor);
MarkMaterialModified(info.material);
}
}
}
static void MarkMaterialModified(Material material)
{
#if UNITY_EDITOR
EditorUtility.SetDirty(material);
#endif
}
}
#if UNITY_EDITOR
/// <summary>
/// Custom property drawer for the shader container class.
/// </summary>
[CustomPropertyDrawer(typeof(ShaderContainer))]
public class ShaderContainerDrawer : PropertyDrawer
{
public override void OnGUI(Rect position, SerializedProperty property, GUIContent label)
{
EditorGUI.BeginProperty(position, label, property);
float singleLineHeight = EditorGUIUtility.singleLineHeight;
float verticalSpacing = EditorGUIUtility.standardVerticalSpacing;
SerializedProperty materialProp = property.FindPropertyRelative("material");
SerializedProperty useSRPShaderNameProp = property.FindPropertyRelative("useSRPShaderName");
SerializedProperty scriptableShaderNameProp = property.FindPropertyRelative("scriptableRenderPipelineShaderName");
SerializedProperty scriptableShaderProp = property.FindPropertyRelative("scriptableRenderPipelineShader");
SerializedProperty useShaderNameProp = property.FindPropertyRelative("useBuiltinShaderName");
SerializedProperty builtInNameProp = property.FindPropertyRelative("builtInPipelineShaderName");
SerializedProperty builtInShaderProp = property.FindPropertyRelative("builtInPipelineShader");
// Draw Material without the header.
position.height = singleLineHeight;
EditorGUI.PropertyField(position, materialProp);
position.y += singleLineHeight + verticalSpacing;
// SRP Shader header and fields.
EditorGUI.LabelField(position, "Scriptable Render Pipeline Shader", EditorStyles.boldLabel);
position.y += EditorGUIUtility.singleLineHeight + verticalSpacing;
EditorGUI.PropertyField(position, useSRPShaderNameProp);
position.y += singleLineHeight + verticalSpacing;
if (useSRPShaderNameProp.boolValue)
{
EditorGUI.PropertyField(position, scriptableShaderNameProp);
position.y += singleLineHeight + verticalSpacing;
}
else
{
EditorGUI.PropertyField(position, scriptableShaderProp);
position.y += singleLineHeight + verticalSpacing;
}
// Built-in Shader header and fields.
EditorGUI.LabelField(position, "Built-In Render Pipeline Shader", EditorStyles.boldLabel);
position.y += singleLineHeight + verticalSpacing;
EditorGUI.PropertyField(position, useShaderNameProp);
position.y += singleLineHeight + verticalSpacing;
if (useShaderNameProp.boolValue)
{
EditorGUI.PropertyField(position, builtInNameProp);
position.y += singleLineHeight + verticalSpacing;
}
else
{
EditorGUI.PropertyField(position, builtInShaderProp);
position.y += singleLineHeight + verticalSpacing;
}
// Draw a separator line at the end.
position.y += verticalSpacing / 2; // Extra space for the line.
position.height = 1;
EditorGUI.DrawRect(new Rect(position.x, position.y, position.width, 1), Color.gray);
EditorGUI.EndProperty();
}
public override float GetPropertyHeight(SerializedProperty property, GUIContent label)
{
const int baseFieldCount = 4; // The Material field, the two toggles, and one for an optional field.
int extraLineCount = property.FindPropertyRelative("useBuiltinShaderName").boolValue ? 0 : 1;
extraLineCount += property.FindPropertyRelative("useSRPShaderName").boolValue ? 0 : 1;
float singleLineHeight = EditorGUIUtility.singleLineHeight;
float verticalSpacing = EditorGUIUtility.standardVerticalSpacing;
float headerHeight = EditorGUIUtility.singleLineHeight; // No longer need extra height for headers.
// Calculate height for fields and headers
float fieldsHeight = baseFieldCount * singleLineHeight + (baseFieldCount - 1 + extraLineCount) * verticalSpacing;
// Allow space for header, separator line, and a bit of padding before the line.
float headersHeight = 2 * (headerHeight + verticalSpacing);
float separatorSpace = verticalSpacing / 2 + 1; // Additional vertical spacing and line height.
return fieldsHeight + headersHeight + separatorSpace + singleLineHeight * 1.5f;
}
}
/// <summary>
/// Custom editor MaterialPipelineHandler
/// </summary>
[CustomEditor(typeof(MaterialPipelineHandler)), CanEditMultipleObjects]
public class MaterialPipelineHandlerEditor : Editor
{
public override void OnInspectorGUI()
{
base.OnInspectorGUI();
// Draw the "Refresh Shaders" button
if (GUILayout.Button("Refresh Shaders"))
{
foreach (var t in targets)
{
var handler = (MaterialPipelineHandler)t;
handler.SetPipelineShaders();
}
}
}
}
#endif
}
@@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 6772a216ed6f29c42abef904c7d6940d
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
@@ -1,4 +1,5 @@
{ {
"version": 1,
"name": "XRI Default Input Actions", "name": "XRI Default Input Actions",
"maps": [ "maps": [
{ {
@@ -1560,7 +1561,7 @@
"isPartOfComposite": false "isPartOfComposite": false
}, },
{ {
"name": "first", "name": "First",
"id": "3722d501-eb80-4f61-9361-08a5ea7a1394", "id": "3722d501-eb80-4f61-9361-08a5ea7a1394",
"path": "<XRController>{RightHand}/pointerRotation", "path": "<XRController>{RightHand}/pointerRotation",
"interactions": "", "interactions": "",
@@ -1571,7 +1572,7 @@
"isPartOfComposite": true "isPartOfComposite": true
}, },
{ {
"name": "second", "name": "Second",
"id": "2e6ad191-d5aa-4919-aac6-295c83387a72", "id": "2e6ad191-d5aa-4919-aac6-295c83387a72",
"path": "<XRController>{RightHand}/deviceRotation", "path": "<XRController>{RightHand}/deviceRotation",
"interactions": "", "interactions": "",
File renamed without changes.
File diff suppressed because it is too large. Load diff
File renamed without changes.
File renamed without changes.

Before

Width:  |  Height:  |  Size: 274 KiB

After

Width:  |  Height:  |  Size: 274 KiB

Loaded 100 of 151 files, more files were not shown because too many files have changed in this diff. Show more