프레임 수치 조절 스크립트 추가 및 디렉토리 경로 설정을 위한 스크립트 추가
- 윈도우에서 경로 설정 노출 팝업창 기능을 사용하기 위해 Project Settings > Other Settings > Configuration > Api Compatibility Level = .Net Framework로 변
This commit is contained in:
6
.idea/.idea.ScreenCapture/.idea/copilot.data.migration.agent.xml
generated
Normal file
6
.idea/.idea.ScreenCapture/.idea/copilot.data.migration.agent.xml
generated
Normal file
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="AgentMigrationStateService">
|
||||
<option name="migrationStatus" value="COMPLETED" />
|
||||
</component>
|
||||
</project>
|
||||
6
.idea/.idea.ScreenCapture/.idea/copilot.data.migration.ask.xml
generated
Normal file
6
.idea/.idea.ScreenCapture/.idea/copilot.data.migration.ask.xml
generated
Normal file
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="AskMigrationStateService">
|
||||
<option name="migrationStatus" value="COMPLETED" />
|
||||
</component>
|
||||
</project>
|
||||
6
.idea/.idea.ScreenCapture/.idea/copilot.data.migration.ask2agent.xml
generated
Normal file
6
.idea/.idea.ScreenCapture/.idea/copilot.data.migration.ask2agent.xml
generated
Normal file
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="Ask2AgentMigrationStateService">
|
||||
<option name="migrationStatus" value="COMPLETED" />
|
||||
</component>
|
||||
</project>
|
||||
6
.idea/.idea.ScreenCapture/.idea/copilot.data.migration.edit.xml
generated
Normal file
6
.idea/.idea.ScreenCapture/.idea/copilot.data.migration.edit.xml
generated
Normal file
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="EditMigrationStateService">
|
||||
<option name="migrationStatus" value="COMPLETED" />
|
||||
</component>
|
||||
</project>
|
||||
125
.idea/.idea.ScreenCapture/.idea/workspace.xml
generated
125
.idea/.idea.ScreenCapture/.idea/workspace.xml
generated
@@ -1,12 +1,25 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ChangeListManager">
|
||||
<list default="true" id="ad175fbc-954b-46da-8e6a-90e2f18e40ec" name="변경" comment="" />
|
||||
<list default="true" id="ad175fbc-954b-46da-8e6a-90e2f18e40ec" name="변경" comment="">
|
||||
<change beforePath="$PROJECT_DIR$/.idea/.idea.ScreenCapture/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/.idea.ScreenCapture/.idea/workspace.xml" afterDir="false" />
|
||||
<change beforePath="$PROJECT_DIR$/Assets/Main.unity" beforeDir="false" afterPath="$PROJECT_DIR$/Assets/Main.unity" afterDir="false" />
|
||||
</list>
|
||||
<option name="SHOW_DIALOG" value="false" />
|
||||
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
||||
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
|
||||
<option name="LAST_RESOLUTION" value="IGNORE" />
|
||||
</component>
|
||||
<component name="Git.Settings">
|
||||
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
|
||||
</component>
|
||||
<component name="KubernetesApiPersistence">{}</component>
|
||||
<component name="KubernetesApiProvider">{
|
||||
"isMigrated": true
|
||||
}</component>
|
||||
<component name="ProjectColorInfo">{
|
||||
"associatedIndex": 5
|
||||
}</component>
|
||||
<component name="ProjectId" id="36Yt39bO2gjPjKyNGF3YLvNZJqD" />
|
||||
<component name="ProjectViewState">
|
||||
<option name="hideEmptyMiddlePackages" value="true" />
|
||||
@@ -14,23 +27,119 @@
|
||||
</component>
|
||||
<component name="PropertiesComponent">{
|
||||
"keyToString": {
|
||||
"settings.editor.selected.configurable": "preferences.language.and.region"
|
||||
"RunOnceActivity.ShowReadmeOnStart": "true",
|
||||
"RunOnceActivity.TerminalTabsStorage.copyFrom.TerminalArrangementManager.252": "true",
|
||||
"RunOnceActivity.git.unshallow": "true",
|
||||
"RunOnceActivity.typescript.service.memoryLimit.init": "true",
|
||||
"git-widget-placeholder": "main",
|
||||
"nodejs_package_manager_path": "npm",
|
||||
"settings.editor.selected.configurable": "preferences.pluginManager",
|
||||
"vue.rearranger.settings.migration": "true"
|
||||
}
|
||||
}</component>
|
||||
<component name="RunManager" selected="Unity 에디터에 연결.Attach to Unity Editor">
|
||||
<configuration name="유닛 테스트(배치 모드)" type="RunUnityExe" factoryName="Unity Executable">
|
||||
<option name="EXE_PATH" value="/Applications/Unity/Hub/Editor/6000.2.15f1/Unity.app/Contents/MacOS/Unity" />
|
||||
<option name="PROGRAM_PARAMETERS" value="-runTests -batchmode -projectPath $PROJECT_DIR$ -testResults Logs/results.xml -logFile Logs/Editor.log -testPlatform EditMode -debugCodeOptimization" />
|
||||
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" />
|
||||
<option name="PASS_PARENT_ENVS" value="1" />
|
||||
<option name="ENV_FILE_PATHS" value="" />
|
||||
<option name="REDIRECT_INPUT_PATH" value="" />
|
||||
<option name="MIXED_MODE_DEBUG" value="0" />
|
||||
<method v="2" />
|
||||
</configuration>
|
||||
<configuration name="Start Unity" type="RunUnityExe" factoryName="Unity Executable">
|
||||
<option name="EXE_PATH" value="/Applications/Unity/Hub/Editor/6000.2.15f1/Unity.app/Contents/MacOS/Unity" />
|
||||
<option name="PROGRAM_PARAMETERS" value="-projectPath $PROJECT_DIR$ -debugCodeOptimization" />
|
||||
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" />
|
||||
<option name="PASS_PARENT_ENVS" value="1" />
|
||||
<option name="ENV_FILE_PATHS" value="" />
|
||||
<option name="REDIRECT_INPUT_PATH" value="" />
|
||||
<option name="MIXED_MODE_DEBUG" value="0" />
|
||||
<method v="2" />
|
||||
</configuration>
|
||||
<configuration name="Unit Tests (batch mode)" type="RunUnityExe" factoryName="Unity Executable">
|
||||
<option name="EXE_PATH" value="/Applications/Unity/Hub/Editor/6000.2.15f1/Unity.app/Contents/MacOS/Unity" />
|
||||
<option name="PROGRAM_PARAMETERS" value="-runTests -batchmode -projectPath $PROJECT_DIR$ -testResults Logs/results.xml -logFile Logs/Editor.log -testPlatform EditMode -debugCodeOptimization" />
|
||||
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" />
|
||||
<option name="PASS_PARENT_ENVS" value="1" />
|
||||
<option name="ENV_FILE_PATHS" value="" />
|
||||
<option name="REDIRECT_INPUT_PATH" value="" />
|
||||
<option name="MIXED_MODE_DEBUG" value="0" />
|
||||
<method v="2" />
|
||||
</configuration>
|
||||
<configuration name="Unity 시작" type="RunUnityExe" factoryName="Unity Executable">
|
||||
<option name="EXE_PATH" value="/Applications/Unity/Hub/Editor/6000.2.15f1/Unity.app/Contents/MacOS/Unity" />
|
||||
<option name="PROGRAM_PARAMETERS" value="-projectPath $PROJECT_DIR$ -debugCodeOptimization" />
|
||||
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" />
|
||||
<option name="PASS_PARENT_ENVS" value="1" />
|
||||
<option name="ENV_FILE_PATHS" value="" />
|
||||
<option name="REDIRECT_INPUT_PATH" value="" />
|
||||
<option name="MIXED_MODE_DEBUG" value="0" />
|
||||
<method v="2" />
|
||||
</configuration>
|
||||
<configuration name="Attach to Unity Editor" type="UNITY_DEBUG_RUN_CONFIGURATION" factoryName="Unity Debug" show_console_on_std_err="false" show_console_on_std_out="false" port="50000" address="localhost">
|
||||
<option name="allowRunningInParallel" value="false" />
|
||||
<option name="listenPortForConnections" value="false" />
|
||||
<option name="pid" />
|
||||
<option name="projectPathOnTarget" />
|
||||
<option name="runtimes">
|
||||
<list />
|
||||
</option>
|
||||
<option name="selectedOptions">
|
||||
<list />
|
||||
</option>
|
||||
<option name="useMixedMode" value="false" />
|
||||
<method v="2" />
|
||||
</configuration>
|
||||
<configuration name="Unity 에디터에 연결" type="UNITY_DEBUG_RUN_CONFIGURATION" factoryName="Unity Debug" show_console_on_std_err="false" show_console_on_std_out="false" port="50000" address="localhost">
|
||||
<option name="allowRunningInParallel" value="false" />
|
||||
<option name="listenPortForConnections" value="false" />
|
||||
<option name="pid" />
|
||||
<option name="projectPathOnTarget" />
|
||||
<option name="runtimes">
|
||||
<list />
|
||||
</option>
|
||||
<option name="selectedOptions">
|
||||
<list />
|
||||
</option>
|
||||
<option name="useMixedMode" value="false" />
|
||||
<method v="2" />
|
||||
</configuration>
|
||||
<configuration name="연결 대상" type="UnityDevicePlayer" factoryName="UnityAttachToDevicePlayer">
|
||||
<method v="2" />
|
||||
</configuration>
|
||||
</component>
|
||||
<component name="TaskManager">
|
||||
<task active="true" id="Default" summary="Default task">
|
||||
<changelist id="ad175fbc-954b-46da-8e6a-90e2f18e40ec" name="변경" comment="" />
|
||||
<created>1743409431936</created>
|
||||
<option name="number" value="Default" />
|
||||
<option name="presentableId" value="Default" />
|
||||
<updated>1743409431936</updated>
|
||||
<workItem from="1743409434026" duration="59000" />
|
||||
<workItem from="1765197399514" duration="121000" />
|
||||
<workItem from="1765198531543" duration="267000" />
|
||||
<workItem from="1765199915866" duration="17000" />
|
||||
<workItem from="1765335839421" duration="1382000" />
|
||||
<workItem from="1765337350429" duration="1028000" />
|
||||
<workItem from="1765338425434" duration="478000" />
|
||||
<workItem from="1765338925722" duration="1639000" />
|
||||
<workItem from="1765341739936" duration="7000" />
|
||||
<workItem from="1765341823960" duration="71000" />
|
||||
</task>
|
||||
<servers />
|
||||
</component>
|
||||
<component name="TypeScriptGeneratedFilesManager">
|
||||
<option name="version" value="3" />
|
||||
</component>
|
||||
<component name="UnityProjectConfiguration" hasMinimizedUI="true" />
|
||||
<component name="UnityProjectDiscoverer">
|
||||
<option name="hasUnityReference" value="true" />
|
||||
<option name="unityProject" value="true" />
|
||||
<option name="unityProjectFolder" value="true" />
|
||||
</component>
|
||||
<component name="UnityUnitTestConfiguration" currentTestLauncher="Both" />
|
||||
<component name="VcsManagerConfiguration">
|
||||
<option name="CLEAR_INITIAL_COMMIT_MESSAGE" value="true" />
|
||||
</component>
|
||||
@@ -52,4 +161,16 @@
|
||||
</breakpoints>
|
||||
</breakpoint-manager>
|
||||
</component>
|
||||
<component name="XSLT-Support.FileAssociations.UIState">
|
||||
<expand />
|
||||
<select />
|
||||
</component>
|
||||
<component name="github-copilot-workspace">
|
||||
<instructionFileLocations>
|
||||
<option value=".github/instructions" />
|
||||
</instructionFileLocations>
|
||||
<promptFileLocations>
|
||||
<option value=".github/prompts" />
|
||||
</promptFileLocations>
|
||||
</component>
|
||||
</project>
|
||||
@@ -409,7 +409,7 @@ RectTransform:
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 1, y: 0}
|
||||
m_AnchorMax: {x: 1, y: 1}
|
||||
m_AnchoredPosition: {x: -20, y: -15}
|
||||
m_AnchoredPosition: {x: -20, y: -15.0000305}
|
||||
m_SizeDelta: {x: 300, y: -80}
|
||||
m_Pivot: {x: 1, y: 0.5}
|
||||
--- !u!114 &240954700
|
||||
@@ -793,7 +793,7 @@ RectTransform:
|
||||
m_AnchorMin: {x: 0, y: 0}
|
||||
m_AnchorMax: {x: 1, y: 1}
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: -20, y: 0}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!114 &598475234
|
||||
MonoBehaviour:
|
||||
@@ -1014,7 +1014,7 @@ RectTransform:
|
||||
m_AnchorMin: {x: 0, y: 0}
|
||||
m_AnchorMax: {x: 1, y: 1}
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: -20, y: 0}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!114 &694708555
|
||||
MonoBehaviour:
|
||||
@@ -1799,6 +1799,7 @@ GameObject:
|
||||
- component: {fileID: 1251167096}
|
||||
- component: {fileID: 1251167098}
|
||||
- component: {fileID: 1251167097}
|
||||
- component: {fileID: 1251167099}
|
||||
m_Layer: 5
|
||||
m_Name: Panel
|
||||
m_TagString: Untagged
|
||||
@@ -1867,6 +1868,19 @@ CanvasRenderer:
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1251167095}
|
||||
m_CullTransparentMesh: 1
|
||||
--- !u!114 &1251167099
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1251167095}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 60ebf93c4e7b5469f80592685f22f30b, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier: Assembly-CSharp::DirectorySelect
|
||||
fileDirectory:
|
||||
--- !u!1 &1259274612
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
@@ -2162,6 +2176,7 @@ GameObject:
|
||||
m_Component:
|
||||
- component: {fileID: 1438379832}
|
||||
- component: {fileID: 1438379833}
|
||||
- component: {fileID: 1438379834}
|
||||
m_Layer: 5
|
||||
m_Name: 'Directory '
|
||||
m_TagString: Untagged
|
||||
@@ -2216,6 +2231,19 @@ MonoBehaviour:
|
||||
m_ChildScaleWidth: 0
|
||||
m_ChildScaleHeight: 0
|
||||
m_ReverseArrangement: 0
|
||||
--- !u!114 &1438379834
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1438379831}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 60ebf93c4e7b5469f80592685f22f30b, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier: Assembly-CSharp::DirectorySelect
|
||||
fileDirectory:
|
||||
--- !u!1 &1507575551
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
@@ -2355,6 +2383,51 @@ CanvasRenderer:
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1606638825}
|
||||
m_CullTransparentMesh: 1
|
||||
--- !u!1 &1617455199
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 1617455200}
|
||||
- component: {fileID: 1617455201}
|
||||
m_Layer: 0
|
||||
m_Name: Manager
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!4 &1617455200
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1617455199}
|
||||
serializedVersion: 2
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 252.14377, y: 106.56857, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children: []
|
||||
m_Father: {fileID: 0}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!114 &1617455201
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1617455199}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 42951d307a33b48fa96e3f52010a70e3, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier: Assembly-CSharp::FrameCounter
|
||||
frame: 60
|
||||
--- !u!1 &1620218703
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
@@ -2944,7 +3017,7 @@ RectTransform:
|
||||
m_AnchorMin: {x: 0, y: 0}
|
||||
m_AnchorMax: {x: 1, y: 1}
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: -20, y: 0}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!114 &2042913672
|
||||
MonoBehaviour:
|
||||
@@ -3318,3 +3391,4 @@ SceneRoots:
|
||||
- {fileID: 619394802}
|
||||
- {fileID: 1840589191}
|
||||
- {fileID: 1771175907}
|
||||
- {fileID: 1617455200}
|
||||
|
||||
8
Assets/Scripts.meta
Normal file
8
Assets/Scripts.meta
Normal file
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 35a9e9b414fc94c19adeb3c6ed001fc2
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
87
Assets/Scripts/DirectorySelect.cs
Normal file
87
Assets/Scripts/DirectorySelect.cs
Normal file
@@ -0,0 +1,87 @@
|
||||
using TMPro;
|
||||
using UnityEngine;
|
||||
|
||||
|
||||
public class DirectorySelect : MonoBehaviour
|
||||
{
|
||||
const string BASIC_DIRECTORY = "C://";
|
||||
public string fileDirectory;
|
||||
|
||||
// OS별 기본 경로를 const 대신 static readonly 또는 private 필드로 정의
|
||||
private static readonly string WINDOWS_DIRECTORY = "C:\\"; // Windows 경로는 이중 백슬래시를 사용하거나 @"C:\" 형태로 사용하는 것이 일반적입니다.
|
||||
private static readonly string MAC_LINUX_DIRECTORY = "/Users/"; // macOS/Linux의 일반적인 사용자 홈 디렉토리 시작점
|
||||
|
||||
TMP_InputField inputDirectory;
|
||||
|
||||
// Start is called once before the first execution of Update after the MonoBehaviour is created
|
||||
void Start()
|
||||
{
|
||||
inputDirectory = GetComponentInChildren<TMP_InputField>();
|
||||
// OS에 맞는 기본 경로 설정
|
||||
string basicDirectory = GetBasicDirectory();
|
||||
inputDirectory.text = basicDirectory;
|
||||
|
||||
|
||||
}
|
||||
|
||||
public void Search()
|
||||
{
|
||||
StandaloneFileBrowser.OpenFolderPanelAsync(
|
||||
"폴더 선택", // 팝업 제목
|
||||
"", // 기본 디렉토리
|
||||
false, // 다중 폴더 선택 허용 여부 (false: 1개만 선택)
|
||||
(string[] paths) => {
|
||||
if (paths.Length > 0)
|
||||
{
|
||||
string selectedPath = paths[0];
|
||||
Debug.Log("선택된 폴더 경로: " + selectedPath);
|
||||
// TODO: 선택된 폴더 경로를 사용하여 로직 구현
|
||||
}
|
||||
else
|
||||
{
|
||||
Debug.Log("폴더 선택 취소됨.");
|
||||
}
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
// Update is called once per frame
|
||||
void Update()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 현재 실행 환경의 OS에 맞는 기본 경로를 반환합니다.
|
||||
/// </summary>
|
||||
string GetBasicDirectory()
|
||||
{
|
||||
// Application.platform을 사용하여 현재 OS를 확인합니다.
|
||||
// RuntimePlatform.OSXEditor, RuntimePlatform.OSXPlayer,
|
||||
// RuntimePlatform.LinuxEditor, RuntimePlatform.LinuxPlayer 등 여러 플랫폼이 있습니다.
|
||||
// macOS와 Linux는 파일 시스템 구조가 유사합니다 (슬래시 / 사용).
|
||||
// 유니티 편집기(Editor)나 빌드된 플레이어(Player) 모두에서 확인 가능합니다.
|
||||
|
||||
if (Application.platform == RuntimePlatform.WindowsPlayer ||
|
||||
Application.platform == RuntimePlatform.WindowsEditor)
|
||||
{
|
||||
// Windows
|
||||
return WINDOWS_DIRECTORY;
|
||||
}
|
||||
else if (Application.platform == RuntimePlatform.OSXPlayer ||
|
||||
Application.platform == RuntimePlatform.OSXEditor ||
|
||||
Application.platform == RuntimePlatform.LinuxPlayer ||
|
||||
Application.platform == RuntimePlatform.LinuxEditor)
|
||||
{
|
||||
// macOS (OSX) 및 Linux
|
||||
return MAC_LINUX_DIRECTORY;
|
||||
}
|
||||
else
|
||||
{
|
||||
// 기타 플랫폼 (예: WebGL, Android, iOS)
|
||||
// macOS/Linux와 동일한 경로를 기본값으로 사용하거나,
|
||||
// 해당 플랫폼에 맞는 다른 경로를 반환할 수 있습니다.
|
||||
return MAC_LINUX_DIRECTORY;
|
||||
}
|
||||
}
|
||||
}
|
||||
2
Assets/Scripts/DirectorySelect.cs.meta
Normal file
2
Assets/Scripts/DirectorySelect.cs.meta
Normal file
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 60ebf93c4e7b5469f80592685f22f30b
|
||||
13
Assets/Scripts/FrameCounter.cs
Normal file
13
Assets/Scripts/FrameCounter.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
using UnityEngine;
|
||||
|
||||
public class FrameCounter : MonoBehaviour
|
||||
{
|
||||
[SerializeField]
|
||||
[Range(0, 120)]
|
||||
int frame = 60;
|
||||
|
||||
void Start()
|
||||
{
|
||||
Application.targetFrameRate = frame;
|
||||
}
|
||||
}
|
||||
2
Assets/Scripts/FrameCounter.cs.meta
Normal file
2
Assets/Scripts/FrameCounter.cs.meta
Normal file
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 42951d307a33b48fa96e3f52010a70e3
|
||||
Reference in New Issue
Block a user