コード例 #1
0
 private void DrawInspectorUI(Editor editor, Rect drawRect)
 {
     if (this.HasSoftlockSupport(editor))
     {
         this.m_Cache.StoreEditor(editor);
         string assetGUID = null;
         AssetAccess.TryGetAssetGUIDFromObject(editor.target, out assetGUID);
         if (this.HasSoftlocks(assetGUID))
         {
             Texture iconForSection = SoftLockUIData.GetIconForSection(SoftLockUIData.SectionEnum.ProjectBrowser);
             if (iconForSection != null)
             {
                 this.DrawIconWithTooltips(drawRect, iconForSection, assetGUID);
             }
         }
     }
 }
コード例 #2
0
        public static string GetPath()
        {
            if (s_path == null)
            {
                s_path = AssetAccess.GetPath("Transit Addon Mod", WORKSHOP_ID);

                if (s_path != PATH_NOT_FOUND)
                {
                    Debug.Log("REx: Mod path " + s_path);
                }
                else
                {
                    Debug.Log("REx: Path not found");
                }
            }

            return(s_path);
        }