Shan Jiang
4 年前
当前提交
99f5260e
共有 32 个文件被更改,包括 7197 次插入 和 13 次删除
-
16Assets/Scenes/ImageTracking/Multi Prefab - Image Tracking/Multi-Image Tracking.unity
-
31Assets/Scenes/ImageTracking/Multi Prefab - Image Tracking/MultiTrackedImageInfoManager.cs
-
156Assets/Scenes/ImageTracking/Multi Prefab - Image Tracking/DynamicPrefab.cs
-
11Assets/Scenes/ImageTracking/Multi Prefab - Image Tracking/DynamicPrefab.cs.meta
-
8Assets/Scenes/ImageTracking/Prefabs/FlowerAlternativePrefab.meta
-
300Assets/Scenes/ImageTracking/Prefabs/FlowerAlternativePrefab/FlowerAlternativePrefab.prefab
-
7Assets/Scenes/ImageTracking/Prefabs/FlowerAlternativePrefab/FlowerAlternativePrefab.prefab.meta
-
8Assets/Scenes/ImageTracking/Prefabs/FlowerAlternativePrefab/Models.meta
-
77Assets/Scenes/ImageTracking/Prefabs/FlowerAlternativePrefab/Models/VegetationSmall01_Mat.mat
-
10Assets/Scenes/ImageTracking/Prefabs/FlowerAlternativePrefab/Models/VegetationSmall01_Mat.mat.meta
-
8Assets/Scenes/ImageTracking/Prefabs/FlowerAlternativePrefab/Small.meta
-
952Assets/Scenes/ImageTracking/Prefabs/FlowerAlternativePrefab/Small/VegetationSmall01.fbx
-
118Assets/Scenes/ImageTracking/Prefabs/FlowerAlternativePrefab/Small/VegetationSmall01.fbx.meta
-
8Assets/Scenes/ImageTracking/Prefabs/FlowerAlternativePrefab/Textures.meta
-
1001Assets/Scenes/ImageTracking/Prefabs/FlowerAlternativePrefab/Textures/VegetationSmall01_Albedo.tif
-
99Assets/Scenes/ImageTracking/Prefabs/FlowerAlternativePrefab/Textures/VegetationSmall01_Albedo.tif.meta
-
1001Assets/Scenes/ImageTracking/Prefabs/FlowerAlternativePrefab/Textures/VegetationSmall01_Emission.tif
-
99Assets/Scenes/ImageTracking/Prefabs/FlowerAlternativePrefab/Textures/VegetationSmall01_Emission.tif.meta
-
1001Assets/Scenes/ImageTracking/Prefabs/FlowerAlternativePrefab/Textures/VegetationSmall01_MetallicSmooth.tif
-
99Assets/Scenes/ImageTracking/Prefabs/FlowerAlternativePrefab/Textures/VegetationSmall01_MetallicSmooth.tif.meta
-
1001Assets/Scenes/ImageTracking/Prefabs/FlowerAlternativePrefab/Textures/VegetationSmall01_Normals.tif
-
99Assets/Scenes/ImageTracking/Prefabs/FlowerAlternativePrefab/Textures/VegetationSmall01_Normals.tif.meta
-
1001Assets/Scenes/ImageTracking/Prefabs/FlowerAlternativePrefab/Textures/VegetationSmall01_Occlusion.tif
-
99Assets/Scenes/ImageTracking/Prefabs/FlowerAlternativePrefab/Textures/VegetationSmall01_Occlusion.tif.meta
-
0/Assets/Scenes/ImageTracking/Prefabs/VikingHelmetPrefab.meta
-
0/Assets/Scenes/ImageTracking/Prefabs/VikingHelmetPrefab
-
0/Assets/Scenes/ImageTracking/Prefabs/VikingHelmetPrefab/VikingHelmetPrefab.prefab
-
0/Assets/Scenes/ImageTracking/Prefabs/VikingHelmetPrefab/VikingHelmetPrefab.prefab.meta
|
|||
using System; |
|||
using System.Text; |
|||
using UnityEngine; |
|||
|
|||
using UnityEngine.XR.ARFoundation; |
|||
using UnityEngine.XR.ARSubsystems; |
|||
|
|||
namespace UnityEngine.XR.ARFoundation.Samples |
|||
{ |
|||
/// <summary>
|
|||
/// Change the prefab for Rafflesia at runtime.
|
|||
/// </summary>
|
|||
[RequireComponent(typeof(ARTrackedImageManager))] |
|||
public class DynamicPrefab : MonoBehaviour |
|||
{ |
|||
[SerializeField] |
|||
[HideInInspector] |
|||
GameObject m_OrigianlPrefab; |
|||
|
|||
GameObject originalPrefab |
|||
{ |
|||
get => m_OrigianlPrefab; |
|||
set => m_OrigianlPrefab = value; |
|||
} |
|||
|
|||
[SerializeField] |
|||
GameObject m_AlternativePrefab; |
|||
|
|||
public GameObject alternativePrefab |
|||
{ |
|||
get => m_AlternativePrefab; |
|||
set => m_AlternativePrefab = value; |
|||
} |
|||
|
|||
enum State |
|||
{ |
|||
OriginalPrefab, |
|||
ChangeToOriginalPrefab, |
|||
AlternativePrefab, |
|||
ChangeToAlternativePrefab, |
|||
Error |
|||
} |
|||
|
|||
State m_State; |
|||
|
|||
string m_ErrorMessage = ""; |
|||
|
|||
void OnGUI() |
|||
{ |
|||
var fontSize = 50; |
|||
GUI.skin.button.fontSize = fontSize; |
|||
GUI.skin.label.fontSize = fontSize; |
|||
|
|||
float margin = 100; |
|||
|
|||
GUILayout.BeginArea(new Rect(margin, margin, Screen.width - margin * 2, Screen.height - margin * 2)); |
|||
|
|||
switch (m_State) |
|||
{ |
|||
case State.OriginalPrefab: |
|||
{ |
|||
if (GUILayout.Button("Alternative Prefab for Rafflesia")) |
|||
{ |
|||
m_State = State.ChangeToAlternativePrefab; |
|||
} |
|||
break; |
|||
} |
|||
case State.AlternativePrefab: |
|||
{ |
|||
if (GUILayout.Button("Original Prefab for Rafflesia")) |
|||
{ |
|||
m_State = State.ChangeToOriginalPrefab; |
|||
} |
|||
break; |
|||
} |
|||
case State.Error: |
|||
{ |
|||
GUILayout.Label(m_ErrorMessage); |
|||
break; |
|||
} |
|||
} |
|||
|
|||
GUILayout.EndArea(); |
|||
} |
|||
|
|||
void SetError(string errorMessage) |
|||
{ |
|||
m_State = State.Error; |
|||
m_ErrorMessage = $"Error: {errorMessage}"; |
|||
} |
|||
|
|||
void Update() |
|||
{ |
|||
switch (m_State) |
|||
{ |
|||
case State.ChangeToAlternativePrefab: |
|||
{ |
|||
if (alternativePrefab == null) |
|||
{ |
|||
SetError("No alternative prefab is given."); |
|||
break; |
|||
} |
|||
|
|||
var manager = GetComponent<MultiTrackedImageInfoManager>(); |
|||
if (manager == null) |
|||
{ |
|||
SetError($"No {nameof(MultiTrackedImageInfoManager)} available."); |
|||
break; |
|||
} |
|||
|
|||
var library = manager.ImageLibrary; |
|||
if (library == null) |
|||
{ |
|||
SetError($"No image library available."); |
|||
break; |
|||
} |
|||
|
|||
if (originalPrefab == null) |
|||
originalPrefab = manager.GetPrefabForReferenceImage(library[0]); |
|||
|
|||
manager.SetPrefabForReferenceImage(library[0], alternativePrefab); |
|||
m_State = State.AlternativePrefab; |
|||
break; |
|||
} |
|||
|
|||
case State.ChangeToOriginalPrefab: |
|||
{ |
|||
if (originalPrefab == null) |
|||
{ |
|||
SetError("No original prefab is given."); |
|||
break; |
|||
} |
|||
|
|||
var manager = GetComponent<MultiTrackedImageInfoManager>(); |
|||
if (manager == null) |
|||
{ |
|||
SetError($"No {nameof(MultiTrackedImageInfoManager)} available."); |
|||
break; |
|||
} |
|||
|
|||
var library = manager.ImageLibrary; |
|||
if (library == null) |
|||
{ |
|||
SetError($"No image library available."); |
|||
break; |
|||
} |
|||
|
|||
manager.SetPrefabForReferenceImage(library[0], originalPrefab); |
|||
m_State = State.OriginalPrefab; |
|||
break; |
|||
} |
|||
|
|||
} |
|||
} |
|||
} |
|||
} |
|
|||
fileFormatVersion: 2 |
|||
guid: a6d5323815f004189af1fb658b6c9369 |
|||
MonoImporter: |
|||
externalObjects: {} |
|||
serializedVersion: 2 |
|||
defaultReferences: [] |
|||
executionOrder: 0 |
|||
icon: {instanceID: 0} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
fileFormatVersion: 2 |
|||
guid: bbe30caa66b294fd3add96765a04060c |
|||
folderAsset: yes |
|||
DefaultImporter: |
|||
externalObjects: {} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
%YAML 1.1 |
|||
%TAG !u! tag:unity3d.com,2011: |
|||
--- !u!1 &4354704932497689857 |
|||
GameObject: |
|||
m_ObjectHideFlags: 0 |
|||
m_CorrespondingSourceObject: {fileID: 0} |
|||
m_PrefabInstance: {fileID: 0} |
|||
m_PrefabAsset: {fileID: 0} |
|||
serializedVersion: 6 |
|||
m_Component: |
|||
- component: {fileID: 4354704932497854753} |
|||
- component: {fileID: 4354704932479419777} |
|||
m_Layer: 0 |
|||
m_Name: VegetationSmall01 |
|||
m_TagString: Untagged |
|||
m_Icon: {fileID: 0} |
|||
m_NavMeshLayer: 0 |
|||
m_StaticEditorFlags: 0 |
|||
m_IsActive: 1 |
|||
--- !u!4 &4354704932497854753 |
|||
Transform: |
|||
m_ObjectHideFlags: 0 |
|||
m_CorrespondingSourceObject: {fileID: 0} |
|||
m_PrefabInstance: {fileID: 0} |
|||
m_PrefabAsset: {fileID: 0} |
|||
m_GameObject: {fileID: 4354704932497689857} |
|||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} |
|||
m_LocalPosition: {x: 0, y: 0, z: 0} |
|||
m_LocalScale: {x: 1, y: 1, z: 1} |
|||
m_Children: |
|||
- {fileID: 4354704932497854755} |
|||
- {fileID: 4354704932497854757} |
|||
- {fileID: 4354704932497854759} |
|||
m_Father: {fileID: 0} |
|||
m_RootOrder: 0 |
|||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} |
|||
--- !u!205 &4354704932479419777 |
|||
LODGroup: |
|||
m_ObjectHideFlags: 0 |
|||
m_CorrespondingSourceObject: {fileID: 0} |
|||
m_PrefabInstance: {fileID: 0} |
|||
m_PrefabAsset: {fileID: 0} |
|||
m_GameObject: {fileID: 4354704932497689857} |
|||
serializedVersion: 2 |
|||
m_LocalReferencePoint: {x: -0.1549226, y: 0.94626725, z: -0.049044967} |
|||
m_Size: 2.097925 |
|||
m_FadeMode: 0 |
|||
m_AnimateCrossFading: 0 |
|||
m_LastLODIsBillboard: 0 |
|||
m_LODs: |
|||
- screenRelativeHeight: 0.25 |
|||
fadeTransitionWidth: 0 |
|||
renderers: |
|||
- renderer: {fileID: 4354704932495430593} |
|||
- screenRelativeHeight: 0.125 |
|||
fadeTransitionWidth: 0 |
|||
renderers: |
|||
- renderer: {fileID: 4354704932495430595} |
|||
- screenRelativeHeight: 0.01 |
|||
fadeTransitionWidth: 0 |
|||
renderers: |
|||
- renderer: {fileID: 4354704932495430597} |
|||
m_Enabled: 1 |
|||
--- !u!1 &4354704932497689859 |
|||
GameObject: |
|||
m_ObjectHideFlags: 0 |
|||
m_CorrespondingSourceObject: {fileID: 0} |
|||
m_PrefabInstance: {fileID: 0} |
|||
m_PrefabAsset: {fileID: 0} |
|||
serializedVersion: 6 |
|||
m_Component: |
|||
- component: {fileID: 4354704932497854755} |
|||
- component: {fileID: 4354704932496560385} |
|||
- component: {fileID: 4354704932495430593} |
|||
m_Layer: 0 |
|||
m_Name: VegetationSmall01_LOD00 |
|||
m_TagString: Untagged |
|||
m_Icon: {fileID: 0} |
|||
m_NavMeshLayer: 0 |
|||
m_StaticEditorFlags: 0 |
|||
m_IsActive: 1 |
|||
--- !u!4 &4354704932497854755 |
|||
Transform: |
|||
m_ObjectHideFlags: 0 |
|||
m_CorrespondingSourceObject: {fileID: 0} |
|||
m_PrefabInstance: {fileID: 0} |
|||
m_PrefabAsset: {fileID: 0} |
|||
m_GameObject: {fileID: 4354704932497689859} |
|||
m_LocalRotation: {x: 0, y: -0, z: -0, w: 1} |
|||
m_LocalPosition: {x: -0, y: 0, z: 0} |
|||
m_LocalScale: {x: 1, y: 1, z: 1} |
|||
m_Children: [] |
|||
m_Father: {fileID: 4354704932497854753} |
|||
m_RootOrder: 0 |
|||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} |
|||
--- !u!33 &4354704932496560385 |
|||
MeshFilter: |
|||
m_ObjectHideFlags: 0 |
|||
m_CorrespondingSourceObject: {fileID: 0} |
|||
m_PrefabInstance: {fileID: 0} |
|||
m_PrefabAsset: {fileID: 0} |
|||
m_GameObject: {fileID: 4354704932497689859} |
|||
m_Mesh: {fileID: 4300000, guid: 266f03476f36b2945b733736a459bf7a, type: 3} |
|||
--- !u!23 &4354704932495430593 |
|||
MeshRenderer: |
|||
m_ObjectHideFlags: 0 |
|||
m_CorrespondingSourceObject: {fileID: 0} |
|||
m_PrefabInstance: {fileID: 0} |
|||
m_PrefabAsset: {fileID: 0} |
|||
m_GameObject: {fileID: 4354704932497689859} |
|||
m_Enabled: 1 |
|||
m_CastShadows: 1 |
|||
m_ReceiveShadows: 1 |
|||
m_DynamicOccludee: 1 |
|||
m_MotionVectors: 1 |
|||
m_LightProbeUsage: 1 |
|||
m_ReflectionProbeUsage: 1 |
|||
m_RayTracingMode: 2 |
|||
m_RenderingLayerMask: 1 |
|||
m_RendererPriority: 0 |
|||
m_Materials: |
|||
- {fileID: 2100000, guid: 896bbfa91dbcbf042994a7e983a4df10, type: 2} |
|||
m_StaticBatchInfo: |
|||
firstSubMesh: 0 |
|||
subMeshCount: 0 |
|||
m_StaticBatchRoot: {fileID: 0} |
|||
m_ProbeAnchor: {fileID: 0} |
|||
m_LightProbeVolumeOverride: {fileID: 0} |
|||
m_ScaleInLightmap: 1 |
|||
m_ReceiveGI: 1 |
|||
m_PreserveUVs: 0 |
|||
m_IgnoreNormalsForChartDetection: 0 |
|||
m_ImportantGI: 0 |
|||
m_StitchLightmapSeams: 1 |
|||
m_SelectedEditorRenderState: 3 |
|||
m_MinimumChartSize: 4 |
|||
m_AutoUVMaxDistance: 0.5 |
|||
m_AutoUVMaxAngle: 89 |
|||
m_LightmapParameters: {fileID: 0} |
|||
m_SortingLayerID: 0 |
|||
m_SortingLayer: 0 |
|||
m_SortingOrder: 0 |
|||
--- !u!1 &4354704932497689861 |
|||
GameObject: |
|||
m_ObjectHideFlags: 0 |
|||
m_CorrespondingSourceObject: {fileID: 0} |
|||
m_PrefabInstance: {fileID: 0} |
|||
m_PrefabAsset: {fileID: 0} |
|||
serializedVersion: 6 |
|||
m_Component: |
|||
- component: {fileID: 4354704932497854757} |
|||
- component: {fileID: 4354704932496560387} |
|||
- component: {fileID: 4354704932495430595} |
|||
m_Layer: 0 |
|||
m_Name: VegetationSmall01_LOD01 |
|||
m_TagString: Untagged |
|||
m_Icon: {fileID: 0} |
|||
m_NavMeshLayer: 0 |
|||
m_StaticEditorFlags: 0 |
|||
m_IsActive: 1 |
|||
--- !u!4 &4354704932497854757 |
|||
Transform: |
|||
m_ObjectHideFlags: 0 |
|||
m_CorrespondingSourceObject: {fileID: 0} |
|||
m_PrefabInstance: {fileID: 0} |
|||
m_PrefabAsset: {fileID: 0} |
|||
m_GameObject: {fileID: 4354704932497689861} |
|||
m_LocalRotation: {x: 0, y: -0, z: -0, w: 1} |
|||
m_LocalPosition: {x: -0, y: 0, z: 0} |
|||
m_LocalScale: {x: 1, y: 1, z: 1} |
|||
m_Children: [] |
|||
m_Father: {fileID: 4354704932497854753} |
|||
m_RootOrder: 1 |
|||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} |
|||
--- !u!33 &4354704932496560387 |
|||
MeshFilter: |
|||
m_ObjectHideFlags: 0 |
|||
m_CorrespondingSourceObject: {fileID: 0} |
|||
m_PrefabInstance: {fileID: 0} |
|||
m_PrefabAsset: {fileID: 0} |
|||
m_GameObject: {fileID: 4354704932497689861} |
|||
m_Mesh: {fileID: 4300002, guid: 266f03476f36b2945b733736a459bf7a, type: 3} |
|||
--- !u!23 &4354704932495430595 |
|||
MeshRenderer: |
|||
m_ObjectHideFlags: 0 |
|||
m_CorrespondingSourceObject: {fileID: 0} |
|||
m_PrefabInstance: {fileID: 0} |
|||
m_PrefabAsset: {fileID: 0} |
|||
m_GameObject: {fileID: 4354704932497689861} |
|||
m_Enabled: 1 |
|||
m_CastShadows: 1 |
|||
m_ReceiveShadows: 1 |
|||
m_DynamicOccludee: 1 |
|||
m_MotionVectors: 1 |
|||
m_LightProbeUsage: 1 |
|||
m_ReflectionProbeUsage: 1 |
|||
m_RayTracingMode: 2 |
|||
m_RenderingLayerMask: 1 |
|||
m_RendererPriority: 0 |
|||
m_Materials: |
|||
- {fileID: 2100000, guid: 896bbfa91dbcbf042994a7e983a4df10, type: 2} |
|||
m_StaticBatchInfo: |
|||
firstSubMesh: 0 |
|||
subMeshCount: 0 |
|||
m_StaticBatchRoot: {fileID: 0} |
|||
m_ProbeAnchor: {fileID: 0} |
|||
m_LightProbeVolumeOverride: {fileID: 0} |
|||
m_ScaleInLightmap: 1 |
|||
m_ReceiveGI: 1 |
|||
m_PreserveUVs: 0 |
|||
m_IgnoreNormalsForChartDetection: 0 |
|||
m_ImportantGI: 0 |
|||
m_StitchLightmapSeams: 1 |
|||
m_SelectedEditorRenderState: 3 |
|||
m_MinimumChartSize: 4 |
|||
m_AutoUVMaxDistance: 0.5 |
|||
m_AutoUVMaxAngle: 89 |
|||
m_LightmapParameters: {fileID: 0} |
|||
m_SortingLayerID: 0 |
|||
m_SortingLayer: 0 |
|||
m_SortingOrder: 0 |
|||
--- !u!1 &4354704932497689863 |
|||
GameObject: |
|||
m_ObjectHideFlags: 0 |
|||
m_CorrespondingSourceObject: {fileID: 0} |
|||
m_PrefabInstance: {fileID: 0} |
|||
m_PrefabAsset: {fileID: 0} |
|||
serializedVersion: 6 |
|||
m_Component: |
|||
- component: {fileID: 4354704932497854759} |
|||
- component: {fileID: 4354704932496560389} |
|||
- component: {fileID: 4354704932495430597} |
|||
m_Layer: 0 |
|||
m_Name: VegetationSmall01_LOD02 |
|||
m_TagString: Untagged |
|||
m_Icon: {fileID: 0} |
|||
m_NavMeshLayer: 0 |
|||
m_StaticEditorFlags: 0 |
|||
m_IsActive: 1 |
|||
--- !u!4 &4354704932497854759 |
|||
Transform: |
|||
m_ObjectHideFlags: 0 |
|||
m_CorrespondingSourceObject: {fileID: 0} |
|||
m_PrefabInstance: {fileID: 0} |
|||
m_PrefabAsset: {fileID: 0} |
|||
m_GameObject: {fileID: 4354704932497689863} |
|||
m_LocalRotation: {x: 0, y: -0, z: -0, w: 1} |
|||
m_LocalPosition: {x: -0, y: 0, z: 0} |
|||
m_LocalScale: {x: 1, y: 1, z: 1} |
|||
m_Children: [] |
|||
m_Father: {fileID: 4354704932497854753} |
|||
m_RootOrder: 2 |
|||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} |
|||
--- !u!33 &4354704932496560389 |
|||
MeshFilter: |
|||
m_ObjectHideFlags: 0 |
|||
m_CorrespondingSourceObject: {fileID: 0} |
|||
m_PrefabInstance: {fileID: 0} |
|||
m_PrefabAsset: {fileID: 0} |
|||
m_GameObject: {fileID: 4354704932497689863} |
|||
m_Mesh: {fileID: 4300004, guid: 266f03476f36b2945b733736a459bf7a, type: 3} |
|||
--- !u!23 &4354704932495430597 |
|||
MeshRenderer: |
|||
m_ObjectHideFlags: 0 |
|||
m_CorrespondingSourceObject: {fileID: 0} |
|||
m_PrefabInstance: {fileID: 0} |
|||
m_PrefabAsset: {fileID: 0} |
|||
m_GameObject: {fileID: 4354704932497689863} |
|||
m_Enabled: 1 |
|||
m_CastShadows: 1 |
|||
m_ReceiveShadows: 1 |
|||
m_DynamicOccludee: 1 |
|||
m_MotionVectors: 1 |
|||
m_LightProbeUsage: 1 |
|||
m_ReflectionProbeUsage: 1 |
|||
m_RayTracingMode: 2 |
|||
m_RenderingLayerMask: 1 |
|||
m_RendererPriority: 0 |
|||
m_Materials: |
|||
- {fileID: 2100000, guid: 896bbfa91dbcbf042994a7e983a4df10, type: 2} |
|||
m_StaticBatchInfo: |
|||
firstSubMesh: 0 |
|||
subMeshCount: 0 |
|||
m_StaticBatchRoot: {fileID: 0} |
|||
m_ProbeAnchor: {fileID: 0} |
|||
m_LightProbeVolumeOverride: {fileID: 0} |
|||
m_ScaleInLightmap: 1 |
|||
m_ReceiveGI: 1 |
|||
m_PreserveUVs: 0 |
|||
m_IgnoreNormalsForChartDetection: 0 |
|||
m_ImportantGI: 0 |
|||
m_StitchLightmapSeams: 1 |
|||
m_SelectedEditorRenderState: 3 |
|||
m_MinimumChartSize: 4 |
|||
m_AutoUVMaxDistance: 0.5 |
|||
m_AutoUVMaxAngle: 89 |
|||
m_LightmapParameters: {fileID: 0} |
|||
m_SortingLayerID: 0 |
|||
m_SortingLayer: 0 |
|||
m_SortingOrder: 0 |
|
|||
fileFormatVersion: 2 |
|||
guid: 3760319adcbe74905bf3e2a7dced4830 |
|||
PrefabImporter: |
|||
externalObjects: {} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
fileFormatVersion: 2 |
|||
guid: 27cacbc3b9a57444bae091f834f6cb1c |
|||
folderAsset: yes |
|||
DefaultImporter: |
|||
externalObjects: {} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
%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: VegetationSmall01_Mat |
|||
m_Shader: {fileID: 4800000, guid: e48dc3fe7602c914abada8cec9711f48, type: 3} |
|||
m_ShaderKeywords: _EMISSION _METALLICGLOSSMAP _NORMALMAP |
|||
m_LightmapFlags: 1 |
|||
m_EnableInstancingVariants: 1 |
|||
m_DoubleSidedGI: 0 |
|||
m_CustomRenderQueue: -1 |
|||
stringTagMap: {} |
|||
disabledShaderPasses: [] |
|||
m_SavedProperties: |
|||
serializedVersion: 3 |
|||
m_TexEnvs: |
|||
- _BumpMap: |
|||
m_Texture: {fileID: 2800000, guid: 0510e143eeb98d044976b151ac23c3eb, type: 3} |
|||
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: 2800000, guid: 1b09a91a887a7dc4689af7d251854633, type: 3} |
|||
m_Scale: {x: 1, y: 1} |
|||
m_Offset: {x: 0, y: 0} |
|||
- _MainTex: |
|||
m_Texture: {fileID: 2800000, guid: eab18ebe95426f94eac9f1fbd7b18aab, type: 3} |
|||
m_Scale: {x: 1, y: 1} |
|||
m_Offset: {x: 0, y: 0} |
|||
- _MetallicGlossMap: |
|||
m_Texture: {fileID: 2800000, guid: fad7af736c049234f957ede2e99074bf, type: 3} |
|||
m_Scale: {x: 1, y: 1} |
|||
m_Offset: {x: 0, y: 0} |
|||
- _OcclusionMap: |
|||
m_Texture: {fileID: 2800000, guid: 87023a25159e0f34e9853efc28b4dd0d, type: 3} |
|||
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: 1 |
|||
- _GlossyReflections: 1 |
|||
- _Metallic: 0 |
|||
- _Mode: 0 |
|||
- _OcclusionStrength: 0.581 |
|||
- _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: 1.0231975, b: 0.798319, a: 1} |
|||
- _EmissiveColor: {r: 0, g: 0, b: 0, a: 0} |
|
|||
fileFormatVersion: 2 |
|||
guid: 896bbfa91dbcbf042994a7e983a4df10 |
|||
timeCreated: 1502179721 |
|||
licenseType: Store |
|||
NativeFormatImporter: |
|||
externalObjects: {} |
|||
mainObjectFileID: 2100000 |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
fileFormatVersion: 2 |
|||
guid: 14f252d9d361544e3868a881a9098fbc |
|||
folderAsset: yes |
|||
DefaultImporter: |
|||
externalObjects: {} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
Kaydara FBX Binary � e FBXHeaderExtension\ FBXHeaderVersionI� x |
|||
FBXVersionI� � EncryptionTypeI � CreationTimeStamp� VersionI� � YearI� � MonthI DayI ' HourI ? MinuteI W SecondI t MillisecondIi � ' |