프랍 구분 추가
This commit is contained in:
parent
5317fc4fed
commit
32fa474aba
@ -1,5 +1,47 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!114 &-8459026560591830105
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 0}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 6b3d386ba5cd94485973aee1479b272e, type: 3}
|
||||
m_Name: Prop
|
||||
m_EditorClassIdentifier:
|
||||
m_Active: 1
|
||||
settings:
|
||||
passTag: Prop
|
||||
Event: 300
|
||||
filterSettings:
|
||||
RenderQueueType: 0
|
||||
LayerMask:
|
||||
serializedVersion: 2
|
||||
m_Bits: 128
|
||||
PassNames: []
|
||||
overrideMaterial: {fileID: 0}
|
||||
overrideMaterialPassIndex: 0
|
||||
overrideShader: {fileID: 0}
|
||||
overrideShaderPassIndex: 0
|
||||
overrideMode: 1
|
||||
overrideDepthState: 1
|
||||
depthCompareFunction: 4
|
||||
enableWrite: 1
|
||||
stencilSettings:
|
||||
overrideStencilState: 0
|
||||
stencilReference: 0
|
||||
stencilCompareFunction: 8
|
||||
passOperation: 0
|
||||
failOperation: 0
|
||||
zFailOperation: 0
|
||||
cameraSettings:
|
||||
overrideCamera: 0
|
||||
restoreCamera: 1
|
||||
offset: {x: 0, y: 0, z: 0, w: 0}
|
||||
cameraFieldOfView: 60
|
||||
--- !u!114 &-5955598209606857498
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
@ -69,15 +111,15 @@ MonoBehaviour:
|
||||
m_RendererFeatures:
|
||||
- {fileID: 7833122117494664109}
|
||||
- {fileID: -5955598209606857498}
|
||||
- {fileID: 8114344887006765490}
|
||||
m_RendererFeatureMap: ad6b866f10d7b46ce64c6e83fb7659adb2a10bdfaef19b70
|
||||
- {fileID: -8459026560591830105}
|
||||
m_RendererFeatureMap: ad6b866f10d7b46ce64c6e83fb7659ada763543629809b8a
|
||||
m_UseNativeRenderPass: 1
|
||||
xrSystemData: {fileID: 0}
|
||||
postProcessData: {fileID: 11400000, guid: 41439944d30ece34e96484bdb6645b55, type: 2}
|
||||
m_AssetVersion: 2
|
||||
m_OpaqueLayerMask:
|
||||
serializedVersion: 2
|
||||
m_Bits: 63
|
||||
m_Bits: 895
|
||||
m_TransparentLayerMask:
|
||||
serializedVersion: 2
|
||||
m_Bits: 4294967295
|
||||
@ -122,45 +164,3 @@ MonoBehaviour:
|
||||
BlurQuality: 0
|
||||
Falloff: 100
|
||||
SampleCount: -1
|
||||
--- !u!114 &8114344887006765490
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 0}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 6b3d386ba5cd94485973aee1479b272e, type: 3}
|
||||
m_Name: Props
|
||||
m_EditorClassIdentifier:
|
||||
m_Active: 1
|
||||
settings:
|
||||
passTag: Props
|
||||
Event: 300
|
||||
filterSettings:
|
||||
RenderQueueType: 0
|
||||
LayerMask:
|
||||
serializedVersion: 2
|
||||
m_Bits: 128
|
||||
PassNames: []
|
||||
overrideMaterial: {fileID: 0}
|
||||
overrideMaterialPassIndex: 0
|
||||
overrideShader: {fileID: 0}
|
||||
overrideShaderPassIndex: 0
|
||||
overrideMode: 1
|
||||
overrideDepthState: 1
|
||||
depthCompareFunction: 4
|
||||
enableWrite: 1
|
||||
stencilSettings:
|
||||
overrideStencilState: 0
|
||||
stencilReference: 0
|
||||
stencilCompareFunction: 8
|
||||
passOperation: 0
|
||||
failOperation: 0
|
||||
zFailOperation: 0
|
||||
cameraSettings:
|
||||
overrideCamera: 0
|
||||
restoreCamera: 1
|
||||
offset: {x: 0, y: 0, z: 0, w: 0}
|
||||
cameraFieldOfView: 60
|
||||
|
@ -11,7 +11,7 @@ GameObject:
|
||||
- component: {fileID: 3584601016550470090}
|
||||
- component: {fileID: 2205281512296162324}
|
||||
- component: {fileID: 4264345854791674296}
|
||||
m_Layer: 0
|
||||
m_Layer: 8
|
||||
m_Name: VisualLook_001
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
@ -97,7 +97,7 @@ GameObject:
|
||||
- component: {fileID: 198424867830454824}
|
||||
- component: {fileID: 8393754865671344288}
|
||||
- component: {fileID: 674230866569998463}
|
||||
m_Layer: 0
|
||||
m_Layer: 8
|
||||
m_Name: VisualLook_002
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
@ -180,6 +180,10 @@ PrefabInstance:
|
||||
serializedVersion: 3
|
||||
m_TransformParent: {fileID: 8881739536043914635}
|
||||
m_Modifications:
|
||||
- target: {fileID: 469687031743160198, guid: 1242b8c74c7b44c2ebdadb10189c01d7, type: 3}
|
||||
propertyPath: m_Layer
|
||||
value: 8
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 2060291783277227268, guid: 1242b8c74c7b44c2ebdadb10189c01d7, type: 3}
|
||||
propertyPath: m_LocalScale.x
|
||||
value: 0.19592836
|
||||
@ -240,6 +244,22 @@ PrefabInstance:
|
||||
propertyPath: m_Name
|
||||
value: PropLantern_001
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4581555104234214369, guid: 1242b8c74c7b44c2ebdadb10189c01d7, type: 3}
|
||||
propertyPath: m_Layer
|
||||
value: 8
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 5358278810492944094, guid: 1242b8c74c7b44c2ebdadb10189c01d7, type: 3}
|
||||
propertyPath: m_Layer
|
||||
value: 8
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8000566592514339547, guid: 1242b8c74c7b44c2ebdadb10189c01d7, type: 3}
|
||||
propertyPath: m_Layer
|
||||
value: 8
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8142201499108093331, guid: 1242b8c74c7b44c2ebdadb10189c01d7, type: 3}
|
||||
propertyPath: m_Layer
|
||||
value: 8
|
||||
objectReference: {fileID: 0}
|
||||
m_RemovedComponents: []
|
||||
m_RemovedGameObjects: []
|
||||
m_AddedGameObjects: []
|
||||
@ -322,6 +342,18 @@ PrefabInstance:
|
||||
propertyPath: m_Name
|
||||
value: Prop_WallColumn01
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4438924429928472453, guid: 1d634c3376e4a4684bc984ced9134847, type: 3}
|
||||
propertyPath: m_Layer
|
||||
value: 8
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 7856941568993672895, guid: 1d634c3376e4a4684bc984ced9134847, type: 3}
|
||||
propertyPath: m_Layer
|
||||
value: 8
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8282162905857597943, guid: 1d634c3376e4a4684bc984ced9134847, type: 3}
|
||||
propertyPath: m_Layer
|
||||
value: 8
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8467019391491472137, guid: 1d634c3376e4a4684bc984ced9134847, type: 3}
|
||||
propertyPath: 'm_Materials.Array.data[0]'
|
||||
value:
|
||||
@ -360,6 +392,10 @@ PrefabInstance:
|
||||
serializedVersion: 3
|
||||
m_TransformParent: {fileID: 8881739536043914635}
|
||||
m_Modifications:
|
||||
- target: {fileID: 469687031743160198, guid: 1242b8c74c7b44c2ebdadb10189c01d7, type: 3}
|
||||
propertyPath: m_Layer
|
||||
value: 8
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 2060291783277227268, guid: 1242b8c74c7b44c2ebdadb10189c01d7, type: 3}
|
||||
propertyPath: m_LocalScale.x
|
||||
value: 0.19592836
|
||||
@ -420,6 +456,22 @@ PrefabInstance:
|
||||
propertyPath: m_Name
|
||||
value: PropLantern
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4581555104234214369, guid: 1242b8c74c7b44c2ebdadb10189c01d7, type: 3}
|
||||
propertyPath: m_Layer
|
||||
value: 8
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 5358278810492944094, guid: 1242b8c74c7b44c2ebdadb10189c01d7, type: 3}
|
||||
propertyPath: m_Layer
|
||||
value: 8
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8000566592514339547, guid: 1242b8c74c7b44c2ebdadb10189c01d7, type: 3}
|
||||
propertyPath: m_Layer
|
||||
value: 8
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 8142201499108093331, guid: 1242b8c74c7b44c2ebdadb10189c01d7, type: 3}
|
||||
propertyPath: m_Layer
|
||||
value: 8
|
||||
objectReference: {fileID: 0}
|
||||
m_RemovedComponents: []
|
||||
m_RemovedGameObjects: []
|
||||
m_AddedGameObjects: []
|
||||
|
File diff suppressed because it is too large
Load Diff
71
Assets/_DDD/_Raw/Environments/Env_Mesh_Geometry.prefab
Normal file
71
Assets/_DDD/_Raw/Environments/Env_Mesh_Geometry.prefab
Normal file
@ -0,0 +1,71 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!1001 &8949086991938714667
|
||||
PrefabInstance:
|
||||
m_ObjectHideFlags: 0
|
||||
serializedVersion: 2
|
||||
m_Modification:
|
||||
serializedVersion: 3
|
||||
m_TransformParent: {fileID: 0}
|
||||
m_Modifications:
|
||||
- target: {fileID: 1063320636771556828, guid: 470067ee89f8f4e63ababdb9c302bd74, type: 3}
|
||||
propertyPath: m_Layer
|
||||
value: 8
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 1241020487330251412, guid: 470067ee89f8f4e63ababdb9c302bd74, type: 3}
|
||||
propertyPath: m_Layer
|
||||
value: 8
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4732070946668798894, guid: 470067ee89f8f4e63ababdb9c302bd74, type: 3}
|
||||
propertyPath: m_Name
|
||||
value: Env_Mesh_Geometry
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4732070946668798894, guid: 470067ee89f8f4e63ababdb9c302bd74, type: 3}
|
||||
propertyPath: m_Layer
|
||||
value: 8
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 7109183892527308107, guid: 470067ee89f8f4e63ababdb9c302bd74, type: 3}
|
||||
propertyPath: m_LocalPosition.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 7109183892527308107, guid: 470067ee89f8f4e63ababdb9c302bd74, type: 3}
|
||||
propertyPath: m_LocalPosition.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 7109183892527308107, guid: 470067ee89f8f4e63ababdb9c302bd74, type: 3}
|
||||
propertyPath: m_LocalPosition.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 7109183892527308107, guid: 470067ee89f8f4e63ababdb9c302bd74, type: 3}
|
||||
propertyPath: m_LocalRotation.w
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 7109183892527308107, guid: 470067ee89f8f4e63ababdb9c302bd74, type: 3}
|
||||
propertyPath: m_LocalRotation.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 7109183892527308107, guid: 470067ee89f8f4e63ababdb9c302bd74, type: 3}
|
||||
propertyPath: m_LocalRotation.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 7109183892527308107, guid: 470067ee89f8f4e63ababdb9c302bd74, type: 3}
|
||||
propertyPath: m_LocalRotation.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 7109183892527308107, guid: 470067ee89f8f4e63ababdb9c302bd74, type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 7109183892527308107, guid: 470067ee89f8f4e63ababdb9c302bd74, type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 7109183892527308107, guid: 470067ee89f8f4e63ababdb9c302bd74, type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
m_RemovedComponents: []
|
||||
m_RemovedGameObjects: []
|
||||
m_AddedGameObjects: []
|
||||
m_AddedComponents: []
|
||||
m_SourcePrefab: {fileID: 100100000, guid: 470067ee89f8f4e63ababdb9c302bd74, type: 3}
|
@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 5b92de080ada94a51853bbc4570a6c12
|
||||
PrefabImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@ -8,10 +8,22 @@ PrefabInstance:
|
||||
serializedVersion: 3
|
||||
m_TransformParent: {fileID: 0}
|
||||
m_Modifications:
|
||||
- target: {fileID: 1063320636771556828, guid: 470067ee89f8f4e63ababdb9c302bd74, type: 3}
|
||||
propertyPath: m_Layer
|
||||
value: 7
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 1241020487330251412, guid: 470067ee89f8f4e63ababdb9c302bd74, type: 3}
|
||||
propertyPath: m_Layer
|
||||
value: 7
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4732070946668798894, guid: 470067ee89f8f4e63ababdb9c302bd74, type: 3}
|
||||
propertyPath: m_Name
|
||||
value: Env_Mesh_Prop
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 4732070946668798894, guid: 470067ee89f8f4e63ababdb9c302bd74, type: 3}
|
||||
propertyPath: m_Layer
|
||||
value: 7
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 7109183892527308107, guid: 470067ee89f8f4e63ababdb9c302bd74, type: 3}
|
||||
propertyPath: m_LocalPosition.x
|
||||
value: 0
|
||||
|
@ -8,6 +8,10 @@ PrefabInstance:
|
||||
serializedVersion: 3
|
||||
m_TransformParent: {fileID: 0}
|
||||
m_Modifications:
|
||||
- target: {fileID: 2034852835707859355, guid: 536180d2161f3479e8f24b85cda06fd2, type: 3}
|
||||
propertyPath: m_Layer
|
||||
value: 9
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 2084900895006646920, guid: 536180d2161f3479e8f24b85cda06fd2, type: 3}
|
||||
propertyPath: m_LocalPosition.x
|
||||
value: 0
|
||||
@ -48,6 +52,10 @@ PrefabInstance:
|
||||
propertyPath: m_LocalEulerAnglesHint.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 2657423305549939101, guid: 536180d2161f3479e8f24b85cda06fd2, type: 3}
|
||||
propertyPath: m_Layer
|
||||
value: 9
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 3463077198689503016, guid: 536180d2161f3479e8f24b85cda06fd2, type: 3}
|
||||
propertyPath: 'm_Materials.Array.data[0]'
|
||||
value:
|
||||
@ -56,6 +64,10 @@ PrefabInstance:
|
||||
propertyPath: m_Name
|
||||
value: Env_Unlit_Food
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 6022500804847150892, guid: 536180d2161f3479e8f24b85cda06fd2, type: 3}
|
||||
propertyPath: m_Layer
|
||||
value: 9
|
||||
objectReference: {fileID: 0}
|
||||
m_RemovedComponents: []
|
||||
m_RemovedGameObjects: []
|
||||
m_AddedGameObjects: []
|
||||
|
8
Assets/_DDD/_Raw/Environments/Geometries.meta
Normal file
8
Assets/_DDD/_Raw/Environments/Geometries.meta
Normal file
@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 56e9e7f8bf44849788ca7f287589030c
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
@ -13,8 +13,10 @@ public static class AssetPostprocessorEnvironment
|
||||
private static readonly HashSet<string> TileTargetPaths = new();
|
||||
private static readonly HashSet<string> PropTargetPaths = new();
|
||||
private static readonly HashSet<string> FoodTargetPaths = new();
|
||||
private static readonly HashSet<string> GeometryTargetPaths = new();
|
||||
|
||||
private const string BasePrefabPath_Prop = "Assets/_DDD/_Raw/Environments/Env_Mesh_Prop.prefab";
|
||||
private const string BasePrefabPath_Geometry = "Assets/_DDD/_Raw/Environments/Env_Mesh_Geometry.prefab";
|
||||
private const string BasePrefabPath_Tile = "Assets/_DDD/_Raw/Environments/Env_Sprite_Background.prefab";
|
||||
private const string BasePrefabPath_Food = "Assets/_DDD/_Raw/Environments/Env_Unlit_Food.prefab";
|
||||
private const string ShaderName = "Universal Render Pipeline/LitEnvironment";
|
||||
@ -26,7 +28,8 @@ public enum EnvPrefabType
|
||||
{
|
||||
Tile,
|
||||
Prop,
|
||||
Food
|
||||
Food,
|
||||
Geometry
|
||||
}
|
||||
|
||||
public static void OnPreprocessTexture(TextureImporter importer)
|
||||
@ -82,6 +85,15 @@ private static void AddTargetPath(string path)
|
||||
{
|
||||
FoodTargetPaths.Add(path);
|
||||
}
|
||||
else if(upperPath.Contains(PathConstants.RawEnvPathUpper_Geometry) &&
|
||||
upperPath.Contains(ExtenstionConstants.PngExtensionUpper))
|
||||
{
|
||||
GeometryTargetPaths.Add(path);
|
||||
}
|
||||
else
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
public static void BuildMaterialAndPrefab(string path, EnvPrefabType prefabType)
|
||||
@ -248,6 +260,7 @@ private static string GetBasePrefabPath(EnvPrefabType prefabType)
|
||||
EnvPrefabType.Prop => BasePrefabPath_Prop,
|
||||
EnvPrefabType.Tile => BasePrefabPath_Tile,
|
||||
EnvPrefabType.Food => BasePrefabPath_Food,
|
||||
EnvPrefabType.Geometry => BasePrefabPath_Geometry,
|
||||
_ => BasePrefabPath_Prop
|
||||
};
|
||||
}
|
||||
@ -269,9 +282,15 @@ public static void BuildTarget()
|
||||
BuildMaterialAndPrefab(Utils.FolderPath(path), EnvPrefabType.Food);
|
||||
}
|
||||
|
||||
foreach (var path in GeometryTargetPaths)
|
||||
{
|
||||
BuildMaterialAndPrefab(Utils.FolderPath(path), EnvPrefabType.Geometry);
|
||||
}
|
||||
|
||||
TileTargetPaths.Clear();
|
||||
PropTargetPaths.Clear();
|
||||
FoodTargetPaths.Clear();
|
||||
GeometryTargetPaths.Clear();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -47,6 +47,7 @@ public static class PathConstants
|
||||
public const string RawEnvPathUpper_Tile = "ASSETS/_DDD/_RAW/ENVIRONMENTS/TILES/";
|
||||
public const string RawEnvPathUpper_Prop = "ASSETS/_DDD/_RAW/ENVIRONMENTS/PROPS/";
|
||||
public const string RawEnvPathUpper_Food = "ASSETS/_DDD/_RAW/ENVIRONMENTS/FOODS/";
|
||||
public const string RawEnvPathUpper_Geometry = "ASSETS/_DDD/_RAW/ENVIRONMENTS/GEOMETRIES/";
|
||||
}
|
||||
|
||||
public static class ExtenstionConstants
|
||||
|
@ -13,8 +13,8 @@ TagManager:
|
||||
- UI
|
||||
- Player
|
||||
- Prop
|
||||
-
|
||||
-
|
||||
- Geometry
|
||||
- Item
|
||||
-
|
||||
-
|
||||
-
|
||||
|
Loading…
Reference in New Issue
Block a user