2026-06-20 뉴페어리
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
{
|
||||
"name": "MagicaCloth2UPMImporterShaderGraph",
|
||||
"rootNamespace": "",
|
||||
"references": [],
|
||||
"includePlatforms": [
|
||||
"Editor"
|
||||
],
|
||||
"excludePlatforms": [],
|
||||
"allowUnsafeCode": false,
|
||||
"overrideReferences": false,
|
||||
"precompiledReferences": [],
|
||||
"autoReferenced": true,
|
||||
"defineConstraints": [
|
||||
"!MC2_SHADERGRAPH"
|
||||
],
|
||||
"versionDefines": [
|
||||
{
|
||||
"name": "com.unity.shadergraph",
|
||||
"expression": "12.0.0",
|
||||
"define": "MC2_SHADERGRAPH"
|
||||
}
|
||||
],
|
||||
"noEngineReferences": false
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 34d2974f64e7a9f49a48b400abf046ff
|
||||
AssemblyDefinitionImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 242307
|
||||
packageName: Magica Cloth 2
|
||||
packageVersion: 2.18.1
|
||||
assetPath: Assets/MagicaCloth2/Example (Can be deleted)/Common/Scripts/Editor/ShaderGraph/MagicaCloth2UPMImporterShaderGraph.asmdef
|
||||
uploadId: 893596
|
||||
@@ -0,0 +1,30 @@
|
||||
// Magica Cloth 2.
|
||||
// Copyright (c) 2023 MagicaSoft.
|
||||
// https://magicasoft.jp
|
||||
using UnityEditor;
|
||||
using UnityEditor.PackageManager;
|
||||
using UnityEngine;
|
||||
|
||||
namespace MagicaCloth2UPMImporterCollections
|
||||
{
|
||||
/// <summary>
|
||||
/// 必要なUnityPackageの自動インストール
|
||||
/// </summary>
|
||||
[InitializeOnLoad]
|
||||
public static class UnityPackageImporter
|
||||
{
|
||||
static UnityPackageImporter()
|
||||
{
|
||||
Install("com.unity.shadergraph");
|
||||
}
|
||||
|
||||
public static bool Install(string id)
|
||||
{
|
||||
Debug.Log($"Install...{id}");
|
||||
var request = Client.Add(id);
|
||||
while (!request.IsCompleted) { };
|
||||
if (request.Error != null) Debug.LogError(request.Error.message);
|
||||
return request.Error == null;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
fileFormatVersion: 2
|
||||
guid: dd5d6386919360640adca6564193a8f5
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 242307
|
||||
packageName: Magica Cloth 2
|
||||
packageVersion: 2.18.1
|
||||
assetPath: Assets/MagicaCloth2/Example (Can be deleted)/Common/Scripts/Editor/ShaderGraph/UnityPackageImporter.cs
|
||||
uploadId: 893596
|
||||
Reference in New Issue
Block a user