整合SLSUtilities
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
using UnityEngine;
|
||||
|
||||
namespace LunaWolfStudios.ScriptableSheets.Samples.Collections
|
||||
{
|
||||
[System.Serializable]
|
||||
public class CollectionSample : ScriptableObject
|
||||
{
|
||||
[SerializeField]
|
||||
private MaterialCollection m_Materials;
|
||||
public Material[] Materials { get => m_Materials.ObjectsArray; }
|
||||
|
||||
[SerializeField]
|
||||
private StringCollection m_Strings;
|
||||
public string[] Strings { get => m_Strings.ObjectsArray; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 390feea9c827cb04ea0fd9ba878d4706
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 284559
|
||||
packageName: Scriptable Sheets
|
||||
packageVersion: 1.8.0
|
||||
assetPath: Packages/com.lunawolfstudios.scriptablesheets/Samples~/Collections/Scripts/CollectionSample.cs
|
||||
uploadId: 823456
|
||||
@@ -0,0 +1,9 @@
|
||||
using UnityEngine;
|
||||
|
||||
namespace LunaWolfStudios.ScriptableSheets.Samples.Collections
|
||||
{
|
||||
[System.Serializable]
|
||||
public class MaterialCollection : ScriptableCollection<Material>
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 65148b2278ae754489de17e1332a1402
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 284559
|
||||
packageName: Scriptable Sheets
|
||||
packageVersion: 1.8.0
|
||||
assetPath: Packages/com.lunawolfstudios.scriptablesheets/Samples~/Collections/Scripts/MaterialCollection.cs
|
||||
uploadId: 823456
|
||||
@@ -0,0 +1,17 @@
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
namespace LunaWolfStudios.ScriptableSheets.Samples.Collections
|
||||
{
|
||||
[System.Serializable]
|
||||
public abstract class ScriptableCollection<T> : ScriptableObject
|
||||
{
|
||||
[SerializeField]
|
||||
private T[] m_ObjectsArray;
|
||||
public T[] ObjectsArray => m_ObjectsArray;
|
||||
|
||||
[SerializeField]
|
||||
private List<T> m_ObjectsList;
|
||||
public List<T> ObjectsList => m_ObjectsList;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 852090f66e8b7ac4bb32858ad3679b28
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 284559
|
||||
packageName: Scriptable Sheets
|
||||
packageVersion: 1.8.0
|
||||
assetPath: Packages/com.lunawolfstudios.scriptablesheets/Samples~/Collections/Scripts/ScriptableCollection.cs
|
||||
uploadId: 823456
|
||||
@@ -0,0 +1,7 @@
|
||||
namespace LunaWolfStudios.ScriptableSheets.Samples.Collections
|
||||
{
|
||||
[System.Serializable]
|
||||
public class StringCollection : ScriptableCollection<string>
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 25da241862ef1584684eed3bce5f7952
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
AssetOrigin:
|
||||
serializedVersion: 1
|
||||
productId: 284559
|
||||
packageName: Scriptable Sheets
|
||||
packageVersion: 1.8.0
|
||||
assetPath: Packages/com.lunawolfstudios.scriptablesheets/Samples~/Collections/Scripts/StringCollection.cs
|
||||
uploadId: 823456
|
||||
Reference in New Issue
Block a user