mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-09-07 11:28:35 -05:00
add VRMMeta
This commit is contained in:
11
Scripts/Meta/VRMMeta.cs
Normal file
11
Scripts/Meta/VRMMeta.cs
Normal file
@@ -0,0 +1,11 @@
|
||||
using UnityEngine;
|
||||
|
||||
|
||||
namespace VRM
|
||||
{
|
||||
public class VRMMeta : MonoBehaviour
|
||||
{
|
||||
[SerializeField]
|
||||
public VRMMetaObject Meta;
|
||||
}
|
||||
}
|
||||
12
Scripts/Meta/VRMMeta.cs.meta
Normal file
12
Scripts/Meta/VRMMeta.cs.meta
Normal file
@@ -0,0 +1,12 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 690ea0146224b8b4694a1925dddeb352
|
||||
timeCreated: 1522391118
|
||||
licenseType: Free
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -6,6 +6,7 @@ using UniGLTF;
|
||||
|
||||
namespace VRM
|
||||
{
|
||||
[Obsolete]
|
||||
[Serializable]
|
||||
[DisallowMultipleComponent]
|
||||
public class VRMMetaInformation : MonoBehaviour, IEquatable<VRMMetaInformation>
|
||||
|
||||
44
Scripts/Meta/VRMMetaObject.cs
Normal file
44
Scripts/Meta/VRMMetaObject.cs
Normal file
@@ -0,0 +1,44 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
|
||||
namespace VRM
|
||||
{
|
||||
public class VRMMetaObject : ScriptableObject
|
||||
{
|
||||
#region Info
|
||||
[SerializeField, Header("Information")]
|
||||
public string Title;
|
||||
|
||||
[SerializeField]
|
||||
public string Author;
|
||||
|
||||
[SerializeField]
|
||||
public string ContactInformation;
|
||||
|
||||
[SerializeField]
|
||||
public Texture2D Thumbnail;
|
||||
|
||||
[SerializeField]
|
||||
public string Reference;
|
||||
#endregion
|
||||
|
||||
#region License
|
||||
[SerializeField, Header("License")]
|
||||
public LicenseType LicenseType;
|
||||
|
||||
[SerializeField]
|
||||
public string OtherLicenseUrl;
|
||||
#endregion
|
||||
|
||||
public bool Equals(VRMMetaObject other)
|
||||
{
|
||||
return
|
||||
Author == other.Author
|
||||
&& Title == other.Title
|
||||
&& UniGLTF.MonoBehaviourComparator.AssetAreEquals(Thumbnail, other.Thumbnail)
|
||||
;
|
||||
}
|
||||
}
|
||||
}
|
||||
12
Scripts/Meta/VRMMetaObject.cs.meta
Normal file
12
Scripts/Meta/VRMMetaObject.cs.meta
Normal file
@@ -0,0 +1,12 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 63b589176a34b344b9ccbee2b7e7114a
|
||||
timeCreated: 1522391129
|
||||
licenseType: Free
|
||||
MonoImporter:
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Reference in New Issue
Block a user