Skip to content

Commit

Permalink
Merge pull request #1 from ayutaz/develop
Browse files Browse the repository at this point in the history
v0.1
  • Loading branch information
ayutaz authored Nov 10, 2024
2 parents fa74268 + aa00107 commit 33212a5
Show file tree
Hide file tree
Showing 45 changed files with 171,643 additions and 377 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Crete Pre-Release Page

on:
push:
tags:
- '*'
workflow_dispatch: {}

jobs:
release:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
projectPath:
- .
timeout-minutes: 15
steps:
- name: Checkout
uses: actions/checkout@v4.1.1
- name: Cache
uses: actions/cache@v3.3.2
with:
path: Library
key: Library-${{ hashFiles('Assets/**', 'Packages/**', 'ProjectSettings/**') }}
restore-keys: |
Library-
- name: Release
uses: softprops/action-gh-release@v0.1.15
with:
draft: true
generate_release_notes: true
name: ${{ github.event.pull_request.body }}
tag_name: ${{ github.event.pull_request.title }}
prerelease: false
files: |
build/${{ env.FILE_NAME }}.unitypackage
3 changes: 3 additions & 0 deletions Assets/Assets.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions Assets/Assets/Editor.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

77 changes: 77 additions & 0 deletions Assets/Assets/Editor/PackageExporter.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
using System.IO;
using System.Linq;
using UnityEditor;
using UnityEngine;

public static class PackageExporter
{
private const string RootDirectory = "Assets/UniRealtime/Scripts";
private const string FileName = "UniRealtime";

/// <summary>
/// パッケージの書き出し(エディタ上でのテスト用)
/// メニュー 「Tools > Export Unitypackage」をクリックで実行
/// </summary>
[MenuItem("Tools/Export Unitypackage")]
public static void ExportTestOnEditor()
{
var exportPath = EditorUtility.SaveFilePanel
(
"保存先を選択",
Application.dataPath,
$"{FileName}.unitypackage",
"unitypackage"
);

CreatePackage(RootDirectory, exportPath);
}

/// <summary>
/// パッケージの書き出し
/// GitHub Actionsから呼ばれる
/// </summary>
public static void Export()
{
CreatePackage(RootDirectory, $"build/{FileName}.unitypackage");
}

/// <summary>
/// パッケージの書き出し
/// </summary>
/// <param name="rootDirectory"></param>
/// <param name="exportPath"></param>
private static void CreatePackage(string rootDirectory, string exportPath)
{
SafeCreateDirectory(exportPath);
var assetsPaths = GetAllAssetsAtPath(rootDirectory);
AssetDatabase.ExportPackage(assetsPaths, exportPath, ExportPackageOptions.Default);
Debug.Log(
$"Export complete: {Path.GetFullPath(exportPath)}\nExport below files:\n{string.Join("\n", assetsPaths)}");
}

/// <summary>
/// ディレクトリが存在しない場合にディレクトリを作成する
/// </summary>
/// <param name="path"></param>
/// <returns></returns>
private static DirectoryInfo SafeCreateDirectory(string path)
{
var diParent = Directory.GetParent(path);
if (diParent == null || Directory.Exists(diParent.FullName)) return null;
return Directory.CreateDirectory(diParent.FullName);
}

/// <summary>
/// 指定したパス以下の全てのファイルパスを取得する
/// </summary>
/// <param name="root"></param>
/// <returns></returns>
private static string[] GetAllAssetsAtPath(string root)
{
return Directory.GetFiles(root, "*", SearchOption.AllDirectories)
.Where(x => !string.IsNullOrEmpty(x))
.Where(x => !x.EndsWith(".meta"))
.Where(x => x != ".DS_Store")
.ToArray();
}
}
3 changes: 3 additions & 0 deletions Assets/Assets/Editor/PackageExporter.cs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions Assets/Settings/Renderer2D.asset
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ MonoBehaviour:
m_EditorClassIdentifier:
debugShaders:
debugReplacementPS: {fileID: 4800000, guid: cf852408f2e174538bcd9b7fda1c5ae7, type: 3}
hdrDebugViewPS: {fileID: 4800000, guid: 573620ae32aec764abd4d728906d2587, type: 3}
m_RendererFeatures: []
m_RendererFeatureMap:
m_UseNativeRenderPass: 0
Expand Down Expand Up @@ -45,6 +46,8 @@ MonoBehaviour:
m_PointLightShader: {fileID: 4800000, guid: e35a31e1679aeff489e202f5cc4853d5, type: 3}
m_PointLightVolumeShader: {fileID: 4800000, guid: c7d04ca57e5449d49ad9cee1c604bc26, type: 3}
m_CoreBlitShader: {fileID: 4800000, guid: 93446b5c5339d4f00b85c159e1159b7c, type: 3}
m_BlitHDROverlay: {fileID: 4800000, guid: a89bee29cffa951418fc1e2da94d1959, type: 3}
m_CoreBlitColorAndDepthPS: {fileID: 4800000, guid: d104b2fc1ca6445babb8e90b0758136b, type: 3}
m_SamplingShader: {fileID: 4800000, guid: 04c410c9937594faa893a11dceb85f7e, type: 3}
m_ProjectedShadowShader: {fileID: 4800000, guid: ce09d4a80b88c5a4eb9768fab4f1ee00, type: 3}
m_SpriteShadowShader: {fileID: 4800000, guid: 44fc62292b65ab04eabcf310e799ccf6, type: 3}
Expand Down
32 changes: 32 additions & 0 deletions Assets/Settings/UniversalRP.asset
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ MonoBehaviour:
m_FsrSharpness: 0.92
m_EnableLODCrossFade: 1
m_LODCrossFadeDitheringType: 1
m_ShEvalMode: 0
m_MainLightRenderingMode: 1
m_MainLightShadowsSupported: 1
m_MainLightShadowmapResolution: 2048
Expand All @@ -52,9 +53,11 @@ MonoBehaviour:
m_CascadeBorder: 0.1
m_ShadowDepthBias: 1
m_ShadowNormalBias: 1
m_AnyShadowsSupported: 1
m_SoftShadowsSupported: 0
m_ConservativeEnclosingSphere: 0
m_NumIterationsEnclosingSphere: 64
m_SoftShadowQuality: 2
m_AdditionalLightsCookieResolution: 2048
m_AdditionalLightsCookieFormat: 3
m_UseSRPBatcher: 1
Expand All @@ -69,6 +72,7 @@ MonoBehaviour:
m_ColorGradingMode: 0
m_ColorGradingLutSize: 32
m_UseFastSRGBLinearConversion: 0
m_SupportDataDrivenLensFlare: 1
m_ShadowType: 1
m_LocalShadowsSupported: 0
m_LocalShadowsAtlasResolution: 256
Expand All @@ -78,5 +82,33 @@ MonoBehaviour:
m_Textures:
blueNoise64LTex: {fileID: 2800000, guid: e3d24661c1e055f45a7560c033dbb837, type: 3}
bayerMatrixTex: {fileID: 2800000, guid: f9ee4ed84c1d10c49aabb9b210b0fc44, type: 3}
m_PrefilteringModeMainLightShadows: 4
m_PrefilteringModeAdditionalLight: 4
m_PrefilteringModeAdditionalLightShadows: 0
m_PrefilterXRKeywords: 1
m_PrefilteringModeForwardPlus: 0
m_PrefilteringModeDeferredRendering: 0
m_PrefilteringModeScreenSpaceOcclusion: 0
m_PrefilterDebugKeywords: 1
m_PrefilterWriteRenderingLayers: 1
m_PrefilterHDROutput: 1
m_PrefilterSSAODepthNormals: 1
m_PrefilterSSAOSourceDepthLow: 1
m_PrefilterSSAOSourceDepthMedium: 1
m_PrefilterSSAOSourceDepthHigh: 1
m_PrefilterSSAOInterleaved: 1
m_PrefilterSSAOBlueNoise: 1
m_PrefilterSSAOSampleCountLow: 1
m_PrefilterSSAOSampleCountMedium: 1
m_PrefilterSSAOSampleCountHigh: 1
m_PrefilterDBufferMRT1: 1
m_PrefilterDBufferMRT2: 1
m_PrefilterDBufferMRT3: 1
m_PrefilterSoftShadowsQualityLow: 1
m_PrefilterSoftShadowsQualityMedium: 1
m_PrefilterSoftShadowsQualityHigh: 1
m_PrefilterSoftShadows: 0
m_PrefilterScreenCoord: 1
m_PrefilterNativeRenderPass: 1
m_ShaderVariantLogLevel: 0
m_ShadowCascades: 0
12 changes: 5 additions & 7 deletions Assets/TextMesh Pro/Resources/TMP Settings.asset
Original file line number Diff line number Diff line change
Expand Up @@ -21,26 +21,24 @@ MonoBehaviour:
m_GetFontFeaturesAtRuntime: 1
m_missingGlyphCharacter: 0
m_warningsDisabled: 0
m_defaultFontAsset: {fileID: 11400000, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2}
m_defaultFontAsset: {fileID: 11400000, guid: 12be71047ae56bb41a3972391e486ba1, type: 2}
m_defaultFontAssetPath: Fonts & Materials/
m_defaultFontSize: 36
m_defaultAutoSizeMinRatio: 0.5
m_defaultAutoSizeMaxRatio: 2
m_defaultTextMeshProTextContainerSize: {x: 20, y: 5}
m_defaultTextMeshProUITextContainerSize: {x: 200, y: 50}
m_autoSizeTextContainer: 0
m_IsTextObjectScaleStatic: 0
m_fallbackFontAssets: []
m_matchMaterialPreset: 1
m_defaultSpriteAsset: {fileID: 11400000, guid: c41005c129ba4d66911b75229fd70b45,
type: 2}
m_defaultSpriteAsset: {fileID: 11400000, guid: c41005c129ba4d66911b75229fd70b45, type: 2}
m_defaultSpriteAssetPath: Sprite Assets/
m_enableEmojiSupport: 1
m_MissingCharacterSpriteUnicode: 0
m_defaultColorGradientPresetsPath: Color Gradient Presets/
m_defaultStyleSheet: {fileID: 11400000, guid: f952c082cb03451daed3ee968ac6c63e,
type: 2}
m_defaultStyleSheet: {fileID: 11400000, guid: f952c082cb03451daed3ee968ac6c63e, type: 2}
m_StyleSheetsResourcePath:
m_leadingCharacters: {fileID: 4900000, guid: d82c1b31c7e74239bff1220585707d2b, type: 3}
m_followingCharacters: {fileID: 4900000, guid: fade42e8bc714b018fac513c043d323b,
type: 3}
m_followingCharacters: {fileID: 4900000, guid: fade42e8bc714b018fac513c043d323b, type: 3}
m_UseModernHangulLineBreakingRules: 0
8 changes: 8 additions & 0 deletions Assets/UniRealtime/Sample/Fonts.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 33212a5

Please sign in to comment.