From 16521dcde8c0a1151eaecd662f41b72eafcea532 Mon Sep 17 00:00:00 2001 From: StayTalm Date: Thu, 10 Sep 2020 14:42:01 -0700 Subject: [PATCH] Implement new ListView interface requirements --- Runtime/Scripts/Data/AssetData.cs | 2 ++ Runtime/Workspaces/PolyWorkspace/Scripts/PolyGridAsset.cs | 1 + 2 files changed, 3 insertions(+) diff --git a/Runtime/Scripts/Data/AssetData.cs b/Runtime/Scripts/Data/AssetData.cs index c46d066eb..4f8053eec 100644 --- a/Runtime/Scripts/Data/AssetData.cs +++ b/Runtime/Scripts/Data/AssetData.cs @@ -20,6 +20,8 @@ sealed class AssetData : IListViewItemData public string type { get; private set; } public GameObject preview { get; set; } + public bool selected => false; + public Object asset { get { return m_Asset; } diff --git a/Runtime/Workspaces/PolyWorkspace/Scripts/PolyGridAsset.cs b/Runtime/Workspaces/PolyWorkspace/Scripts/PolyGridAsset.cs index 313f8f999..dea650ff7 100644 --- a/Runtime/Workspaces/PolyWorkspace/Scripts/PolyGridAsset.cs +++ b/Runtime/Workspaces/PolyWorkspace/Scripts/PolyGridAsset.cs @@ -34,6 +34,7 @@ class PolyGridAsset : IListViewItemData, IUsesWeb public string template { get { return k_TemplateName; } } public string index { get; private set; } + public bool selected => false; public PolyAsset asset { get { return m_Asset; } } public GameObject prefab { get { return m_Prefab; } } public Texture2D thumbnail { get { return m_Thumbnail; } }