auto update functions

This commit is contained in:
kimura 2022-07-05 17:47:56 +09:00
parent 5ca401cddc
commit b9a0ff7532
3 changed files with 4 additions and 4 deletions

View File

@ -14,7 +14,7 @@ public class BuildCompressedPlayer : MonoBehaviour {
}
static void Build(string locationPathName, BuildTarget buildTarget){
BuildOptions opt = BuildOptions.SymlinkLibraries;
BuildOptions opt = BuildOptions.SymlinkSources;
// opt |= BuildOptions.Development;
opt |= BuildOptions.CompressWithLz4;
BuildPipeline.BuildPlayer(EditorBuildSettings.scenes, locationPathName, buildTarget, opt);

View File

@ -10,7 +10,7 @@ public class DevelopmentBuilder : IPreprocessBuildWithReport {
public void OnPreprocessBuild(BuildReport report) {
UnityEditor.EditorUserBuildSettings.development = true;
UnityEditor.EditorUserBuildSettings.iOSBuildConfigType = UnityEditor.iOSBuildType.Debug;
UnityEditor.EditorUserBuildSettings.iOSXcodeBuildConfig = UnityEditor.XcodeBuildConfig.Debug;
UnityEditor.AssetDatabase.SaveAssets();
}
}

View File

@ -3,7 +3,7 @@
#if UNITY_EDITOR
using System;
using System.Collections.Generic;
using UnityEditor.Experimental.SceneManagement;
#endif
public sealed class PrefabInPrefabSwapper : MonoBehaviour {
@ -39,7 +39,7 @@ public sealed class PrefabInPrefabSwapper : MonoBehaviour {
}
});
foreach(var from in swapList){
var to = (UnityEditor.PrefabUtility.InstantiatePrefab(info.SwapPrefab, PrefabStageUtility.GetCurrentPrefabStage().scene) as GameObject).transform;
var to = (UnityEditor.PrefabUtility.InstantiatePrefab(info.SwapPrefab, UnityEditor.SceneManagement.PrefabStageUtility.GetCurrentPrefabStage().scene) as GameObject).transform;
to.parent = from.parent;
to.localPosition = from.localPosition;
to.localRotation = from.localRotation;