This commit is contained in:
wsh
2025-05-29 14:18:21 +09:00
5 changed files with 32 additions and 22 deletions

View File

@@ -11,16 +11,20 @@ Material:
m_Shader: {fileID: 4800000, guid: 933532a4fcc9baf4fa0491de14d08ed7, type: 3} m_Shader: {fileID: 4800000, guid: 933532a4fcc9baf4fa0491de14d08ed7, type: 3}
m_Parent: {fileID: 0} m_Parent: {fileID: 0}
m_ModifiedSerializedProperties: 0 m_ModifiedSerializedProperties: 0
m_ValidKeywords: [] m_ValidKeywords:
- _ALPHAPREMULTIPLY_ON
- _SURFACE_TYPE_TRANSPARENT
m_InvalidKeywords: [] m_InvalidKeywords: []
m_LightmapFlags: 4 m_LightmapFlags: 4
m_EnableInstancingVariants: 1 m_EnableInstancingVariants: 1
m_DoubleSidedGI: 0 m_DoubleSidedGI: 0
m_CustomRenderQueue: -1 m_CustomRenderQueue: 3000
stringTagMap: stringTagMap:
RenderType: Opaque RenderType: Transparent
disabledShaderPasses: disabledShaderPasses:
- MOTIONVECTORS - MOTIONVECTORS
- DepthOnly
- SHADOWCASTER
m_LockedProperties: m_LockedProperties:
m_SavedProperties: m_SavedProperties:
serializedVersion: 3 serializedVersion: 3
@@ -95,8 +99,8 @@ Material:
- _Cutoff: 0.5 - _Cutoff: 0.5
- _DetailAlbedoMapScale: 1 - _DetailAlbedoMapScale: 1
- _DetailNormalMapScale: 1 - _DetailNormalMapScale: 1
- _DstBlend: 0 - _DstBlend: 10
- _DstBlendAlpha: 0 - _DstBlendAlpha: 10
- _EnvironmentReflections: 1 - _EnvironmentReflections: 1
- _GlossMapScale: 1 - _GlossMapScale: 1
- _Glossiness: 0 - _Glossiness: 0
@@ -112,13 +116,13 @@ Material:
- _SpecularHighlights: 1 - _SpecularHighlights: 1
- _SrcBlend: 1 - _SrcBlend: 1
- _SrcBlendAlpha: 1 - _SrcBlendAlpha: 1
- _Surface: 0 - _Surface: 1
- _UVSec: 0 - _UVSec: 0
- _WorkflowMode: 1 - _WorkflowMode: 1
- _ZWrite: 1 - _ZWrite: 0
m_Colors: m_Colors:
- _BaseColor: {r: 1, g: 1, b: 1, a: 1} - _BaseColor: {r: 0.2735849, g: 0.2735849, b: 0.2735849, a: 1}
- _Color: {r: 1, g: 1, b: 1, a: 1} - _Color: {r: 0.2735849, g: 0.2735849, b: 0.2735849, a: 1}
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1} - _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
- _SpecColor: {r: 0.2, g: 0.2, b: 0.2, a: 1} - _SpecColor: {r: 0.2, g: 0.2, b: 0.2, a: 1}
m_BuildTextureStacks: [] m_BuildTextureStacks: []

View File

@@ -7030,7 +7030,7 @@ GameObject:
m_Component: m_Component:
- component: {fileID: 5740182585067874946} - component: {fileID: 5740182585067874946}
m_Layer: 0 m_Layer: 0
m_Name: HFF11AGN0400_1 m_Name: Stacker
m_TagString: Untagged m_TagString: Untagged
m_Icon: {fileID: 0} m_Icon: {fileID: 0}
m_NavMeshLayer: 0 m_NavMeshLayer: 0

View File

@@ -36,11 +36,11 @@ namespace Studio.Manage
fbxFileManager.onLoadComplete += OnLoadCustomAsset; fbxFileManager.onLoadComplete += OnLoadCustomAsset;
onAddSettingPaths += canvas_Popup.panel_assetsetting.SetAssetPathItmes; onAddSettingPaths += canvas_Popup.panel_assetsetting.SetAssetPathItmes;
onSetAssetSetting += canvas_Popup.panel_assetsetting.SetAssetManager; onSetAssetSetting += canvas_Popup.panel_assetsetting.SetAssetManager;
onAssetManagerDatas += (data) => projectManager.OpenProjectSettingsDataAfterDataLoad(); onAssetManagerDatas += (data) => projectManager.OpenProjectSettingsDataAfterDataLoad();
} }
public void ClearFolderPathList() public void ClearFolderPathList()
{ {
localAssetPaths.Clear(); localAssetPaths.Clear();
@@ -68,7 +68,7 @@ namespace Studio.Manage
if (folderPaths == null) if (folderPaths == null)
return; return;
foreach(var folderPath in folderPaths) foreach (var folderPath in folderPaths)
{ {
if (folderPathList.Contains(folderPath)) if (folderPathList.Contains(folderPath))
{ {
@@ -77,7 +77,7 @@ namespace Studio.Manage
folderPathList.Add(folderPath); folderPathList.Add(folderPath);
localAssetPaths.Add(folderPath); localAssetPaths.Add(folderPath);
} }
LoadLocalFBXDirectorys(); LoadLocalFBXDirectorys();
} }
@@ -88,7 +88,7 @@ namespace Studio.Manage
fbxFileManager.LoadResource(assets); fbxFileManager.LoadResource(assets);
} }
public void LoadLocalFBXDirectorys() public void LoadLocalFBXDirectorys()
{ {
var fbxFileManager = ManagerHub.instance.Get<FBXFileManager>(); var fbxFileManager = ManagerHub.instance.Get<FBXFileManager>();

View File

@@ -50,6 +50,8 @@ namespace Studio.Dynamic.Manager
continue; continue;
} }
var item = CreateAGV(e.Type, key, value); var item = CreateAGV(e.Type, key, value);
if (item == null)
continue;
SetRenderObject(key, item.GetComponent<CustomAssetRenderObject>()); SetRenderObject(key, item.GetComponent<CustomAssetRenderObject>());
agvs.Add(item); agvs.Add(item);
} }
@@ -57,23 +59,27 @@ namespace Studio.Dynamic.Manager
private AGV CreateAGV(string type, string id, Dictionary<string, string> entity) private AGV CreateAGV(string type, string id, Dictionary<string, string> entity)
{ {
var xPos = entity.FirstOrDefault(x => x.Key.Equals("X", StringComparison.OrdinalIgnoreCase));
var yPos = entity.FirstOrDefault(x => x.Key.Equals("Y", StringComparison.OrdinalIgnoreCase));
float.TryParse(xPos.Value, out var x);
float.TryParse(yPos.Value, out var y);
if (y * 0.001f > 200f)
return null;
var agv = ManagerHub.instance.Get<CustomAssetConnector>().CreateAsset(asset.assetData.assetName).AddComponent<AGV>(); var agv = ManagerHub.instance.Get<CustomAssetConnector>().CreateAsset(asset.assetData.assetName).AddComponent<AGV>();
agv.gameObject.SetActive(true); agv.gameObject.SetActive(true);
agv.transform.position = Vector3.zero; agv.transform.position = Vector3.zero;
agv.name = id; agv.name = id;
agv.SetMoveSpeed(AGVMoveSpeed); agv.SetMoveSpeed(AGVMoveSpeed);
agv.SetRotateSpeed(AGVRotateSpeed); agv.SetRotateSpeed(AGVRotateSpeed);
var xPos = entity.FirstOrDefault(x => x.Key.Equals("X", StringComparison.OrdinalIgnoreCase));
var yPos = entity.FirstOrDefault(x => x.Key.Equals("Y", StringComparison.OrdinalIgnoreCase));
float.TryParse(xPos.Value, out var x);
float.TryParse(yPos.Value, out var y);
var pos = new Vector3(x * 0.001f, 0, y * 0.001f); var pos = new Vector3(x * 0.001f, 0, y * 0.001f);
agv.Init(type, pos); agv.Init(type, pos);
return agv; return agv;
} }
private void SetRenderObject(string key ,CustomAssetRenderObject obj) private void SetRenderObject(string key, CustomAssetRenderObject obj)
{ {
obj.LoadCreate(key, asset.renderObject.topic, asset.renderObject.componetKey, asset.renderObject.isAutoId); obj.LoadCreate(key, asset.renderObject.topic, asset.renderObject.componetKey, asset.renderObject.isAutoId);
} }

View File

@@ -13,7 +13,7 @@ PlayerSettings:
useOnDemandResources: 0 useOnDemandResources: 0
accelerometerFrequency: 60 accelerometerFrequency: 60
companyName: DefaultCompany companyName: DefaultCompany
productName: XRISEditor productName: Octopus Studio
defaultCursor: {fileID: 0} defaultCursor: {fileID: 0}
cursorHotspot: {x: 0, y: 0} cursorHotspot: {x: 0, y: 0}
m_SplashScreenBackgroundColor: {r: 0.13725491, g: 0.12156863, b: 0.1254902, a: 1} m_SplashScreenBackgroundColor: {r: 0.13725491, g: 0.12156863, b: 0.1254902, a: 1}