Fixed unit tests
This commit is contained in:
parent
27afc9d501
commit
d7c2f3b960
@ -673,23 +673,22 @@ namespace Passer.Humanoid {
|
|||||||
|
|
||||||
protected virtual bool GrabRigidbodyParenting(Rigidbody objRigidbody) {
|
protected virtual bool GrabRigidbodyParenting(Rigidbody objRigidbody) {
|
||||||
GameObject obj = objRigidbody.gameObject;
|
GameObject obj = objRigidbody.gameObject;
|
||||||
if (handRigidbody == null) {
|
if (handRigidbody == null)
|
||||||
Debug.LogError("Hand no longer has a rigidbody...");
|
Debug.LogError("Hand no longer has a rigidbody...");
|
||||||
}
|
|
||||||
|
|
||||||
RigidbodyDisabled.ParentRigidbody(handRigidbody, objRigidbody);
|
|
||||||
if (handRigidbody != null)
|
if (handRigidbody != null)
|
||||||
handRigidbody.mass = objRigidbody.mass;
|
handRigidbody.mass = objRigidbody.mass;
|
||||||
|
|
||||||
|
|
||||||
HumanoidNetworking.DisableNetworkSync(objRigidbody.gameObject);
|
HumanoidNetworking.DisableNetworkSync(objRigidbody.gameObject);
|
||||||
if (!humanoid.isRemote)
|
if (!humanoid.isRemote)
|
||||||
HumanoidNetworking.TakeOwnership(objRigidbody.gameObject);
|
HumanoidNetworking.TakeOwnership(objRigidbody.gameObject);
|
||||||
|
|
||||||
if (Application.isPlaying)
|
RigidbodyDisabled.ParentRigidbody(handRigidbody, objRigidbody);
|
||||||
Object.Destroy(objRigidbody);
|
|
||||||
else
|
//if (Application.isPlaying)
|
||||||
Object.DestroyImmediate(objRigidbody, true);
|
// Object.Destroy(objRigidbody);
|
||||||
|
//else
|
||||||
|
// Object.DestroyImmediate(objRigidbody, true);
|
||||||
grabbedObject = obj;
|
grabbedObject = obj;
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
@ -853,8 +852,10 @@ namespace Passer.Humanoid {
|
|||||||
}
|
}
|
||||||
//grabbedRigidbody.centerOfMass = handTarget.storedCOM;
|
//grabbedRigidbody.centerOfMass = handTarget.storedCOM;
|
||||||
|
|
||||||
grabbedRigidbody.velocity = handRigidbody.velocity;
|
if (grabbedRigidbody.isKinematic == false) {
|
||||||
grabbedRigidbody.angularVelocity = handRigidbody.angularVelocity;
|
grabbedRigidbody.velocity = handRigidbody.velocity;
|
||||||
|
grabbedRigidbody.angularVelocity = handRigidbody.angularVelocity;
|
||||||
|
}
|
||||||
|
|
||||||
if (grabbedHandle != null)
|
if (grabbedHandle != null)
|
||||||
LetGoHandle(grabbedHandle);
|
LetGoHandle(grabbedHandle);
|
||||||
|
8
Runtime/HumanoidControl/Scripts/Resources/Models.meta
Normal file
8
Runtime/HumanoidControl/Scripts/Resources/Models.meta
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 6abcb3631639c01478d992ecbd8dc39a
|
||||||
|
folderAsset: yes
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
Binary file not shown.
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,9 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: ee731481bc8b0c949a45ebf8fa2144a7
|
||||||
|
folderAsset: yes
|
||||||
|
timeCreated: 1486644078
|
||||||
|
licenseType: Free
|
||||||
|
DefaultImporter:
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
@ -0,0 +1,76 @@
|
|||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!21 &2100000
|
||||||
|
Material:
|
||||||
|
serializedVersion: 6
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_PrefabParentObject: {fileID: 0}
|
||||||
|
m_PrefabInternal: {fileID: 0}
|
||||||
|
m_Name: No Name
|
||||||
|
m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
|
||||||
|
m_ShaderKeywords: _EMISSION
|
||||||
|
m_LightmapFlags: 1
|
||||||
|
m_EnableInstancingVariants: 0
|
||||||
|
m_DoubleSidedGI: 0
|
||||||
|
m_CustomRenderQueue: -1
|
||||||
|
stringTagMap: {}
|
||||||
|
disabledShaderPasses: []
|
||||||
|
m_SavedProperties:
|
||||||
|
serializedVersion: 3
|
||||||
|
m_TexEnvs:
|
||||||
|
- _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}
|
||||||
|
m_Floats:
|
||||||
|
- _BumpScale: 1
|
||||||
|
- _Cutoff: 0.5
|
||||||
|
- _DetailNormalMapScale: 1
|
||||||
|
- _DstBlend: 0
|
||||||
|
- _GlossMapScale: 1
|
||||||
|
- _Glossiness: 0.5
|
||||||
|
- _GlossyReflections: 1
|
||||||
|
- _Metallic: 0
|
||||||
|
- _Mode: 0
|
||||||
|
- _OcclusionStrength: 1
|
||||||
|
- _Parallax: 0.02
|
||||||
|
- _SmoothnessTextureChannel: 0
|
||||||
|
- _SpecularHighlights: 1
|
||||||
|
- _SrcBlend: 1
|
||||||
|
- _UVSec: 0
|
||||||
|
- _ZWrite: 1
|
||||||
|
m_Colors:
|
||||||
|
- _Color: {r: 1, g: 1, b: 1, a: 1}
|
||||||
|
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
|
@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: a85626db694b4b64aa5b9f475236c885
|
||||||
|
timeCreated: 1486644078
|
||||||
|
licenseType: Free
|
||||||
|
NativeFormatImporter:
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
@ -87,7 +87,7 @@ namespace Passer {
|
|||||||
UnityEditor.SceneManagement.EditorSceneManager.LoadSceneInPlayMode(startScene, new LoadSceneParameters(LoadSceneMode.Additive));
|
UnityEditor.SceneManagement.EditorSceneManager.LoadSceneInPlayMode(startScene, new LoadSceneParameters(LoadSceneMode.Additive));
|
||||||
currentSite = new HistoryEntry() {
|
currentSite = new HistoryEntry() {
|
||||||
siteName = "directload",
|
siteName = "directload",
|
||||||
siteLocation = "passervr.com/sites/start",
|
siteLocation = "serrarens.nl/sites/start",
|
||||||
scenePath = "",
|
scenePath = "",
|
||||||
assetBundle = currentAssetBundle,
|
assetBundle = currentAssetBundle,
|
||||||
};
|
};
|
||||||
@ -248,7 +248,7 @@ namespace Passer {
|
|||||||
|
|
||||||
UnityEngine.UI.Text text = dialogObj.AddComponent<UnityEngine.UI.Text>();
|
UnityEngine.UI.Text text = dialogObj.AddComponent<UnityEngine.UI.Text>();
|
||||||
text.text = dialogText;
|
text.text = dialogText;
|
||||||
text.font = Resources.GetBuiltinResource<Font>("Arial.ttf");
|
text.font = Resources.GetBuiltinResource<Font>("LegacyRuntime.ttf");
|
||||||
text.resizeTextForBestFit = true;
|
text.resizeTextForBestFit = true;
|
||||||
text.alignment = TextAnchor.MiddleCenter;
|
text.alignment = TextAnchor.MiddleCenter;
|
||||||
|
|
||||||
|
8
Samples~.meta
Normal file
8
Samples~.meta
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 5839d837476eba44da4cf96d22142f50
|
||||||
|
folderAsset: yes
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
@ -0,0 +1,83 @@
|
|||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!21 &2100000
|
||||||
|
Material:
|
||||||
|
serializedVersion: 8
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_Name: caucasian-male-young
|
||||||
|
m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
|
||||||
|
m_Parent: {fileID: 0}
|
||||||
|
m_ModifiedSerializedProperties: 0
|
||||||
|
m_ValidKeywords: []
|
||||||
|
m_InvalidKeywords: []
|
||||||
|
m_LightmapFlags: 4
|
||||||
|
m_EnableInstancingVariants: 0
|
||||||
|
m_DoubleSidedGI: 0
|
||||||
|
m_CustomRenderQueue: -1
|
||||||
|
stringTagMap: {}
|
||||||
|
disabledShaderPasses: []
|
||||||
|
m_LockedProperties:
|
||||||
|
m_SavedProperties:
|
||||||
|
serializedVersion: 3
|
||||||
|
m_TexEnvs:
|
||||||
|
- _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: 2800000, guid: 278c00b683cc457458bf8db9ba698239, type: 3}
|
||||||
|
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}
|
||||||
|
m_Ints: []
|
||||||
|
m_Floats:
|
||||||
|
- _BumpScale: 1
|
||||||
|
- _Cutoff: 0.5
|
||||||
|
- _DetailNormalMapScale: 1
|
||||||
|
- _DstBlend: 0
|
||||||
|
- _GlossMapScale: 1
|
||||||
|
- _Glossiness: 0
|
||||||
|
- _GlossyReflections: 1
|
||||||
|
- _Metallic: 0
|
||||||
|
- _Mode: 0
|
||||||
|
- _OcclusionStrength: 1
|
||||||
|
- _Parallax: 0.02
|
||||||
|
- _SmoothnessTextureChannel: 0
|
||||||
|
- _SpecularHighlights: 1
|
||||||
|
- _SrcBlend: 1
|
||||||
|
- _UVSec: 0
|
||||||
|
- _ZWrite: 1
|
||||||
|
m_Colors:
|
||||||
|
- _Color: {r: 1, g: 1, b: 1, a: 1}
|
||||||
|
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
|
||||||
|
m_BuildTextureStacks: []
|
@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 00d8e91da1464b845adca1425e9599d7
|
||||||
|
NativeFormatImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
mainObjectFileID: 2100000
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
@ -0,0 +1,85 @@
|
|||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!21 &2100000
|
||||||
|
Material:
|
||||||
|
serializedVersion: 8
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_Name: classicshoes_texture_black
|
||||||
|
m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
|
||||||
|
m_Parent: {fileID: 0}
|
||||||
|
m_ModifiedSerializedProperties: 0
|
||||||
|
m_ValidKeywords:
|
||||||
|
- _ALPHAPREMULTIPLY_ON
|
||||||
|
m_InvalidKeywords: []
|
||||||
|
m_LightmapFlags: 4
|
||||||
|
m_EnableInstancingVariants: 0
|
||||||
|
m_DoubleSidedGI: 0
|
||||||
|
m_CustomRenderQueue: 3000
|
||||||
|
stringTagMap:
|
||||||
|
RenderType: Transparent
|
||||||
|
disabledShaderPasses: []
|
||||||
|
m_LockedProperties:
|
||||||
|
m_SavedProperties:
|
||||||
|
serializedVersion: 3
|
||||||
|
m_TexEnvs:
|
||||||
|
- _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: 2800000, guid: 15f9cf581a5a2254aa6edfdfbe4bd52d, type: 3}
|
||||||
|
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}
|
||||||
|
m_Ints: []
|
||||||
|
m_Floats:
|
||||||
|
- _BumpScale: 1
|
||||||
|
- _Cutoff: 0.5
|
||||||
|
- _DetailNormalMapScale: 1
|
||||||
|
- _DstBlend: 10
|
||||||
|
- _GlossMapScale: 1
|
||||||
|
- _Glossiness: 0
|
||||||
|
- _GlossyReflections: 1
|
||||||
|
- _Metallic: 0
|
||||||
|
- _Mode: 3
|
||||||
|
- _OcclusionStrength: 1
|
||||||
|
- _Parallax: 0.02
|
||||||
|
- _SmoothnessTextureChannel: 0
|
||||||
|
- _SpecularHighlights: 1
|
||||||
|
- _SrcBlend: 1
|
||||||
|
- _UVSec: 0
|
||||||
|
- _ZWrite: 0
|
||||||
|
m_Colors:
|
||||||
|
- _Color: {r: 0.1, g: 0.1, b: 0.1, a: 0.9}
|
||||||
|
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
|
||||||
|
m_BuildTextureStacks: []
|
@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 86a0d07d2ba985e4ba3112712f20d380
|
||||||
|
NativeFormatImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
mainObjectFileID: 2100000
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
@ -0,0 +1,85 @@
|
|||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!21 &2100000
|
||||||
|
Material:
|
||||||
|
serializedVersion: 8
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_Name: jeans_texture
|
||||||
|
m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
|
||||||
|
m_Parent: {fileID: 0}
|
||||||
|
m_ModifiedSerializedProperties: 0
|
||||||
|
m_ValidKeywords:
|
||||||
|
- _ALPHAPREMULTIPLY_ON
|
||||||
|
m_InvalidKeywords: []
|
||||||
|
m_LightmapFlags: 4
|
||||||
|
m_EnableInstancingVariants: 0
|
||||||
|
m_DoubleSidedGI: 0
|
||||||
|
m_CustomRenderQueue: 3000
|
||||||
|
stringTagMap:
|
||||||
|
RenderType: Transparent
|
||||||
|
disabledShaderPasses: []
|
||||||
|
m_LockedProperties:
|
||||||
|
m_SavedProperties:
|
||||||
|
serializedVersion: 3
|
||||||
|
m_TexEnvs:
|
||||||
|
- _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: 2800000, guid: 150de288aed9a7c4ba456c9450b98189, type: 3}
|
||||||
|
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}
|
||||||
|
m_Ints: []
|
||||||
|
m_Floats:
|
||||||
|
- _BumpScale: 1
|
||||||
|
- _Cutoff: 0.5
|
||||||
|
- _DetailNormalMapScale: 1
|
||||||
|
- _DstBlend: 10
|
||||||
|
- _GlossMapScale: 1
|
||||||
|
- _Glossiness: 0
|
||||||
|
- _GlossyReflections: 1
|
||||||
|
- _Metallic: 0
|
||||||
|
- _Mode: 3
|
||||||
|
- _OcclusionStrength: 1
|
||||||
|
- _Parallax: 0.02
|
||||||
|
- _SmoothnessTextureChannel: 0
|
||||||
|
- _SpecularHighlights: 1
|
||||||
|
- _SrcBlend: 1
|
||||||
|
- _UVSec: 0
|
||||||
|
- _ZWrite: 0
|
||||||
|
m_Colors:
|
||||||
|
- _Color: {r: 0.0426, g: 0.0557, b: 0.2079, a: 0.9574}
|
||||||
|
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
|
||||||
|
m_BuildTextureStacks: []
|
@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: cad73e08b9f208a4a8f3ab6f6d4510dd
|
||||||
|
NativeFormatImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
mainObjectFileID: 2100000
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
@ -0,0 +1,85 @@
|
|||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!21 &2100000
|
||||||
|
Material:
|
||||||
|
serializedVersion: 8
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_Name: texture
|
||||||
|
m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
|
||||||
|
m_Parent: {fileID: 0}
|
||||||
|
m_ModifiedSerializedProperties: 0
|
||||||
|
m_ValidKeywords:
|
||||||
|
- _ALPHAPREMULTIPLY_ON
|
||||||
|
m_InvalidKeywords: []
|
||||||
|
m_LightmapFlags: 4
|
||||||
|
m_EnableInstancingVariants: 0
|
||||||
|
m_DoubleSidedGI: 0
|
||||||
|
m_CustomRenderQueue: 3000
|
||||||
|
stringTagMap:
|
||||||
|
RenderType: Transparent
|
||||||
|
disabledShaderPasses: []
|
||||||
|
m_LockedProperties:
|
||||||
|
m_SavedProperties:
|
||||||
|
serializedVersion: 3
|
||||||
|
m_TexEnvs:
|
||||||
|
- _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}
|
||||||
|
m_Ints: []
|
||||||
|
m_Floats:
|
||||||
|
- _BumpScale: 1
|
||||||
|
- _Cutoff: 0.5
|
||||||
|
- _DetailNormalMapScale: 1
|
||||||
|
- _DstBlend: 10
|
||||||
|
- _GlossMapScale: 1
|
||||||
|
- _Glossiness: 0
|
||||||
|
- _GlossyReflections: 1
|
||||||
|
- _Metallic: 0
|
||||||
|
- _Mode: 3
|
||||||
|
- _OcclusionStrength: 1
|
||||||
|
- _Parallax: 0.02
|
||||||
|
- _SmoothnessTextureChannel: 0
|
||||||
|
- _SpecularHighlights: 1
|
||||||
|
- _SrcBlend: 1
|
||||||
|
- _UVSec: 0
|
||||||
|
- _ZWrite: 0
|
||||||
|
m_Colors:
|
||||||
|
- _Color: {r: 0.8, g: 0.54, b: 0.35, a: 0.19999999}
|
||||||
|
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
|
||||||
|
m_BuildTextureStacks: []
|
@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: a10d9d6b54f516042a24a6251f4b08b0
|
||||||
|
NativeFormatImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
mainObjectFileID: 2100000
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
@ -0,0 +1,85 @@
|
|||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!21 &2100000
|
||||||
|
Material:
|
||||||
|
serializedVersion: 8
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_Name: tshirt_longsleeves_medium_texture
|
||||||
|
m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
|
||||||
|
m_Parent: {fileID: 0}
|
||||||
|
m_ModifiedSerializedProperties: 0
|
||||||
|
m_ValidKeywords:
|
||||||
|
- _ALPHAPREMULTIPLY_ON
|
||||||
|
m_InvalidKeywords: []
|
||||||
|
m_LightmapFlags: 4
|
||||||
|
m_EnableInstancingVariants: 0
|
||||||
|
m_DoubleSidedGI: 0
|
||||||
|
m_CustomRenderQueue: 3000
|
||||||
|
stringTagMap:
|
||||||
|
RenderType: Transparent
|
||||||
|
disabledShaderPasses: []
|
||||||
|
m_LockedProperties:
|
||||||
|
m_SavedProperties:
|
||||||
|
serializedVersion: 3
|
||||||
|
m_TexEnvs:
|
||||||
|
- _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}
|
||||||
|
m_Ints: []
|
||||||
|
m_Floats:
|
||||||
|
- _BumpScale: 1
|
||||||
|
- _Cutoff: 0.5
|
||||||
|
- _DetailNormalMapScale: 1
|
||||||
|
- _DstBlend: 10
|
||||||
|
- _GlossMapScale: 1
|
||||||
|
- _Glossiness: 0
|
||||||
|
- _GlossyReflections: 1
|
||||||
|
- _Metallic: 0
|
||||||
|
- _Mode: 3
|
||||||
|
- _OcclusionStrength: 1
|
||||||
|
- _Parallax: 0.02
|
||||||
|
- _SmoothnessTextureChannel: 0
|
||||||
|
- _SpecularHighlights: 1
|
||||||
|
- _SrcBlend: 1
|
||||||
|
- _UVSec: 0
|
||||||
|
- _ZWrite: 0
|
||||||
|
m_Colors:
|
||||||
|
- _Color: {r: 0.8, g: 0.8, b: 0.8, a: 0.19999999}
|
||||||
|
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
|
||||||
|
m_BuildTextureStacks: []
|
@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: d738943a74c8fa245b6b54a59ae6b72d
|
||||||
|
NativeFormatImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
mainObjectFileID: 2100000
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
83
Samples~/GroceryStore/Models/Materials/292.mat
Normal file
83
Samples~/GroceryStore/Models/Materials/292.mat
Normal file
@ -0,0 +1,83 @@
|
|||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!21 &2100000
|
||||||
|
Material:
|
||||||
|
serializedVersion: 8
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_Name: 292
|
||||||
|
m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
|
||||||
|
m_Parent: {fileID: 0}
|
||||||
|
m_ModifiedSerializedProperties: 0
|
||||||
|
m_ValidKeywords: []
|
||||||
|
m_InvalidKeywords: []
|
||||||
|
m_LightmapFlags: 4
|
||||||
|
m_EnableInstancingVariants: 0
|
||||||
|
m_DoubleSidedGI: 0
|
||||||
|
m_CustomRenderQueue: -1
|
||||||
|
stringTagMap: {}
|
||||||
|
disabledShaderPasses: []
|
||||||
|
m_LockedProperties:
|
||||||
|
m_SavedProperties:
|
||||||
|
serializedVersion: 3
|
||||||
|
m_TexEnvs:
|
||||||
|
- _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}
|
||||||
|
m_Ints: []
|
||||||
|
m_Floats:
|
||||||
|
- _BumpScale: 1
|
||||||
|
- _Cutoff: 0.5
|
||||||
|
- _DetailNormalMapScale: 1
|
||||||
|
- _DstBlend: 0
|
||||||
|
- _GlossMapScale: 1
|
||||||
|
- _Glossiness: 0
|
||||||
|
- _GlossyReflections: 1
|
||||||
|
- _Metallic: 0
|
||||||
|
- _Mode: 0
|
||||||
|
- _OcclusionStrength: 1
|
||||||
|
- _Parallax: 0.02
|
||||||
|
- _SmoothnessTextureChannel: 0
|
||||||
|
- _SpecularHighlights: 1
|
||||||
|
- _SrcBlend: 1
|
||||||
|
- _UVSec: 0
|
||||||
|
- _ZWrite: 1
|
||||||
|
m_Colors:
|
||||||
|
- _Color: {r: 0.8, g: 0.8, b: 0.8, a: 1}
|
||||||
|
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
|
||||||
|
m_BuildTextureStacks: []
|
8
Samples~/GroceryStore/Models/Materials/292.mat.meta
Normal file
8
Samples~/GroceryStore/Models/Materials/292.mat.meta
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 74962581d4fb15f4bbbe5afa898ccb31
|
||||||
|
NativeFormatImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
mainObjectFileID: 2100000
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
83
Samples~/GroceryStore/Models/Materials/Bruidsuikers.mat
Normal file
83
Samples~/GroceryStore/Models/Materials/Bruidsuikers.mat
Normal file
@ -0,0 +1,83 @@
|
|||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!21 &2100000
|
||||||
|
Material:
|
||||||
|
serializedVersion: 8
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_Name: Bruidsuikers
|
||||||
|
m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
|
||||||
|
m_Parent: {fileID: 0}
|
||||||
|
m_ModifiedSerializedProperties: 0
|
||||||
|
m_ValidKeywords: []
|
||||||
|
m_InvalidKeywords: []
|
||||||
|
m_LightmapFlags: 4
|
||||||
|
m_EnableInstancingVariants: 0
|
||||||
|
m_DoubleSidedGI: 0
|
||||||
|
m_CustomRenderQueue: -1
|
||||||
|
stringTagMap: {}
|
||||||
|
disabledShaderPasses: []
|
||||||
|
m_LockedProperties:
|
||||||
|
m_SavedProperties:
|
||||||
|
serializedVersion: 3
|
||||||
|
m_TexEnvs:
|
||||||
|
- _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: 2800000, guid: b4b9d5940a482db4987ccf4b3fa47fed, type: 3}
|
||||||
|
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}
|
||||||
|
m_Ints: []
|
||||||
|
m_Floats:
|
||||||
|
- _BumpScale: 1
|
||||||
|
- _Cutoff: 0.5
|
||||||
|
- _DetailNormalMapScale: 1
|
||||||
|
- _DstBlend: 0
|
||||||
|
- _GlossMapScale: 1
|
||||||
|
- _Glossiness: 0
|
||||||
|
- _GlossyReflections: 1
|
||||||
|
- _Metallic: 0
|
||||||
|
- _Mode: 0
|
||||||
|
- _OcclusionStrength: 1
|
||||||
|
- _Parallax: 0.02
|
||||||
|
- _SmoothnessTextureChannel: 0
|
||||||
|
- _SpecularHighlights: 1
|
||||||
|
- _SrcBlend: 1
|
||||||
|
- _UVSec: 0
|
||||||
|
- _ZWrite: 1
|
||||||
|
m_Colors:
|
||||||
|
- _Color: {r: 0.8, g: 0.8, b: 0.8, a: 1}
|
||||||
|
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
|
||||||
|
m_BuildTextureStacks: []
|
@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: a4bcc9e4b3581bf47b18aa0b2b283e76
|
||||||
|
NativeFormatImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
mainObjectFileID: 2100000
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
83
Samples~/GroceryStore/Models/Materials/HopjesEtiket.mat
Normal file
83
Samples~/GroceryStore/Models/Materials/HopjesEtiket.mat
Normal file
@ -0,0 +1,83 @@
|
|||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!21 &2100000
|
||||||
|
Material:
|
||||||
|
serializedVersion: 8
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_Name: HopjesEtiket
|
||||||
|
m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
|
||||||
|
m_Parent: {fileID: 0}
|
||||||
|
m_ModifiedSerializedProperties: 0
|
||||||
|
m_ValidKeywords: []
|
||||||
|
m_InvalidKeywords: []
|
||||||
|
m_LightmapFlags: 4
|
||||||
|
m_EnableInstancingVariants: 0
|
||||||
|
m_DoubleSidedGI: 0
|
||||||
|
m_CustomRenderQueue: -1
|
||||||
|
stringTagMap: {}
|
||||||
|
disabledShaderPasses: []
|
||||||
|
m_LockedProperties:
|
||||||
|
m_SavedProperties:
|
||||||
|
serializedVersion: 3
|
||||||
|
m_TexEnvs:
|
||||||
|
- _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: 2800000, guid: 8f6c9d8dffa083b4995cf06c16e932fb, type: 3}
|
||||||
|
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}
|
||||||
|
m_Ints: []
|
||||||
|
m_Floats:
|
||||||
|
- _BumpScale: 1
|
||||||
|
- _Cutoff: 0.5
|
||||||
|
- _DetailNormalMapScale: 1
|
||||||
|
- _DstBlend: 0
|
||||||
|
- _GlossMapScale: 1
|
||||||
|
- _Glossiness: 0
|
||||||
|
- _GlossyReflections: 1
|
||||||
|
- _Metallic: 0
|
||||||
|
- _Mode: 0
|
||||||
|
- _OcclusionStrength: 1
|
||||||
|
- _Parallax: 0.02
|
||||||
|
- _SmoothnessTextureChannel: 0
|
||||||
|
- _SpecularHighlights: 1
|
||||||
|
- _SrcBlend: 1
|
||||||
|
- _UVSec: 0
|
||||||
|
- _ZWrite: 1
|
||||||
|
m_Colors:
|
||||||
|
- _Color: {r: 0.8, g: 0.8, b: 0.8, a: 1}
|
||||||
|
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
|
||||||
|
m_BuildTextureStacks: []
|
@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 6d76c0e4651be4d4e849acd0e450bedb
|
||||||
|
NativeFormatImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
mainObjectFileID: 2100000
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
83
Samples~/GroceryStore/Models/Materials/Mastersword.mat
Normal file
83
Samples~/GroceryStore/Models/Materials/Mastersword.mat
Normal file
@ -0,0 +1,83 @@
|
|||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!21 &2100000
|
||||||
|
Material:
|
||||||
|
serializedVersion: 8
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_Name: Mastersword
|
||||||
|
m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
|
||||||
|
m_Parent: {fileID: 0}
|
||||||
|
m_ModifiedSerializedProperties: 0
|
||||||
|
m_ValidKeywords: []
|
||||||
|
m_InvalidKeywords: []
|
||||||
|
m_LightmapFlags: 4
|
||||||
|
m_EnableInstancingVariants: 0
|
||||||
|
m_DoubleSidedGI: 0
|
||||||
|
m_CustomRenderQueue: -1
|
||||||
|
stringTagMap: {}
|
||||||
|
disabledShaderPasses: []
|
||||||
|
m_LockedProperties:
|
||||||
|
m_SavedProperties:
|
||||||
|
serializedVersion: 3
|
||||||
|
m_TexEnvs:
|
||||||
|
- _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}
|
||||||
|
m_Ints: []
|
||||||
|
m_Floats:
|
||||||
|
- _BumpScale: 1
|
||||||
|
- _Cutoff: 0.5
|
||||||
|
- _DetailNormalMapScale: 1
|
||||||
|
- _DstBlend: 0
|
||||||
|
- _GlossMapScale: 1
|
||||||
|
- _Glossiness: 0
|
||||||
|
- _GlossyReflections: 1
|
||||||
|
- _Metallic: 0
|
||||||
|
- _Mode: 0
|
||||||
|
- _OcclusionStrength: 1
|
||||||
|
- _Parallax: 0.02
|
||||||
|
- _SmoothnessTextureChannel: 0
|
||||||
|
- _SpecularHighlights: 1
|
||||||
|
- _SrcBlend: 1
|
||||||
|
- _UVSec: 0
|
||||||
|
- _ZWrite: 1
|
||||||
|
m_Colors:
|
||||||
|
- _Color: {r: 0.8, g: 0.8, b: 0.8, a: 1}
|
||||||
|
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
|
||||||
|
m_BuildTextureStacks: []
|
@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 63f1540a1bfc3f04c9298d3335d2598c
|
||||||
|
NativeFormatImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
mainObjectFileID: 2100000
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
83
Samples~/GroceryStore/Models/Materials/Metal_Rough.mat
Normal file
83
Samples~/GroceryStore/Models/Materials/Metal_Rough.mat
Normal file
@ -0,0 +1,83 @@
|
|||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!21 &2100000
|
||||||
|
Material:
|
||||||
|
serializedVersion: 8
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_Name: Metal_Rough
|
||||||
|
m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
|
||||||
|
m_Parent: {fileID: 0}
|
||||||
|
m_ModifiedSerializedProperties: 0
|
||||||
|
m_ValidKeywords: []
|
||||||
|
m_InvalidKeywords: []
|
||||||
|
m_LightmapFlags: 4
|
||||||
|
m_EnableInstancingVariants: 0
|
||||||
|
m_DoubleSidedGI: 0
|
||||||
|
m_CustomRenderQueue: -1
|
||||||
|
stringTagMap: {}
|
||||||
|
disabledShaderPasses: []
|
||||||
|
m_LockedProperties:
|
||||||
|
m_SavedProperties:
|
||||||
|
serializedVersion: 3
|
||||||
|
m_TexEnvs:
|
||||||
|
- _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: 2800000, guid: a308f430732a0554f96ffbff3bbf4856, type: 3}
|
||||||
|
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}
|
||||||
|
m_Ints: []
|
||||||
|
m_Floats:
|
||||||
|
- _BumpScale: 1
|
||||||
|
- _Cutoff: 0.5
|
||||||
|
- _DetailNormalMapScale: 1
|
||||||
|
- _DstBlend: 0
|
||||||
|
- _GlossMapScale: 1
|
||||||
|
- _Glossiness: 0
|
||||||
|
- _GlossyReflections: 1
|
||||||
|
- _Metallic: 0
|
||||||
|
- _Mode: 0
|
||||||
|
- _OcclusionStrength: 1
|
||||||
|
- _Parallax: 0.02
|
||||||
|
- _SmoothnessTextureChannel: 0
|
||||||
|
- _SpecularHighlights: 1
|
||||||
|
- _SrcBlend: 1
|
||||||
|
- _UVSec: 0
|
||||||
|
- _ZWrite: 1
|
||||||
|
m_Colors:
|
||||||
|
- _Color: {r: 0.8, g: 0.8, b: 0.8, a: 1}
|
||||||
|
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
|
||||||
|
m_BuildTextureStacks: []
|
@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 74a910ad018ea804db5435e02cf85927
|
||||||
|
NativeFormatImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
mainObjectFileID: 2100000
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
@ -0,0 +1,83 @@
|
|||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!21 &2100000
|
||||||
|
Material:
|
||||||
|
serializedVersion: 8
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_Name: Stoel-2-SUDCColor006
|
||||||
|
m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
|
||||||
|
m_Parent: {fileID: 0}
|
||||||
|
m_ModifiedSerializedProperties: 0
|
||||||
|
m_ValidKeywords: []
|
||||||
|
m_InvalidKeywords: []
|
||||||
|
m_LightmapFlags: 4
|
||||||
|
m_EnableInstancingVariants: 0
|
||||||
|
m_DoubleSidedGI: 0
|
||||||
|
m_CustomRenderQueue: -1
|
||||||
|
stringTagMap: {}
|
||||||
|
disabledShaderPasses: []
|
||||||
|
m_LockedProperties:
|
||||||
|
m_SavedProperties:
|
||||||
|
serializedVersion: 3
|
||||||
|
m_TexEnvs:
|
||||||
|
- _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}
|
||||||
|
m_Ints: []
|
||||||
|
m_Floats:
|
||||||
|
- _BumpScale: 1
|
||||||
|
- _Cutoff: 0.5
|
||||||
|
- _DetailNormalMapScale: 1
|
||||||
|
- _DstBlend: 0
|
||||||
|
- _GlossMapScale: 1
|
||||||
|
- _Glossiness: 0
|
||||||
|
- _GlossyReflections: 1
|
||||||
|
- _Metallic: 0
|
||||||
|
- _Mode: 0
|
||||||
|
- _OcclusionStrength: 1
|
||||||
|
- _Parallax: 0.02
|
||||||
|
- _SmoothnessTextureChannel: 0
|
||||||
|
- _SpecularHighlights: 1
|
||||||
|
- _SrcBlend: 1
|
||||||
|
- _UVSec: 0
|
||||||
|
- _ZWrite: 1
|
||||||
|
m_Colors:
|
||||||
|
- _Color: {r: 0.3372549, g: 0.3372549, b: 0.3372549, a: 1}
|
||||||
|
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
|
||||||
|
m_BuildTextureStacks: []
|
@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: a7a7c3fa88187a846912d00153f48d28
|
||||||
|
NativeFormatImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
mainObjectFileID: 2100000
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
@ -0,0 +1,83 @@
|
|||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!21 &2100000
|
||||||
|
Material:
|
||||||
|
serializedVersion: 8
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_Name: Wood_Cherry_Original
|
||||||
|
m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
|
||||||
|
m_Parent: {fileID: 0}
|
||||||
|
m_ModifiedSerializedProperties: 0
|
||||||
|
m_ValidKeywords: []
|
||||||
|
m_InvalidKeywords: []
|
||||||
|
m_LightmapFlags: 4
|
||||||
|
m_EnableInstancingVariants: 0
|
||||||
|
m_DoubleSidedGI: 0
|
||||||
|
m_CustomRenderQueue: -1
|
||||||
|
stringTagMap: {}
|
||||||
|
disabledShaderPasses: []
|
||||||
|
m_LockedProperties:
|
||||||
|
m_SavedProperties:
|
||||||
|
serializedVersion: 3
|
||||||
|
m_TexEnvs:
|
||||||
|
- _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: 2800000, guid: b3b3cec6cdccc554d800b01c8c3dbebd, type: 3}
|
||||||
|
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}
|
||||||
|
m_Ints: []
|
||||||
|
m_Floats:
|
||||||
|
- _BumpScale: 1
|
||||||
|
- _Cutoff: 0.5
|
||||||
|
- _DetailNormalMapScale: 1
|
||||||
|
- _DstBlend: 0
|
||||||
|
- _GlossMapScale: 1
|
||||||
|
- _Glossiness: 0
|
||||||
|
- _GlossyReflections: 1
|
||||||
|
- _Metallic: 0
|
||||||
|
- _Mode: 0
|
||||||
|
- _OcclusionStrength: 1
|
||||||
|
- _Parallax: 0.02
|
||||||
|
- _SmoothnessTextureChannel: 0
|
||||||
|
- _SpecularHighlights: 1
|
||||||
|
- _SrcBlend: 1
|
||||||
|
- _UVSec: 0
|
||||||
|
- _ZWrite: 1
|
||||||
|
m_Colors:
|
||||||
|
- _Color: {r: 0.8, g: 0.8, b: 0.8, a: 1}
|
||||||
|
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
|
||||||
|
m_BuildTextureStacks: []
|
@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 31f3e185fc9568b4fbed81fff446e742
|
||||||
|
NativeFormatImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
mainObjectFileID: 2100000
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,66 @@
|
|||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!850595691 &4890085278179872738
|
||||||
|
LightingSettings:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_Name: Grocery Store NetworkingSettings
|
||||||
|
serializedVersion: 6
|
||||||
|
m_GIWorkflowMode: 1
|
||||||
|
m_EnableBakedLightmaps: 1
|
||||||
|
m_EnableRealtimeLightmaps: 0
|
||||||
|
m_RealtimeEnvironmentLighting: 1
|
||||||
|
m_BounceScale: 1
|
||||||
|
m_AlbedoBoost: 1
|
||||||
|
m_IndirectOutputScale: 1
|
||||||
|
m_UsingShadowmask: 0
|
||||||
|
m_BakeBackend: 0
|
||||||
|
m_LightmapMaxSize: 1024
|
||||||
|
m_BakeResolution: 50
|
||||||
|
m_Padding: 2
|
||||||
|
m_LightmapCompression: 0
|
||||||
|
m_AO: 0
|
||||||
|
m_AOMaxDistance: 1
|
||||||
|
m_CompAOExponent: 0
|
||||||
|
m_CompAOExponentDirect: 0
|
||||||
|
m_ExtractAO: 0
|
||||||
|
m_MixedBakeMode: 1
|
||||||
|
m_LightmapsBakeMode: 1
|
||||||
|
m_FilterMode: 1
|
||||||
|
m_LightmapParameters: {fileID: 15204, guid: 0000000000000000f000000000000000, type: 0}
|
||||||
|
m_ExportTrainingData: 0
|
||||||
|
m_TrainingDataDestination: TrainingData
|
||||||
|
m_RealtimeResolution: 1
|
||||||
|
m_ForceWhiteAlbedo: 0
|
||||||
|
m_ForceUpdates: 0
|
||||||
|
m_FinalGather: 0
|
||||||
|
m_FinalGatherRayCount: 1024
|
||||||
|
m_FinalGatherFiltering: 1
|
||||||
|
m_PVRCulling: 1
|
||||||
|
m_PVRSampling: 1
|
||||||
|
m_PVRDirectSampleCount: 32
|
||||||
|
m_PVRSampleCount: 512
|
||||||
|
m_PVREnvironmentSampleCount: 512
|
||||||
|
m_PVREnvironmentReferencePointCount: 2048
|
||||||
|
m_LightProbeSampleCountMultiplier: 4
|
||||||
|
m_PVRBounces: 2
|
||||||
|
m_PVRMinBounces: 2
|
||||||
|
m_PVREnvironmentImportanceSampling: 0
|
||||||
|
m_PVRFilteringMode: 0
|
||||||
|
m_PVRDenoiserTypeDirect: 0
|
||||||
|
m_PVRDenoiserTypeIndirect: 0
|
||||||
|
m_PVRDenoiserTypeAO: 0
|
||||||
|
m_PVRFilterTypeDirect: 0
|
||||||
|
m_PVRFilterTypeIndirect: 0
|
||||||
|
m_PVRFilterTypeAO: 0
|
||||||
|
m_PVRFilteringGaussRadiusDirect: 1
|
||||||
|
m_PVRFilteringGaussRadiusIndirect: 5
|
||||||
|
m_PVRFilteringGaussRadiusAO: 2
|
||||||
|
m_PVRFilteringAtrousPositionSigmaDirect: 0.5
|
||||||
|
m_PVRFilteringAtrousPositionSigmaIndirect: 2
|
||||||
|
m_PVRFilteringAtrousPositionSigmaAO: 1
|
||||||
|
m_PVRTiledBaking: 0
|
||||||
|
m_NumRaysToShootPerTexel: -1
|
||||||
|
m_RespectSceneVisibilityWhenBakingGI: 0
|
@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 360497dd1bdaa874cbc44ba70ff5f50f
|
||||||
|
NativeFormatImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
mainObjectFileID: 4890085278179872738
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
@ -0,0 +1,66 @@
|
|||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!850595691 &4890085278179872738
|
||||||
|
LightingSettings:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_Name: GroceryStoreSettings
|
||||||
|
serializedVersion: 6
|
||||||
|
m_GIWorkflowMode: 1
|
||||||
|
m_EnableBakedLightmaps: 1
|
||||||
|
m_EnableRealtimeLightmaps: 0
|
||||||
|
m_RealtimeEnvironmentLighting: 1
|
||||||
|
m_BounceScale: 1
|
||||||
|
m_AlbedoBoost: 1
|
||||||
|
m_IndirectOutputScale: 1
|
||||||
|
m_UsingShadowmask: 0
|
||||||
|
m_BakeBackend: 0
|
||||||
|
m_LightmapMaxSize: 1024
|
||||||
|
m_BakeResolution: 50
|
||||||
|
m_Padding: 2
|
||||||
|
m_LightmapCompression: 0
|
||||||
|
m_AO: 0
|
||||||
|
m_AOMaxDistance: 1
|
||||||
|
m_CompAOExponent: 0
|
||||||
|
m_CompAOExponentDirect: 0
|
||||||
|
m_ExtractAO: 0
|
||||||
|
m_MixedBakeMode: 1
|
||||||
|
m_LightmapsBakeMode: 1
|
||||||
|
m_FilterMode: 1
|
||||||
|
m_LightmapParameters: {fileID: 15204, guid: 0000000000000000f000000000000000, type: 0}
|
||||||
|
m_ExportTrainingData: 0
|
||||||
|
m_TrainingDataDestination: TrainingData
|
||||||
|
m_RealtimeResolution: 1
|
||||||
|
m_ForceWhiteAlbedo: 0
|
||||||
|
m_ForceUpdates: 0
|
||||||
|
m_FinalGather: 0
|
||||||
|
m_FinalGatherRayCount: 1024
|
||||||
|
m_FinalGatherFiltering: 1
|
||||||
|
m_PVRCulling: 1
|
||||||
|
m_PVRSampling: 1
|
||||||
|
m_PVRDirectSampleCount: 32
|
||||||
|
m_PVRSampleCount: 512
|
||||||
|
m_PVREnvironmentSampleCount: 512
|
||||||
|
m_PVREnvironmentReferencePointCount: 2048
|
||||||
|
m_LightProbeSampleCountMultiplier: 4
|
||||||
|
m_PVRBounces: 2
|
||||||
|
m_PVRMinBounces: 2
|
||||||
|
m_PVREnvironmentImportanceSampling: 0
|
||||||
|
m_PVRFilteringMode: 0
|
||||||
|
m_PVRDenoiserTypeDirect: 0
|
||||||
|
m_PVRDenoiserTypeIndirect: 0
|
||||||
|
m_PVRDenoiserTypeAO: 0
|
||||||
|
m_PVRFilterTypeDirect: 0
|
||||||
|
m_PVRFilterTypeIndirect: 0
|
||||||
|
m_PVRFilterTypeAO: 0
|
||||||
|
m_PVRFilteringGaussRadiusDirect: 1
|
||||||
|
m_PVRFilteringGaussRadiusIndirect: 5
|
||||||
|
m_PVRFilteringGaussRadiusAO: 2
|
||||||
|
m_PVRFilteringAtrousPositionSigmaDirect: 0.5
|
||||||
|
m_PVRFilteringAtrousPositionSigmaIndirect: 2
|
||||||
|
m_PVRFilteringAtrousPositionSigmaAO: 1
|
||||||
|
m_PVRTiledBaking: 0
|
||||||
|
m_NumRaysToShootPerTexel: -1
|
||||||
|
m_RespectSceneVisibilityWhenBakingGI: 0
|
@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 40a362fc60d5cd044b8c2dbacd78c53c
|
||||||
|
NativeFormatImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
mainObjectFileID: 4890085278179872738
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
66
Samples~/VisitorsAndSites/Sites/ObjectTableSettings.lighting
Normal file
66
Samples~/VisitorsAndSites/Sites/ObjectTableSettings.lighting
Normal file
@ -0,0 +1,66 @@
|
|||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!850595691 &4890085278179872738
|
||||||
|
LightingSettings:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_Name: ObjectTableSettings
|
||||||
|
serializedVersion: 6
|
||||||
|
m_GIWorkflowMode: 0
|
||||||
|
m_EnableBakedLightmaps: 1
|
||||||
|
m_EnableRealtimeLightmaps: 1
|
||||||
|
m_RealtimeEnvironmentLighting: 1
|
||||||
|
m_BounceScale: 1
|
||||||
|
m_AlbedoBoost: 1
|
||||||
|
m_IndirectOutputScale: 1
|
||||||
|
m_UsingShadowmask: 0
|
||||||
|
m_BakeBackend: 0
|
||||||
|
m_LightmapMaxSize: 1024
|
||||||
|
m_BakeResolution: 40
|
||||||
|
m_Padding: 2
|
||||||
|
m_LightmapCompression: 3
|
||||||
|
m_AO: 0
|
||||||
|
m_AOMaxDistance: 1
|
||||||
|
m_CompAOExponent: 1
|
||||||
|
m_CompAOExponentDirect: 0
|
||||||
|
m_ExtractAO: 0
|
||||||
|
m_MixedBakeMode: 1
|
||||||
|
m_LightmapsBakeMode: 1
|
||||||
|
m_FilterMode: 1
|
||||||
|
m_LightmapParameters: {fileID: 15204, guid: 0000000000000000f000000000000000, type: 0}
|
||||||
|
m_ExportTrainingData: 0
|
||||||
|
m_TrainingDataDestination: TrainingData
|
||||||
|
m_RealtimeResolution: 2
|
||||||
|
m_ForceWhiteAlbedo: 0
|
||||||
|
m_ForceUpdates: 0
|
||||||
|
m_FinalGather: 0
|
||||||
|
m_FinalGatherRayCount: 256
|
||||||
|
m_FinalGatherFiltering: 1
|
||||||
|
m_PVRCulling: 1
|
||||||
|
m_PVRSampling: 1
|
||||||
|
m_PVRDirectSampleCount: 32
|
||||||
|
m_PVRSampleCount: 512
|
||||||
|
m_PVREnvironmentSampleCount: 512
|
||||||
|
m_PVREnvironmentReferencePointCount: 2048
|
||||||
|
m_LightProbeSampleCountMultiplier: 4
|
||||||
|
m_PVRBounces: 2
|
||||||
|
m_PVRMinBounces: 2
|
||||||
|
m_PVREnvironmentImportanceSampling: 0
|
||||||
|
m_PVRFilteringMode: 0
|
||||||
|
m_PVRDenoiserTypeDirect: 0
|
||||||
|
m_PVRDenoiserTypeIndirect: 0
|
||||||
|
m_PVRDenoiserTypeAO: 0
|
||||||
|
m_PVRFilterTypeDirect: 0
|
||||||
|
m_PVRFilterTypeIndirect: 0
|
||||||
|
m_PVRFilterTypeAO: 0
|
||||||
|
m_PVRFilteringGaussRadiusDirect: 1
|
||||||
|
m_PVRFilteringGaussRadiusIndirect: 5
|
||||||
|
m_PVRFilteringGaussRadiusAO: 2
|
||||||
|
m_PVRFilteringAtrousPositionSigmaDirect: 0.5
|
||||||
|
m_PVRFilteringAtrousPositionSigmaIndirect: 2
|
||||||
|
m_PVRFilteringAtrousPositionSigmaAO: 1
|
||||||
|
m_PVRTiledBaking: 0
|
||||||
|
m_NumRaysToShootPerTexel: -1
|
||||||
|
m_RespectSceneVisibilityWhenBakingGI: 0
|
@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: bf01e426f6f583d4a9c31f0f38e1f606
|
||||||
|
NativeFormatImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
mainObjectFileID: 4890085278179872738
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
@ -1,44 +1,49 @@
|
|||||||
using System;
|
using System;
|
||||||
|
using System.IO;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
using UnityEngine.TestTools;
|
using UnityEngine.TestTools;
|
||||||
|
|
||||||
#if pHUMANOID4
|
#if pHUMANOID4
|
||||||
using NUnit.Framework;
|
using NUnit.Framework;
|
||||||
using Passer;
|
|
||||||
|
|
||||||
namespace Passer {
|
namespace Passer {
|
||||||
using Pawn;
|
|
||||||
using Humanoid;
|
using Humanoid;
|
||||||
|
|
||||||
public class GrabbingTest : IPrebuildSetup {
|
public class GrabbingTest : IPrebuildSetup {
|
||||||
|
|
||||||
public void Setup() {
|
public void Setup() {
|
||||||
UnityEditor.SceneManagement.EditorSceneManager.OpenScene("[Test]GrabbingHumanoid.unity");
|
string testSceneName = "[Test]GrabbingHumanoid.unity";
|
||||||
|
string[] files = Directory.GetFiles(Application.dataPath, testSceneName, SearchOption.AllDirectories);
|
||||||
|
if (files.Length == 1) {
|
||||||
|
// strip dataPath
|
||||||
|
string file = files[0].Substring(Application.dataPath.Length - 6);
|
||||||
|
UnityEditor.SceneManagement.EditorSceneManager.OpenScene(file);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
Debug.LogError($"Could not find test scene {testSceneName}");
|
||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
public void Rigidbody() {
|
public void Rigidbody() {
|
||||||
// Can be grabbed on any place on the mesh.
|
// Can be grabbed on any place on the mesh.
|
||||||
try {
|
HumanoidControl humanoid = UnityEngine.Object.FindObjectOfType<HumanoidControl>();
|
||||||
HumanoidControl humanoid = UnityEngine.Object.FindObjectOfType<HumanoidControl>();
|
|
||||||
|
|
||||||
GameObject obj = GameObject.Find("CubeRigidbody");
|
GameObject obj = GameObject.Find("CubeRigidbody");
|
||||||
Assert.IsFalse(obj == null);
|
Assert.IsFalse(obj == null);
|
||||||
|
|
||||||
#region Grab
|
#region Grab
|
||||||
GameObject grabbedObject = Grab(humanoid, obj);
|
|
||||||
Assert.AreEqual(grabbedObject, obj, "Object is not grabbed");
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
#region LetGo
|
GameObject grabbedObject = Grab(humanoid, obj, false);
|
||||||
grabbedObject = LetGo(humanoid);
|
Assert.AreEqual(grabbedObject, obj, "Object is not grabbed");
|
||||||
Assert.IsTrue(grabbedObject == null, "Object is not released");
|
|
||||||
#endregion
|
#endregion
|
||||||
}
|
|
||||||
catch (Exception e) {
|
#region LetGo
|
||||||
Debug.LogError("Test failed");
|
|
||||||
throw (e);
|
grabbedObject = LetGo(humanoid);
|
||||||
}
|
Assert.IsTrue(grabbedObject == null, "Object is not released");
|
||||||
|
|
||||||
|
#endregion
|
||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
@ -55,7 +60,7 @@ namespace Passer {
|
|||||||
|
|
||||||
#region Grab
|
#region Grab
|
||||||
|
|
||||||
GameObject grabbedObject = Grab(humanoid, obj);
|
GameObject grabbedObject = Grab(humanoid, obj, false);
|
||||||
Assert.AreEqual(grabbedObject, obj);
|
Assert.AreEqual(grabbedObject, obj);
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
@ -74,144 +79,118 @@ namespace Passer {
|
|||||||
[Test]
|
[Test]
|
||||||
public void KinematicRigidbodyWithoutPhysics() {
|
public void KinematicRigidbodyWithoutPhysics() {
|
||||||
// the controller holds the Rigidbody.
|
// the controller holds the Rigidbody.
|
||||||
try {
|
HumanoidControl humanoid = UnityEngine.Object.FindObjectOfType<HumanoidControl>();
|
||||||
HumanoidControl humanoid = UnityEngine.Object.FindObjectOfType<HumanoidControl>();
|
humanoid.leftHandTarget.physics = false;
|
||||||
humanoid.leftHandTarget.physics = false;
|
|
||||||
|
|
||||||
GameObject obj = GameObject.Find("KinematicCube");
|
GameObject obj = GameObject.Find("KinematicCube");
|
||||||
Assert.IsFalse(obj == null);
|
Assert.IsFalse(obj == null);
|
||||||
|
|
||||||
#region Grab
|
#region Grab
|
||||||
GameObject grabbedObject = Grab(humanoid, obj);
|
GameObject grabbedObject = Grab(humanoid, obj, false);
|
||||||
Assert.AreEqual(grabbedObject, obj);
|
Assert.AreEqual(grabbedObject, obj);
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region LetGo
|
#region LetGo
|
||||||
grabbedObject = LetGo(humanoid);
|
grabbedObject = LetGo(humanoid);
|
||||||
Assert.IsTrue(grabbedObject == null);
|
Assert.IsTrue(grabbedObject == null);
|
||||||
#endregion
|
#endregion
|
||||||
}
|
|
||||||
catch (Exception e) {
|
|
||||||
Debug.LogError("Test failed");
|
|
||||||
throw (e);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
public void KinematicRigidbodyWithPhysics() {
|
public void KinematicRigidbodyWithPhysics() {
|
||||||
// the Rigidbody will move the controller.
|
// the Rigidbody will move the controller.
|
||||||
try {
|
HumanoidControl humanoid = UnityEngine.Object.FindObjectOfType<HumanoidControl>();
|
||||||
HumanoidControl humanoid = UnityEngine.Object.FindObjectOfType<HumanoidControl>();
|
humanoid.leftHandTarget.physics = true;
|
||||||
humanoid.leftHandTarget.physics = true;
|
|
||||||
|
|
||||||
GameObject obj = GameObject.Find("KinematicCube");
|
GameObject obj = GameObject.Find("KinematicCube");
|
||||||
Assert.IsFalse(obj == null);
|
Assert.IsFalse(obj == null);
|
||||||
|
|
||||||
#region Grab
|
#region Grab
|
||||||
GameObject grabbedObject = Grab(humanoid, obj);
|
GameObject grabbedObject = Grab(humanoid, obj, false);
|
||||||
Assert.AreEqual(grabbedObject, obj);
|
Assert.AreEqual(grabbedObject, obj);
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region LetGo
|
#region LetGo
|
||||||
grabbedObject = LetGo(humanoid);
|
grabbedObject = LetGo(humanoid);
|
||||||
Assert.IsTrue(grabbedObject == null);
|
Assert.IsTrue(grabbedObject == null);
|
||||||
#endregion
|
#endregion
|
||||||
}
|
|
||||||
catch (Exception e) {
|
|
||||||
Debug.LogError("Test failed");
|
|
||||||
throw (e);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
public void KinematicRigidbodyLimitations() {
|
public void KinematicRigidbodyLimitations() {
|
||||||
// the Rigidbody will move the controller.
|
// the Rigidbody will move the controller.
|
||||||
try {
|
HumanoidControl humanoid = UnityEngine.Object.FindObjectOfType<HumanoidControl>();
|
||||||
HumanoidControl humanoid = UnityEngine.Object.FindObjectOfType<HumanoidControl>();
|
|
||||||
|
|
||||||
GameObject obj = GameObject.Find("KinematicCubeLimitations");
|
GameObject obj = GameObject.Find("MechanicalJointCube");
|
||||||
Assert.IsFalse(obj == null);
|
Assert.IsFalse(obj == null);
|
||||||
|
|
||||||
#region Grab
|
#region Grab
|
||||||
GameObject grabbedObject = Grab(humanoid, obj);
|
|
||||||
Assert.AreEqual(grabbedObject, obj);
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
#region LetGo
|
GameObject grabbedObject = Grab(humanoid, obj, false);
|
||||||
grabbedObject = LetGo(humanoid);
|
Assert.AreEqual(grabbedObject, obj);
|
||||||
Assert.IsTrue(grabbedObject == null);
|
|
||||||
#endregion
|
#endregion
|
||||||
}
|
|
||||||
catch (Exception e) {
|
#region LetGo
|
||||||
Debug.LogError("Test failed");
|
|
||||||
throw (e);
|
grabbedObject = LetGo(humanoid);
|
||||||
}
|
Assert.IsTrue(grabbedObject == null);
|
||||||
|
|
||||||
|
#endregion
|
||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
public void StaticObject() {
|
public void StaticObject() {
|
||||||
// Static object can not be grabbed
|
// Static object can not be grabbed
|
||||||
try {
|
HumanoidControl humanoid = UnityEngine.Object.FindObjectOfType<HumanoidControl>();
|
||||||
HumanoidControl humanoid = UnityEngine.Object.FindObjectOfType<HumanoidControl>();
|
|
||||||
|
|
||||||
GameObject obj = GameObject.Find("StaticCube");
|
GameObject obj = GameObject.Find("StaticCube");
|
||||||
Assert.IsFalse(obj == null);
|
Assert.IsFalse(obj == null);
|
||||||
|
|
||||||
#region Grab
|
#region Grab
|
||||||
GameObject grabbedObject = Grab(humanoid, obj);
|
GameObject grabbedObject = Grab(humanoid, obj, false);
|
||||||
Assert.IsTrue(grabbedObject == null);
|
Assert.IsTrue(grabbedObject == null);
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region LetGo
|
#region LetGo
|
||||||
grabbedObject = LetGo(humanoid);
|
grabbedObject = LetGo(humanoid);
|
||||||
Assert.IsTrue(grabbedObject == null);
|
Assert.IsTrue(grabbedObject == null);
|
||||||
#endregion
|
#endregion
|
||||||
}
|
|
||||||
catch (Exception e) {
|
|
||||||
Debug.LogError("Test failed");
|
|
||||||
throw (e);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
public void StaticObjectHandle() {
|
public void StaticObjectHandle() {
|
||||||
// Can be grabbed but cannot move.
|
// Can be grabbed but cannot move.
|
||||||
// When Body Pull is enabled, the position of the pawn will move.
|
// When Body Pull is enabled, the position of the pawn will move.
|
||||||
try {
|
HumanoidControl humanoid = UnityEngine.Object.FindObjectOfType<HumanoidControl>();
|
||||||
HumanoidControl humanoid = UnityEngine.Object.FindObjectOfType<HumanoidControl>();
|
|
||||||
|
|
||||||
GameObject obj = GameObject.Find("StaticCubeWithHandle");
|
GameObject obj = GameObject.Find("StaticCubeWithHandle");
|
||||||
Assert.IsFalse(obj == null);
|
Assert.IsFalse(obj == null);
|
||||||
|
|
||||||
Handle handle = obj.GetComponentInChildren<Handle>();
|
Handle handle = obj.GetComponentInChildren<Handle>();
|
||||||
Assert.IsFalse(handle == null);
|
Assert.IsFalse(handle == null);
|
||||||
|
|
||||||
#region Grab
|
#region Grab
|
||||||
GameObject grabbedObject = Grab(humanoid, obj);
|
GameObject grabbedObject = Grab(humanoid, obj, false);
|
||||||
Assert.AreEqual(grabbedObject, handle.gameObject);
|
Assert.AreEqual(grabbedObject, handle.gameObject);
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region LetGo
|
#region LetGo
|
||||||
grabbedObject = LetGo(humanoid);
|
grabbedObject = LetGo(humanoid);
|
||||||
Assert.IsTrue(grabbedObject == null);
|
Assert.IsTrue(grabbedObject == null);
|
||||||
#endregion
|
#endregion
|
||||||
}
|
|
||||||
catch (Exception e) {
|
|
||||||
Debug.LogError("Test failed");
|
|
||||||
throw (e);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#region Utilities
|
#region Utilities
|
||||||
|
|
||||||
protected GameObject Grab(HumanoidControl humanoid, GameObject obj) {
|
protected GameObject Grab(HumanoidControl humanoid, GameObject obj, bool rangeCheck = true) {
|
||||||
humanoid.leftHandTarget.Grab(obj);
|
humanoid.leftHandTarget.Grab(obj, rangeCheck);
|
||||||
return humanoid.leftHandTarget.grabbedObject;
|
return humanoid.leftHandTarget.grabbedObject;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected GameObject LetGo(HumanoidControl humanoid) {
|
protected GameObject LetGo(HumanoidControl humanoid) {
|
||||||
humanoid.leftHandTarget.LetGo();
|
humanoid.leftHandTarget.LetGo();
|
||||||
return humanoid.leftHandTarget.grabbedObject;
|
return humanoid.leftHandTarget.grabbedObject;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
66
Tests/Editor/Humanoid/HumanoidControlTestSettings.lighting
Normal file
66
Tests/Editor/Humanoid/HumanoidControlTestSettings.lighting
Normal file
@ -0,0 +1,66 @@
|
|||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!850595691 &4890085278179872738
|
||||||
|
LightingSettings:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_Name: HumanoidControlTestSettings
|
||||||
|
serializedVersion: 6
|
||||||
|
m_GIWorkflowMode: 1
|
||||||
|
m_EnableBakedLightmaps: 1
|
||||||
|
m_EnableRealtimeLightmaps: 1
|
||||||
|
m_RealtimeEnvironmentLighting: 1
|
||||||
|
m_BounceScale: 1
|
||||||
|
m_AlbedoBoost: 1
|
||||||
|
m_IndirectOutputScale: 1
|
||||||
|
m_UsingShadowmask: 0
|
||||||
|
m_BakeBackend: 0
|
||||||
|
m_LightmapMaxSize: 1024
|
||||||
|
m_BakeResolution: 40
|
||||||
|
m_Padding: 2
|
||||||
|
m_LightmapCompression: 3
|
||||||
|
m_AO: 0
|
||||||
|
m_AOMaxDistance: 1
|
||||||
|
m_CompAOExponent: 1
|
||||||
|
m_CompAOExponentDirect: 0
|
||||||
|
m_ExtractAO: 0
|
||||||
|
m_MixedBakeMode: 1
|
||||||
|
m_LightmapsBakeMode: 1
|
||||||
|
m_FilterMode: 1
|
||||||
|
m_LightmapParameters: {fileID: 15204, guid: 0000000000000000f000000000000000, type: 0}
|
||||||
|
m_ExportTrainingData: 0
|
||||||
|
m_TrainingDataDestination: TrainingData
|
||||||
|
m_RealtimeResolution: 2
|
||||||
|
m_ForceWhiteAlbedo: 0
|
||||||
|
m_ForceUpdates: 0
|
||||||
|
m_FinalGather: 0
|
||||||
|
m_FinalGatherRayCount: 256
|
||||||
|
m_FinalGatherFiltering: 1
|
||||||
|
m_PVRCulling: 1
|
||||||
|
m_PVRSampling: 1
|
||||||
|
m_PVRDirectSampleCount: 32
|
||||||
|
m_PVRSampleCount: 512
|
||||||
|
m_PVREnvironmentSampleCount: 512
|
||||||
|
m_PVREnvironmentReferencePointCount: 2048
|
||||||
|
m_LightProbeSampleCountMultiplier: 4
|
||||||
|
m_PVRBounces: 2
|
||||||
|
m_PVRMinBounces: 2
|
||||||
|
m_PVREnvironmentImportanceSampling: 0
|
||||||
|
m_PVRFilteringMode: 0
|
||||||
|
m_PVRDenoiserTypeDirect: 0
|
||||||
|
m_PVRDenoiserTypeIndirect: 0
|
||||||
|
m_PVRDenoiserTypeAO: 0
|
||||||
|
m_PVRFilterTypeDirect: 0
|
||||||
|
m_PVRFilterTypeIndirect: 0
|
||||||
|
m_PVRFilterTypeAO: 0
|
||||||
|
m_PVRFilteringGaussRadiusDirect: 1
|
||||||
|
m_PVRFilteringGaussRadiusIndirect: 5
|
||||||
|
m_PVRFilteringGaussRadiusAO: 2
|
||||||
|
m_PVRFilteringAtrousPositionSigmaDirect: 0.5
|
||||||
|
m_PVRFilteringAtrousPositionSigmaIndirect: 2
|
||||||
|
m_PVRFilteringAtrousPositionSigmaAO: 1
|
||||||
|
m_PVRTiledBaking: 0
|
||||||
|
m_NumRaysToShootPerTexel: -1
|
||||||
|
m_RespectSceneVisibilityWhenBakingGI: 0
|
@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 568f76e06cc66a740a2bec6e81f79476
|
||||||
|
NativeFormatImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
mainObjectFileID: 4890085278179872738
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
@ -1,4 +1,5 @@
|
|||||||
using System;
|
using System;
|
||||||
|
using System.IO;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
using UnityEngine.TestTools;
|
using UnityEngine.TestTools;
|
||||||
|
|
||||||
@ -9,12 +10,16 @@ namespace Passer {
|
|||||||
|
|
||||||
public class SocketTest : IPrebuildSetup {
|
public class SocketTest : IPrebuildSetup {
|
||||||
|
|
||||||
public static string testScene = "Sockets";
|
|
||||||
|
|
||||||
public void Setup() {
|
public void Setup() {
|
||||||
Debug.Log("Setup SocketTest");
|
string testSceneName = "[Test]Sockets.unity";
|
||||||
UnityEditor.SceneManagement.EditorSceneManager.OpenScene(
|
string[] files = Directory.GetFiles(Application.dataPath, testSceneName, SearchOption.AllDirectories);
|
||||||
"Assets/_TestCases/[Test]" + testScene + ".unity");
|
if (files.Length == 1) {
|
||||||
|
// strip dataPath
|
||||||
|
string file = files[0].Substring(Application.dataPath.Length - 6);
|
||||||
|
UnityEditor.SceneManagement.EditorSceneManager.OpenScene(file);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
Debug.LogError($"Could not find test scene {testSceneName}");
|
||||||
}
|
}
|
||||||
|
|
||||||
#region Static Socket
|
#region Static Socket
|
||||||
@ -22,162 +27,142 @@ namespace Passer {
|
|||||||
[Category("Socket")]
|
[Category("Socket")]
|
||||||
public void StaticSocket_RigidbodyHandle() {
|
public void StaticSocket_RigidbodyHandle() {
|
||||||
// Rigidbody handles will get a fixed joint without attachedRigidbody
|
// Rigidbody handles will get a fixed joint without attachedRigidbody
|
||||||
try {
|
GameObject socketObj = GameObject.Find("StaticSocket");
|
||||||
|
Socket socket = socketObj.GetComponent<Socket>();
|
||||||
|
Assert.IsFalse(socket == null);
|
||||||
|
|
||||||
GameObject socketObj = GameObject.Find("StaticSocket");
|
GameObject handleObj = GameObject.Find("RigidbodyHandle");
|
||||||
Socket socket = socketObj.GetComponent<Socket>();
|
Handle handle = handleObj.GetComponent<Handle>();
|
||||||
Assert.IsFalse(socket == null);
|
Assert.IsFalse(handle == null);
|
||||||
|
|
||||||
GameObject handleObj = GameObject.Find("RigidbodyHandle");
|
socket.transform.localPosition = Vector3.zero;
|
||||||
Handle handle = handleObj.GetComponent<Handle>();
|
handle.transform.localPosition = Vector3.zero;
|
||||||
Assert.IsFalse(handle == null);
|
|
||||||
|
|
||||||
socket.transform.localPosition = Vector3.zero;
|
Transform socketParent = socket.transform.parent;
|
||||||
handle.transform.localPosition = Vector3.zero;
|
Transform handleParent = handle.transform.parent;
|
||||||
|
|
||||||
Transform socketParent = socket.transform.parent;
|
Vector3 socketPosition = socket.transform.position;
|
||||||
Transform handleParent = handle.transform.parent;
|
Vector3 handlePosition = handle.transform.position;
|
||||||
|
|
||||||
Vector3 socketPosition = socket.transform.position;
|
#region Attach
|
||||||
Vector3 handlePosition = handle.transform.position;
|
socket.Attach(handle.transform, false);
|
||||||
|
|
||||||
#region Attach
|
Joint joint = handle.GetComponent<Joint>();
|
||||||
socket.Attach(handle.transform, false);
|
Assert.IsTrue(joint != null);
|
||||||
|
|
||||||
Joint joint = handle.GetComponent<Joint>();
|
Assert.AreEqual(socket.attachedTransform, handle.transform);
|
||||||
Assert.IsTrue(joint != null);
|
Assert.AreNotEqual(handle.transform.parent, socket.transform);
|
||||||
|
|
||||||
Assert.AreEqual(socket.attachedTransform, handle.transform);
|
// Handle should be at socket position
|
||||||
Assert.AreNotEqual(handle.transform.parent, socket.transform);
|
float distance = Vector3.Distance(socket.transform.position, handle.transform.position);
|
||||||
|
Assert.Less(distance, 0.0001F);
|
||||||
|
// Socket should not have moved
|
||||||
|
distance = Vector3.Distance(socketPosition, socket.transform.position);
|
||||||
|
Assert.Less(distance, 0.0001F);
|
||||||
|
#endregion
|
||||||
|
|
||||||
// Handle should be at socket position
|
#region Release
|
||||||
float distance = Vector3.Distance(socket.transform.position, handle.transform.position);
|
socket.Release();
|
||||||
Assert.Less(distance, 0.0001F);
|
|
||||||
// Socket should not have moved
|
|
||||||
distance = Vector3.Distance(socketPosition, socket.transform.position);
|
|
||||||
Assert.Less(distance, 0.0001F);
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
#region Release
|
Assert.IsTrue(socket.attachedTransform == null);
|
||||||
socket.Release();
|
Assert.AreNotEqual(handle.transform.parent, socket.transform);
|
||||||
|
|
||||||
Assert.IsTrue(socket.attachedTransform == null);
|
// Handle should still be at socket position
|
||||||
Assert.AreNotEqual(handle.transform.parent, socket.transform);
|
distance = Vector3.Distance(socket.transform.position, handle.transform.position);
|
||||||
|
Assert.Less(distance, 0.0001F);
|
||||||
// Handle should still be at socket position
|
#endregion
|
||||||
distance = Vector3.Distance(socket.transform.position, handle.transform.position);
|
|
||||||
Assert.Less(distance, 0.0001F);
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
}
|
|
||||||
catch (Exception e) {
|
|
||||||
Debug.LogError("Test failed");
|
|
||||||
throw (e);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
[Category("Socket")]
|
[Category("Socket")]
|
||||||
public void StaticSocket_StaticHandle() {
|
public void StaticSocket_StaticHandle() {
|
||||||
// Static Handles cannot be attached to static sockets
|
// Static Handles cannot be attached to static sockets
|
||||||
try {
|
GameObject socketObj = GameObject.Find("StaticSocket");
|
||||||
GameObject socketObj = GameObject.Find("StaticSocket");
|
Socket socket = socketObj.GetComponent<Socket>();
|
||||||
Socket socket = socketObj.GetComponent<Socket>();
|
Assert.IsTrue(socket != null);
|
||||||
Assert.IsTrue(socket != null);
|
|
||||||
|
|
||||||
GameObject handleObj = GameObject.Find("StaticHandle");
|
GameObject handleObj = GameObject.Find("StaticHandle");
|
||||||
Handle handle = handleObj.GetComponent<Handle>();
|
Handle handle = handleObj.GetComponent<Handle>();
|
||||||
Assert.IsTrue(handle != null);
|
Assert.IsTrue(handle != null);
|
||||||
|
|
||||||
Transform socketParent = socket.transform.parent;
|
Transform socketParent = socket.transform.parent;
|
||||||
Transform handleParent = handle.transform.parent;
|
Transform handleParent = handle.transform.parent;
|
||||||
|
|
||||||
Vector3 socketPosition = socket.transform.position;
|
Vector3 socketPosition = socket.transform.position;
|
||||||
Vector3 handlePosition = handle.transform.position;
|
Vector3 handlePosition = handle.transform.position;
|
||||||
|
|
||||||
#region Attach
|
#region Attach
|
||||||
socket.Attach(handle.transform, false);
|
socket.Attach(handle.transform, false);
|
||||||
|
|
||||||
Assert.IsTrue(socket.attachedTransform == null);
|
Assert.IsTrue(socket.attachedTransform == null);
|
||||||
|
|
||||||
// Handle should not have moved
|
// Handle should not have moved
|
||||||
float distance = Vector3.Distance(handle.transform.position, handlePosition);
|
float distance = Vector3.Distance(handle.transform.position, handlePosition);
|
||||||
Assert.Less(distance, 0.0001F);
|
Assert.Less(distance, 0.0001F);
|
||||||
// Socket should not have moved
|
// Socket should not have moved
|
||||||
distance = Vector3.Distance(socket.transform.position, socketPosition);
|
distance = Vector3.Distance(socket.transform.position, socketPosition);
|
||||||
Assert.Less(distance, 0.0001F);
|
Assert.Less(distance, 0.0001F);
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region Release
|
#region Release
|
||||||
socket.Release();
|
socket.Release();
|
||||||
|
|
||||||
Assert.IsTrue(socket.attachedTransform == null);
|
Assert.IsTrue(socket.attachedTransform == null);
|
||||||
|
|
||||||
// Handle should not have moved
|
// Handle should not have moved
|
||||||
Assert.Less(Vector3.Distance(handle.transform.position, handlePosition), 0.0001F);
|
Assert.Less(Vector3.Distance(handle.transform.position, handlePosition), 0.0001F);
|
||||||
// Socket should not have moved
|
// Socket should not have moved
|
||||||
Assert.Less(Vector3.Distance(socket.transform.position, socketPosition), 0.0001F);
|
Assert.Less(Vector3.Distance(socket.transform.position, socketPosition), 0.0001F);
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
socket.transform.localPosition = Vector3.zero;
|
socket.transform.localPosition = Vector3.zero;
|
||||||
handle.transform.localPosition = Vector3.zero;
|
handle.transform.localPosition = Vector3.zero;
|
||||||
}
|
|
||||||
catch (Exception e) {
|
|
||||||
Debug.LogError("Test failed");
|
|
||||||
throw (e);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
[Category("Socket")]
|
[Category("Socket")]
|
||||||
public void StaticSocket_KinematicHandle() {
|
public void StaticSocket_KinematicHandle() {
|
||||||
// Kinematic Handles should be parented to the socket
|
// Kinematic Handles should be parented to the socket
|
||||||
try {
|
GameObject socketObj = GameObject.Find("StaticSocket");
|
||||||
GameObject socketObj = GameObject.Find("StaticSocket");
|
Socket socket = socketObj.GetComponent<Socket>();
|
||||||
Socket socket = socketObj.GetComponent<Socket>();
|
|
||||||
|
|
||||||
Assert.IsTrue(socket != null);
|
Assert.IsTrue(socket != null);
|
||||||
|
|
||||||
GameObject handleObj = GameObject.Find("KinematicHandle");
|
GameObject handleObj = GameObject.Find("KinematicHandle");
|
||||||
Handle handle = handleObj.GetComponent<Handle>();
|
Handle handle = handleObj.GetComponent<Handle>();
|
||||||
Assert.IsTrue(handle != null);
|
Assert.IsTrue(handle != null);
|
||||||
|
|
||||||
Transform socketParent = socket.transform.parent;
|
Transform socketParent = socket.transform.parent;
|
||||||
Transform handleParent = handle.transform.parent;
|
Transform handleParent = handle.transform.parent;
|
||||||
|
|
||||||
Vector3 socketPosition = socket.transform.position;
|
Vector3 socketPosition = socket.transform.position;
|
||||||
Vector3 handlePosition = handle.transform.position;
|
Vector3 handlePosition = handle.transform.position;
|
||||||
|
|
||||||
#region Attach
|
#region Attach
|
||||||
socket.Attach(handle.transform, false);
|
socket.Attach(handle.transform, false);
|
||||||
|
|
||||||
Assert.IsTrue(socket.attachedTransform != null);
|
Assert.IsTrue(socket.attachedTransform != null);
|
||||||
Assert.AreEqual(handle.transform.parent, socket.transform);
|
Assert.AreEqual(handle.transform.parent, socket.transform);
|
||||||
|
|
||||||
// Handle should be at socket position
|
// Handle should be at socket position
|
||||||
Assert.Less(Vector3.Distance(socket.transform.position, handle.transform.position), 0.0001F);
|
Assert.Less(Vector3.Distance(socket.transform.position, handle.transform.position), 0.0001F);
|
||||||
// Socket should not have moved
|
// Socket should not have moved
|
||||||
Assert.Less(Vector3.Distance(socketPosition, socket.transform.position), 0.0001F);
|
Assert.Less(Vector3.Distance(socketPosition, socket.transform.position), 0.0001F);
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region Release
|
#region Release
|
||||||
socket.Release();
|
socket.Release();
|
||||||
|
|
||||||
Assert.IsTrue(socket.attachedTransform == null);
|
Assert.IsTrue(socket.attachedTransform == null);
|
||||||
Assert.AreEqual(handle.transform.parent, handleParent);
|
Assert.AreEqual(handle.transform.parent, handleParent);
|
||||||
|
|
||||||
// Handle should still be at socket position
|
// Handle should still be at socket position
|
||||||
Assert.Less(Vector3.Distance(socket.transform.position, handle.transform.position), 0.0001F);
|
Assert.Less(Vector3.Distance(socket.transform.position, handle.transform.position), 0.0001F);
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
socket.transform.localPosition = Vector3.zero;
|
socket.transform.localPosition = Vector3.zero;
|
||||||
handle.transform.localPosition = Vector3.zero;
|
handle.transform.localPosition = Vector3.zero;
|
||||||
}
|
|
||||||
catch (Exception e) {
|
|
||||||
Debug.LogError("Test failed");
|
|
||||||
throw (e);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
@ -186,161 +171,143 @@ namespace Passer {
|
|||||||
[Category("Socket")]
|
[Category("Socket")]
|
||||||
public void RigidbodySocket_RigidbodyHandle() {
|
public void RigidbodySocket_RigidbodyHandle() {
|
||||||
// Rigidbody Handles will be parented to Rigidbody Sockets
|
// Rigidbody Handles will be parented to Rigidbody Sockets
|
||||||
try {
|
GameObject socketObj = GameObject.Find("RigidbodySocket");
|
||||||
GameObject socketObj = GameObject.Find("RigidbodySocket");
|
Socket socket = socketObj.GetComponent<Socket>();
|
||||||
Socket socket = socketObj.GetComponent<Socket>();
|
Assert.IsTrue(socket != null);
|
||||||
Assert.IsTrue(socket != null);
|
|
||||||
|
|
||||||
GameObject handleObj = GameObject.Find("RigidbodyHandle");
|
GameObject handleObj = GameObject.Find("RigidbodyHandle");
|
||||||
Handle handle = handleObj.GetComponent<Handle>();
|
Handle handle = handleObj.GetComponent<Handle>();
|
||||||
Assert.IsTrue(handle != null);
|
Assert.IsTrue(handle != null);
|
||||||
|
|
||||||
Transform socketParent = socket.transform.parent;
|
Transform socketParent = socket.transform.parent;
|
||||||
Transform handleParent = handle.transform.parent;
|
Transform handleParent = handle.transform.parent;
|
||||||
|
|
||||||
Vector3 socketPosition = socket.transform.position;
|
Vector3 socketPosition = socket.transform.position;
|
||||||
Vector3 handlePosition = handle.transform.position;
|
Vector3 handlePosition = handle.transform.position;
|
||||||
|
|
||||||
#region Attach
|
#region Attach
|
||||||
socket.Attach(handle.transform, false);
|
socket.Attach(handle.transform, false);
|
||||||
|
|
||||||
Assert.AreEqual(socket.attachedTransform, handle.transform);
|
Assert.AreEqual(socket.attachedTransform, handle.transform);
|
||||||
Assert.AreEqual(handle.transform.parent, socket.transform);
|
Assert.AreEqual(handle.transform.parent, socket.transform);
|
||||||
|
|
||||||
// Handle should be at socket position
|
// Handle should be at socket position
|
||||||
float distance = Vector3.Distance(socket.transform.position, handle.transform.position);
|
float distance = Vector3.Distance(socket.transform.position, handle.transform.position);
|
||||||
Assert.Less(distance, 0.0001F);
|
Assert.Less(distance, 0.0001F);
|
||||||
// Socket should not have moved
|
// Socket should not have moved
|
||||||
distance = Vector3.Distance(socketPosition, socket.transform.position);
|
distance = Vector3.Distance(socketPosition, socket.transform.position);
|
||||||
Assert.Less(distance, 0.0001F);
|
Assert.Less(distance, 0.0001F);
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region Release
|
#region Release
|
||||||
socket.Release();
|
socket.Release();
|
||||||
|
|
||||||
Assert.IsTrue(socket.attachedTransform == null);
|
Assert.IsTrue(socket.attachedTransform == null);
|
||||||
Assert.AreEqual(handle.transform.parent, handleParent);
|
Assert.AreEqual(handle.transform.parent, handleParent);
|
||||||
|
|
||||||
// Handle should be at socket position
|
// Handle should be at socket position
|
||||||
distance = Vector3.Distance(socket.transform.position, handle.transform.position);
|
distance = Vector3.Distance(socket.transform.position, handle.transform.position);
|
||||||
Assert.Less(distance, 0.0001F);
|
Assert.Less(distance, 0.0001F);
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
socket.transform.localPosition = Vector3.zero;
|
socket.transform.localPosition = Vector3.zero;
|
||||||
handle.transform.localPosition = Vector3.zero;
|
handle.transform.localPosition = Vector3.zero;
|
||||||
}
|
|
||||||
catch (Exception e) {
|
|
||||||
Debug.LogError("Test failed");
|
|
||||||
throw (e);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
[Category("Socket")]
|
[Category("Socket")]
|
||||||
public void RigidbodySocket_StaticHandle() {
|
public void RigidbodySocket_StaticHandle() {
|
||||||
// Rigidbody sockets will get a fixed joint to a static handle
|
// Rigidbody sockets will get a fixed joint to a static handle
|
||||||
try {
|
GameObject socketObj = GameObject.Find("RigidbodySocket");
|
||||||
GameObject socketObj = GameObject.Find("RigidbodySocket");
|
Socket socket = socketObj.GetComponent<Socket>();
|
||||||
Socket socket = socketObj.GetComponent<Socket>();
|
Assert.IsFalse(socket == null);
|
||||||
Assert.IsFalse(socket == null);
|
|
||||||
|
|
||||||
GameObject handleObj = GameObject.Find("StaticHandle");
|
GameObject handleObj = GameObject.Find("StaticHandle");
|
||||||
Handle handle = handleObj.GetComponent<Handle>();
|
Handle handle = handleObj.GetComponent<Handle>();
|
||||||
Assert.IsFalse(handle == null);
|
Assert.IsFalse(handle == null);
|
||||||
|
|
||||||
Transform socketParent = socket.transform.parent;
|
Transform socketParent = socket.transform.parent;
|
||||||
Transform handleParent = handle.transform.parent;
|
Transform handleParent = handle.transform.parent;
|
||||||
|
|
||||||
Vector3 socketPosition = socket.transform.position;
|
Vector3 socketPosition = socket.transform.position;
|
||||||
Vector3 handlePosition = handle.transform.position;
|
Vector3 handlePosition = handle.transform.position;
|
||||||
|
|
||||||
#region Attach
|
#region Attach
|
||||||
socket.Attach(handle.transform, false);
|
socket.Attach(handle.transform, false);
|
||||||
|
|
||||||
Joint joint = socket.GetComponent<Joint>();
|
Joint joint = socket.GetComponent<Joint>();
|
||||||
Assert.IsTrue(joint != null);
|
Assert.IsTrue(joint != null);
|
||||||
Assert.IsTrue(joint.connectedBody == null);
|
Assert.IsTrue(joint.connectedBody == null);
|
||||||
|
|
||||||
Assert.AreEqual(socket.attachedTransform, handle.transform);
|
Assert.AreEqual(socket.attachedTransform, handle.transform);
|
||||||
Assert.AreNotEqual(handle.transform.parent, socket.transform);
|
Assert.AreNotEqual(handle.transform.parent, socket.transform);
|
||||||
|
|
||||||
// Socket should be at handle position
|
// Socket should be at handle position
|
||||||
Assert.Less(Vector3.Distance(socket.transform.position, handle.transform.position), 0.0001F);
|
Assert.Less(Vector3.Distance(socket.transform.position, handle.transform.position), 0.0001F);
|
||||||
// Handle should not have moved
|
// Handle should not have moved
|
||||||
Assert.Less(Vector3.Distance(handle.transform.position, handlePosition), 0.0001F);
|
Assert.Less(Vector3.Distance(handle.transform.position, handlePosition), 0.0001F);
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region Release
|
#region Release
|
||||||
socket.Release();
|
socket.Release();
|
||||||
|
|
||||||
Assert.IsTrue(socket.attachedTransform == null);
|
Assert.IsTrue(socket.attachedTransform == null);
|
||||||
Assert.AreNotEqual(handle.transform.parent, socket.transform);
|
Assert.AreNotEqual(handle.transform.parent, socket.transform);
|
||||||
|
|
||||||
joint = socket.GetComponent<Joint>();
|
joint = socket.GetComponent<Joint>();
|
||||||
Assert.IsTrue(joint == null);
|
Assert.IsTrue(joint == null);
|
||||||
|
|
||||||
// Socket should still be at handle position
|
// Socket should still be at handle position
|
||||||
Assert.Less(Vector3.Distance(socket.transform.position, handle.transform.position), 0.0001F);
|
Assert.Less(Vector3.Distance(socket.transform.position, handle.transform.position), 0.0001F);
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
socket.transform.localPosition = Vector3.zero;
|
socket.transform.localPosition = Vector3.zero;
|
||||||
handle.transform.localPosition = Vector3.zero;
|
handle.transform.localPosition = Vector3.zero;
|
||||||
}
|
|
||||||
catch (Exception e) {
|
|
||||||
Debug.LogError("Test failed");
|
|
||||||
throw (e);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
[Category("Socket")]
|
[Category("Socket")]
|
||||||
public void RigidbodySocket_KinematicHandle() {
|
public void RigidbodySocket_KinematicHandle() {
|
||||||
// Rigidbody sockets will get parented to kinematic handles
|
// Rigidbody sockets will get parented to kinematic handles
|
||||||
try {
|
GameObject socketObj = GameObject.Find("RigidbodySocket");
|
||||||
GameObject socketObj = GameObject.Find("RigidbodySocket");
|
Socket socket = socketObj.GetComponent<Socket>();
|
||||||
Socket socket = socketObj.GetComponent<Socket>();
|
Assert.IsFalse(socket == null);
|
||||||
Assert.IsFalse(socket == null);
|
|
||||||
|
|
||||||
GameObject handleObj = GameObject.Find("KinematicHandle");
|
GameObject handleObj = GameObject.Find("KinematicHandle");
|
||||||
Handle handle = handleObj.GetComponent<Handle>();
|
Handle handle = handleObj.GetComponent<Handle>();
|
||||||
Assert.IsFalse(handle == null);
|
Assert.IsFalse(handle == null);
|
||||||
|
|
||||||
Transform socketParent = socket.transform.parent;
|
Transform socketParent = socket.transform.parent;
|
||||||
Transform handleParent = handle.transform.parent;
|
Transform handleParent = handle.transform.parent;
|
||||||
|
|
||||||
Vector3 socketPosition = socket.transform.position;
|
Vector3 socketPosition = socket.transform.position;
|
||||||
Vector3 handlePosition = handle.transform.position;
|
Vector3 handlePosition = handle.transform.position;
|
||||||
|
|
||||||
#region Attach
|
#region Attach
|
||||||
socket.Attach(handle.transform, false);
|
socket.Attach(handle.transform, false);
|
||||||
|
|
||||||
Assert.AreEqual(socket.attachedTransform, handle.transform);
|
Assert.AreEqual(socket.attachedTransform, handle.transform);
|
||||||
Assert.AreEqual(socket.transform.parent, handle.transform);
|
Assert.AreEqual(socket.transform.parent, handle.transform);
|
||||||
|
|
||||||
// Socket should be at handle position
|
// Socket should be at handle position
|
||||||
Assert.Less(Vector3.Distance(socket.transform.position, handle.transform.position), 0.0001F);
|
Assert.Less(Vector3.Distance(socket.transform.position, handle.transform.position), 0.0001F);
|
||||||
// Handle should not have moved
|
// Handle should not have moved
|
||||||
Assert.Less(Vector3.Distance(handle.transform.position, handlePosition), 0.0001F);
|
Assert.Less(Vector3.Distance(handle.transform.position, handlePosition), 0.0001F);
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region Release
|
#region Release
|
||||||
socket.Release();
|
socket.Release();
|
||||||
|
|
||||||
Assert.IsTrue(socket.attachedTransform == null, "Socket still is attached to transform");
|
Assert.IsTrue(socket.attachedTransform == null, "Socket still is attached to transform");
|
||||||
Assert.AreEqual(socket.transform.parent, socketParent, "Socket is not restored to previous parent");
|
Assert.AreEqual(socket.transform.parent, socketParent, "Socket is not restored to previous parent");
|
||||||
|
|
||||||
// Socket should be at handle position
|
// Socket should be at handle position
|
||||||
Assert.Less(Vector3.Distance(socket.transform.position, handle.transform.position), 0.0001F);
|
Assert.Less(Vector3.Distance(socket.transform.position, handle.transform.position), 0.0001F);
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
socket.transform.localPosition = Vector3.zero;
|
socket.transform.localPosition = Vector3.zero;
|
||||||
handle.transform.localPosition = Vector3.zero;
|
handle.transform.localPosition = Vector3.zero;
|
||||||
}
|
|
||||||
catch (Exception e) {
|
|
||||||
Debug.LogError("Test failed");
|
|
||||||
throw (e);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
@ -350,53 +317,47 @@ namespace Passer {
|
|||||||
public void KinematicSocket_RigidbodyHandle() {
|
public void KinematicSocket_RigidbodyHandle() {
|
||||||
Setup();
|
Setup();
|
||||||
// Rigidbody Handles will be parented to Kinematic Sockets
|
// Rigidbody Handles will be parented to Kinematic Sockets
|
||||||
try {
|
GameObject socketObj = GameObject.Find("KinematicSocket");
|
||||||
GameObject socketObj = GameObject.Find("KinematicSocket");
|
Socket socket = socketObj.GetComponent<Socket>();
|
||||||
Socket socket = socketObj.GetComponent<Socket>();
|
Assert.IsTrue(socket != null);
|
||||||
Assert.IsTrue(socket != null);
|
|
||||||
|
|
||||||
GameObject handleObj = GameObject.Find("RigidbodyHandle");
|
GameObject handleObj = GameObject.Find("RigidbodyHandle");
|
||||||
Handle handle = handleObj.GetComponent<Handle>();
|
Handle handle = handleObj.GetComponent<Handle>();
|
||||||
Assert.IsTrue(handle != null);
|
Assert.IsTrue(handle != null);
|
||||||
|
|
||||||
Transform socketParent = socket.transform.parent;
|
Transform socketParent = socket.transform.parent;
|
||||||
Transform handleParent = handle.transform.parent;
|
Transform handleParent = handle.transform.parent;
|
||||||
|
|
||||||
Vector3 socketPosition = socket.transform.position;
|
Vector3 socketPosition = socket.transform.position;
|
||||||
Vector3 handlePosition = handle.transform.position;
|
Vector3 handlePosition = handle.transform.position;
|
||||||
|
|
||||||
#region Attach
|
#region Attach
|
||||||
socket.Attach(handle.transform, false);
|
socket.Attach(handle.transform, false);
|
||||||
|
|
||||||
Assert.AreEqual(socket.attachedTransform, handle.transform);
|
Assert.AreEqual(socket.attachedTransform, handle.transform);
|
||||||
Assert.AreEqual(handle.transform.parent, socket.transform);
|
Assert.AreEqual(handle.transform.parent, socket.transform);
|
||||||
|
|
||||||
// Handle should be at socket position
|
// Handle should be at socket position
|
||||||
float distance = Vector3.Distance(socket.transform.position, handle.transform.position);
|
float distance = Vector3.Distance(socket.transform.position, handle.transform.position);
|
||||||
Assert.Less(distance, 0.0001F);
|
Assert.Less(distance, 0.0001F);
|
||||||
// Socket should not have moved
|
// Socket should not have moved
|
||||||
distance = Vector3.Distance(socketPosition, socket.transform.position);
|
distance = Vector3.Distance(socketPosition, socket.transform.position);
|
||||||
Assert.Less(distance, 0.0001F);
|
Assert.Less(distance, 0.0001F);
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region Release
|
#region Release
|
||||||
socket.Release();
|
socket.Release();
|
||||||
|
|
||||||
Assert.IsTrue(socket.attachedTransform == null);
|
Assert.IsTrue(socket.attachedTransform == null);
|
||||||
Assert.AreEqual(handle.transform.parent, handleParent);
|
Assert.AreEqual(handle.transform.parent, handleParent);
|
||||||
|
|
||||||
// Handle should still be at socket position
|
// Handle should still be at socket position
|
||||||
distance = Vector3.Distance(socket.transform.position, handle.transform.position);
|
distance = Vector3.Distance(socket.transform.position, handle.transform.position);
|
||||||
Assert.Less(distance, 0.0001F);
|
Assert.Less(distance, 0.0001F);
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
socket.transform.localPosition = Vector3.zero;
|
socket.transform.localPosition = Vector3.zero;
|
||||||
handle.transform.localPosition = Vector3.zero;
|
handle.transform.localPosition = Vector3.zero;
|
||||||
}
|
|
||||||
catch (Exception e) {
|
|
||||||
Debug.LogError("Test failed");
|
|
||||||
throw (e);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
@ -405,47 +366,41 @@ namespace Passer {
|
|||||||
Setup();
|
Setup();
|
||||||
|
|
||||||
// Kinematic Sockets should be parented to a static handle
|
// Kinematic Sockets should be parented to a static handle
|
||||||
try {
|
GameObject socketObj = GameObject.Find("KinematicSocket");
|
||||||
GameObject socketObj = GameObject.Find("KinematicSocket");
|
Socket socket = socketObj.GetComponent<Socket>();
|
||||||
Socket socket = socketObj.GetComponent<Socket>();
|
Assert.IsTrue(socket != null);
|
||||||
Assert.IsTrue(socket != null);
|
|
||||||
|
|
||||||
GameObject handleObj = GameObject.Find("StaticHandle");
|
GameObject handleObj = GameObject.Find("StaticHandle");
|
||||||
Handle handle = handleObj.GetComponent<Handle>();
|
Handle handle = handleObj.GetComponent<Handle>();
|
||||||
Assert.IsTrue(handle != null);
|
Assert.IsTrue(handle != null);
|
||||||
|
|
||||||
Transform socketParent = socket.transform.parent;
|
Transform socketParent = socket.transform.parent;
|
||||||
Transform handleParent = handle.transform.parent;
|
Transform handleParent = handle.transform.parent;
|
||||||
|
|
||||||
Vector3 socketPosition = socket.transform.position;
|
Vector3 socketPosition = socket.transform.position;
|
||||||
Vector3 handlePosition = handle.transform.position;
|
Vector3 handlePosition = handle.transform.position;
|
||||||
|
|
||||||
#region Attach
|
#region Attach
|
||||||
socket.Attach(handle.transform, false);
|
socket.Attach(handle.transform, false);
|
||||||
|
|
||||||
Assert.AreEqual(socket.attachedTransform, handle.transform);
|
Assert.AreEqual(socket.attachedTransform, handle.transform);
|
||||||
Assert.AreEqual(socket.transform.parent, handle.transform);
|
Assert.AreEqual(socket.transform.parent, handle.transform);
|
||||||
|
|
||||||
// Handle should be at socket position
|
// Handle should be at socket position
|
||||||
Assert.Less(Vector3.Distance(socket.transform.position, handle.transform.position), 0.0001F);
|
Assert.Less(Vector3.Distance(socket.transform.position, handle.transform.position), 0.0001F);
|
||||||
// Handle should not have moved
|
// Handle should not have moved
|
||||||
Assert.Less(Vector3.Distance(handlePosition, handle.transform.position), 0.0001F);
|
Assert.Less(Vector3.Distance(handlePosition, handle.transform.position), 0.0001F);
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region Release
|
#region Release
|
||||||
socket.Release();
|
socket.Release();
|
||||||
|
|
||||||
Assert.IsTrue(socket.attachedTransform == null);
|
Assert.IsTrue(socket.attachedTransform == null);
|
||||||
Assert.AreEqual(socket.transform.parent, socketParent);
|
Assert.AreEqual(socket.transform.parent, socketParent);
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
socket.transform.localPosition = Vector3.zero;
|
socket.transform.localPosition = Vector3.zero;
|
||||||
handle.transform.localPosition = Vector3.zero;
|
handle.transform.localPosition = Vector3.zero;
|
||||||
}
|
|
||||||
catch (Exception e) {
|
|
||||||
Debug.LogError("Test failed");
|
|
||||||
throw (e);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
@ -454,49 +409,43 @@ namespace Passer {
|
|||||||
Setup();
|
Setup();
|
||||||
|
|
||||||
// Kinematic Handles should be parented to a kinematic socket
|
// Kinematic Handles should be parented to a kinematic socket
|
||||||
try {
|
GameObject socketObj = GameObject.Find("KinematicSocket");
|
||||||
GameObject socketObj = GameObject.Find("KinematicSocket");
|
Socket socket = socketObj.GetComponent<Socket>();
|
||||||
Socket socket = socketObj.GetComponent<Socket>();
|
Assert.IsTrue(socket != null);
|
||||||
Assert.IsTrue(socket != null);
|
|
||||||
|
|
||||||
GameObject handleObj = GameObject.Find("KinematicHandle");
|
GameObject handleObj = GameObject.Find("KinematicHandle");
|
||||||
Handle handle = handleObj.GetComponent<Handle>();
|
Handle handle = handleObj.GetComponent<Handle>();
|
||||||
Assert.IsTrue(handle != null);
|
Assert.IsTrue(handle != null);
|
||||||
|
|
||||||
Transform socketParent = socket.transform.parent;
|
Transform socketParent = socket.transform.parent;
|
||||||
Transform handleParent = handle.transform.parent;
|
Transform handleParent = handle.transform.parent;
|
||||||
|
|
||||||
Vector3 socketPosition = socket.transform.position;
|
Vector3 socketPosition = socket.transform.position;
|
||||||
Vector3 handlePosition = handle.transform.position;
|
Vector3 handlePosition = handle.transform.position;
|
||||||
|
|
||||||
#region Attach
|
#region Attach
|
||||||
socket.Attach(handle.transform, false);
|
socket.Attach(handle.transform, false);
|
||||||
|
|
||||||
Assert.IsTrue(socket.attachedTransform != null);
|
Assert.IsTrue(socket.attachedTransform != null);
|
||||||
Assert.AreEqual(handle.transform.parent, socket.transform);
|
Assert.AreEqual(handle.transform.parent, socket.transform);
|
||||||
|
|
||||||
// Handle should be at socket position
|
// Handle should be at socket position
|
||||||
Assert.Less(Vector3.Distance(socket.transform.position, handle.transform.position), 0.0001F);
|
Assert.Less(Vector3.Distance(socket.transform.position, handle.transform.position), 0.0001F);
|
||||||
// Socket should not have moved
|
// Socket should not have moved
|
||||||
Assert.Less(Vector3.Distance(socketPosition, socket.transform.position), 0.0001F);
|
Assert.Less(Vector3.Distance(socketPosition, socket.transform.position), 0.0001F);
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region Release
|
#region Release
|
||||||
socket.Release();
|
socket.Release();
|
||||||
|
|
||||||
Assert.IsTrue(socket.attachedTransform == null);
|
Assert.IsTrue(socket.attachedTransform == null);
|
||||||
Assert.AreEqual(handle.transform.parent, handleParent);
|
Assert.AreEqual(handle.transform.parent, handleParent);
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
socket.transform.localPosition = Vector3.zero;
|
socket.transform.localPosition = Vector3.zero;
|
||||||
handle.transform.localPosition = Vector3.zero;
|
handle.transform.localPosition = Vector3.zero;
|
||||||
}
|
|
||||||
catch (Exception e) {
|
|
||||||
Debug.LogError("Test failed");
|
|
||||||
throw (e);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
1687
Tests/Editor/Socket/[Test]Sockets.unity
Normal file
1687
Tests/Editor/Socket/[Test]Sockets.unity
Normal file
File diff suppressed because it is too large
Load Diff
7
Tests/Editor/Socket/[Test]Sockets.unity.meta
Normal file
7
Tests/Editor/Socket/[Test]Sockets.unity.meta
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 20750a6b085f4a5489a771b5dbf11102
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
66
Tests/Editor/Socket/[Test]SocketsSettings.lighting
Normal file
66
Tests/Editor/Socket/[Test]SocketsSettings.lighting
Normal file
@ -0,0 +1,66 @@
|
|||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!850595691 &4890085278179872738
|
||||||
|
LightingSettings:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_Name: '[Test]SocketsSettings'
|
||||||
|
serializedVersion: 6
|
||||||
|
m_GIWorkflowMode: 1
|
||||||
|
m_EnableBakedLightmaps: 1
|
||||||
|
m_EnableRealtimeLightmaps: 1
|
||||||
|
m_RealtimeEnvironmentLighting: 1
|
||||||
|
m_BounceScale: 1
|
||||||
|
m_AlbedoBoost: 1
|
||||||
|
m_IndirectOutputScale: 1
|
||||||
|
m_UsingShadowmask: 0
|
||||||
|
m_BakeBackend: 0
|
||||||
|
m_LightmapMaxSize: 1024
|
||||||
|
m_BakeResolution: 40
|
||||||
|
m_Padding: 2
|
||||||
|
m_LightmapCompression: 3
|
||||||
|
m_AO: 0
|
||||||
|
m_AOMaxDistance: 1
|
||||||
|
m_CompAOExponent: 1
|
||||||
|
m_CompAOExponentDirect: 0
|
||||||
|
m_ExtractAO: 0
|
||||||
|
m_MixedBakeMode: 1
|
||||||
|
m_LightmapsBakeMode: 1
|
||||||
|
m_FilterMode: 1
|
||||||
|
m_LightmapParameters: {fileID: 15204, guid: 0000000000000000f000000000000000, type: 0}
|
||||||
|
m_ExportTrainingData: 0
|
||||||
|
m_TrainingDataDestination: TrainingData
|
||||||
|
m_RealtimeResolution: 2
|
||||||
|
m_ForceWhiteAlbedo: 0
|
||||||
|
m_ForceUpdates: 0
|
||||||
|
m_FinalGather: 0
|
||||||
|
m_FinalGatherRayCount: 256
|
||||||
|
m_FinalGatherFiltering: 1
|
||||||
|
m_PVRCulling: 1
|
||||||
|
m_PVRSampling: 1
|
||||||
|
m_PVRDirectSampleCount: 32
|
||||||
|
m_PVRSampleCount: 512
|
||||||
|
m_PVREnvironmentSampleCount: 512
|
||||||
|
m_PVREnvironmentReferencePointCount: 2048
|
||||||
|
m_LightProbeSampleCountMultiplier: 4
|
||||||
|
m_PVRBounces: 2
|
||||||
|
m_PVRMinBounces: 2
|
||||||
|
m_PVREnvironmentImportanceSampling: 0
|
||||||
|
m_PVRFilteringMode: 0
|
||||||
|
m_PVRDenoiserTypeDirect: 0
|
||||||
|
m_PVRDenoiserTypeIndirect: 0
|
||||||
|
m_PVRDenoiserTypeAO: 0
|
||||||
|
m_PVRFilterTypeDirect: 0
|
||||||
|
m_PVRFilterTypeIndirect: 0
|
||||||
|
m_PVRFilterTypeAO: 0
|
||||||
|
m_PVRFilteringGaussRadiusDirect: 1
|
||||||
|
m_PVRFilteringGaussRadiusIndirect: 5
|
||||||
|
m_PVRFilteringGaussRadiusAO: 2
|
||||||
|
m_PVRFilteringAtrousPositionSigmaDirect: 0.5
|
||||||
|
m_PVRFilteringAtrousPositionSigmaIndirect: 2
|
||||||
|
m_PVRFilteringAtrousPositionSigmaAO: 1
|
||||||
|
m_PVRTiledBaking: 0
|
||||||
|
m_NumRaysToShootPerTexel: -1
|
||||||
|
m_RespectSceneVisibilityWhenBakingGI: 0
|
8
Tests/Editor/Socket/[Test]SocketsSettings.lighting.meta
Normal file
8
Tests/Editor/Socket/[Test]SocketsSettings.lighting.meta
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 7fb83d8629a9588429b6bc5689a13f90
|
||||||
|
NativeFormatImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
mainObjectFileID: 4890085278179872738
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
@ -11,12 +11,17 @@ namespace Passer.Humanoid {
|
|||||||
|
|
||||||
[UnitySetUp]
|
[UnitySetUp]
|
||||||
public IEnumerator Setup() {
|
public IEnumerator Setup() {
|
||||||
if (File.Exists(Application.dataPath + "/Passer/HumanoidControl/Tests/Runtime/Grabbing/Scenes/[Test]GrabbingHumanoid.unity"))
|
string testSceneName = "[Test]GrabbingHumanoid.unity";
|
||||||
UnityEditor.SceneManagement.EditorSceneManager.LoadSceneInPlayMode("Assets/Passer/HumanoidControl/Tests/Runtime/Grabbing/Scenes/[Test]GrabbingHumanoid.unity", new LoadSceneParameters(LoadSceneMode.Single));
|
string[] files = Directory.GetFiles(Application.dataPath, testSceneName, SearchOption.AllDirectories);
|
||||||
|
if (files.Length == 1) {
|
||||||
|
// strip dataPath
|
||||||
|
string file = files[0].Substring(Application.dataPath.Length - 6);
|
||||||
|
UnityEditor.SceneManagement.EditorSceneManager.LoadSceneInPlayMode(file, new LoadSceneParameters(LoadSceneMode.Single));
|
||||||
|
}
|
||||||
else
|
else
|
||||||
UnityEditor.SceneManagement.EditorSceneManager.LoadSceneInPlayMode("Packages/HumanoidControl4_Free/Tests/Runtime/Grabbing/Scenes/[Test]GrabbingHumanoid.unity", new LoadSceneParameters(LoadSceneMode.Single));
|
Debug.LogError($"Could not find test scene {testSceneName}");
|
||||||
yield return new WaitForSeconds(0.1F);
|
|
||||||
|
|
||||||
|
yield return new WaitForSeconds(0.1F);
|
||||||
}
|
}
|
||||||
|
|
||||||
[UnityTest]
|
[UnityTest]
|
||||||
|
File diff suppressed because it is too large
Load Diff
8
Tests/Runtime/Prefabs/Characters.meta
Normal file
8
Tests/Runtime/Prefabs/Characters.meta
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 0d928f20d1a1ddd4f8f733d46aaf9494
|
||||||
|
folderAsset: yes
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
BIN
Tests/Runtime/Prefabs/Characters/MakeHuman_simple_TP.fbx
Normal file
BIN
Tests/Runtime/Prefabs/Characters/MakeHuman_simple_TP.fbx
Normal file
Binary file not shown.
1481
Tests/Runtime/Prefabs/Characters/MakeHuman_simple_TP.fbx.meta
Normal file
1481
Tests/Runtime/Prefabs/Characters/MakeHuman_simple_TP.fbx.meta
Normal file
File diff suppressed because it is too large
Load Diff
7726
Tests/Runtime/Prefabs/Humanoid.prefab
Normal file
7726
Tests/Runtime/Prefabs/Humanoid.prefab
Normal file
File diff suppressed because it is too large
Load Diff
8
Tests/Runtime/Prefabs/Humanoid.prefab.meta
Normal file
8
Tests/Runtime/Prefabs/Humanoid.prefab.meta
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: a9cbb74c6bc91624983fd99431b32a61
|
||||||
|
NativeFormatImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
mainObjectFileID: 0
|
||||||
|
userData:
|
||||||
|
assetBundleName: possessions
|
||||||
|
assetBundleVariant:
|
@ -11,10 +11,17 @@ namespace Passer.Humanoid {
|
|||||||
public class Sites_Test {
|
public class Sites_Test {
|
||||||
[UnitySetUp]
|
[UnitySetUp]
|
||||||
public IEnumerator Setup() {
|
public IEnumerator Setup() {
|
||||||
if (File.Exists(Application.dataPath + "/Passer/HumanoidControl/Tests/Runtime/Sites/[Test]HumanoidVisitor Desktop.unity"))
|
string testSceneName = "[Test]HumanoidVisitor Desktop.unity";
|
||||||
UnityEditor.SceneManagement.EditorSceneManager.LoadSceneInPlayMode("Assets/Passer/HumanoidControl/Tests/Runtime/Sites/[Test]HumanoidVisitor Desktop.unity", new LoadSceneParameters(LoadSceneMode.Single));
|
string[] files = Directory.GetFiles(Application.dataPath, testSceneName, SearchOption.AllDirectories);
|
||||||
|
|
||||||
|
if (files.Length == 1) {
|
||||||
|
// strip dataPath
|
||||||
|
string file = files[0].Substring(Application.dataPath.Length - 6);
|
||||||
|
UnityEditor.SceneManagement.EditorSceneManager.LoadSceneInPlayMode(file, new LoadSceneParameters(LoadSceneMode.Single));
|
||||||
|
}
|
||||||
else
|
else
|
||||||
UnityEditor.SceneManagement.EditorSceneManager.LoadSceneInPlayMode("Packages/HumanoidControl4_Free/Tests/Runtime/Sites/[Test]HumanoidVisitor Desktop.unity", new LoadSceneParameters(LoadSceneMode.Single));
|
Debug.LogError($"Could not find test scene {testSceneName}");
|
||||||
|
|
||||||
yield return new WaitForSeconds(0.1F);
|
yield return new WaitForSeconds(0.1F);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,66 @@
|
|||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!850595691 &4890085278179872738
|
||||||
|
LightingSettings:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_Name: '[Test]HumanoidVisitor DesktopSettings'
|
||||||
|
serializedVersion: 6
|
||||||
|
m_GIWorkflowMode: 0
|
||||||
|
m_EnableBakedLightmaps: 1
|
||||||
|
m_EnableRealtimeLightmaps: 1
|
||||||
|
m_RealtimeEnvironmentLighting: 1
|
||||||
|
m_BounceScale: 1
|
||||||
|
m_AlbedoBoost: 1
|
||||||
|
m_IndirectOutputScale: 1
|
||||||
|
m_UsingShadowmask: 1
|
||||||
|
m_BakeBackend: 0
|
||||||
|
m_LightmapMaxSize: 1024
|
||||||
|
m_BakeResolution: 40
|
||||||
|
m_Padding: 2
|
||||||
|
m_LightmapCompression: 3
|
||||||
|
m_AO: 0
|
||||||
|
m_AOMaxDistance: 1
|
||||||
|
m_CompAOExponent: 1
|
||||||
|
m_CompAOExponentDirect: 0
|
||||||
|
m_ExtractAO: 0
|
||||||
|
m_MixedBakeMode: 2
|
||||||
|
m_LightmapsBakeMode: 1
|
||||||
|
m_FilterMode: 1
|
||||||
|
m_LightmapParameters: {fileID: 15204, guid: 0000000000000000f000000000000000, type: 0}
|
||||||
|
m_ExportTrainingData: 0
|
||||||
|
m_TrainingDataDestination: TrainingData
|
||||||
|
m_RealtimeResolution: 2
|
||||||
|
m_ForceWhiteAlbedo: 0
|
||||||
|
m_ForceUpdates: 0
|
||||||
|
m_FinalGather: 0
|
||||||
|
m_FinalGatherRayCount: 256
|
||||||
|
m_FinalGatherFiltering: 1
|
||||||
|
m_PVRCulling: 1
|
||||||
|
m_PVRSampling: 1
|
||||||
|
m_PVRDirectSampleCount: 32
|
||||||
|
m_PVRSampleCount: 512
|
||||||
|
m_PVREnvironmentSampleCount: 512
|
||||||
|
m_PVREnvironmentReferencePointCount: 2048
|
||||||
|
m_LightProbeSampleCountMultiplier: 4
|
||||||
|
m_PVRBounces: 2
|
||||||
|
m_PVRMinBounces: 2
|
||||||
|
m_PVREnvironmentImportanceSampling: 0
|
||||||
|
m_PVRFilteringMode: 2
|
||||||
|
m_PVRDenoiserTypeDirect: 0
|
||||||
|
m_PVRDenoiserTypeIndirect: 0
|
||||||
|
m_PVRDenoiserTypeAO: 0
|
||||||
|
m_PVRFilterTypeDirect: 0
|
||||||
|
m_PVRFilterTypeIndirect: 0
|
||||||
|
m_PVRFilterTypeAO: 0
|
||||||
|
m_PVRFilteringGaussRadiusDirect: 1
|
||||||
|
m_PVRFilteringGaussRadiusIndirect: 5
|
||||||
|
m_PVRFilteringGaussRadiusAO: 2
|
||||||
|
m_PVRFilteringAtrousPositionSigmaDirect: 0.5
|
||||||
|
m_PVRFilteringAtrousPositionSigmaIndirect: 2
|
||||||
|
m_PVRFilteringAtrousPositionSigmaAO: 1
|
||||||
|
m_PVRTiledBaking: 0
|
||||||
|
m_NumRaysToShootPerTexel: -1
|
||||||
|
m_RespectSceneVisibilityWhenBakingGI: 0
|
@ -0,0 +1,8 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 786385e9890ca744384f4bab9cae422d
|
||||||
|
NativeFormatImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
mainObjectFileID: 4890085278179872738
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
Loading…
x
Reference in New Issue
Block a user