Skip to content

Commit c9c6b0a

Browse files
committed
add asset store installation option
1 parent 61bbbf0 commit c9c6b0a

File tree

8 files changed

+69
-8
lines changed

8 files changed

+69
-8
lines changed

docs/getting-started/installation.mdx

+16-2
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ import TabItem from '@theme/TabItem';
88

99
# Installation
1010

11-
You can install the package via **OpenUPM**, **Git** or **Tarball**:
11+
You can install the package via **OpenUPM**, **Git**, **Tarball** or the **Unity Asset Store**:
1212

1313
<Tabs defaultValue={(() => {
1414
if (typeof window !== "undefined") {
1515
const hash = window.location.hash.replace("#", "").toLowerCase();
16-
return ["openupm", "git", "tarball"].includes(hash) ? hash : "openupm";
16+
return ["openupm", "git", "tarball", "asset-store"].includes(hash) ? hash : "openupm";
1717
}
1818
return "openupm";
1919
})()}>
@@ -75,5 +75,19 @@ Requires [Git](https://git-scm.com/) installed and added to the PATH
7575
3. Click <kbd>+</kbd>.
7676
4. Select `Install package from tarball...`.
7777
5. Select the `com.mygamedevtools.scene-loader-<release>.tgz` file you downloaded.
78+
</TabItem>
79+
80+
<TabItem value="asset-store" label="Unity Asset Store">
81+
1. Obtain the package at the [Asset Store](https://assetstore.unity.com/packages/slug/313159).
82+
2. With your Unity project open, click `Open in Unity`.
83+
3. The `Package Manager` will open with the package selected.
84+
4. Click `Download` or `Update`, depending on the local cache.
85+
5. Click `Import`.
86+
6. Make sure everything is selected and click `Import` again.
87+
88+
:::info
89+
When updating from the Asset Store, make sure to remove the previous version completely before adding the updated version.
90+
:::
91+
7892
</TabItem>
7993
</Tabs>

docs/intro.md

+1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ To get started with My Scene Manager, you can install it in various ways:
2121
* [OpenUPM](./getting-started/installation.mdx#openupm)
2222
* [Install from Git](./getting-started/installation.mdx#git)
2323
* [Install from Tarball](./getting-started/installation.mdx#tarball)
24+
* [Unity Asset Store](./getting-started/installation.mdx#asset-store)
2425

2526
## Quick Start
2627

docusaurus.config.js

+21-3
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,11 @@ const config = {
5151
sidebarPath: './sidebars.js',
5252
editUrl:
5353
'https://github.com/mygamedevtools/scene-loader/tree/docs/',
54+
lastVersion: 'current',
5455
versions:
5556
{
5657
current: {
57-
label: '4.0.0 🚧',
58-
banner: 'unreleased'
58+
label: '4.0.0'
5959
},
6060
}
6161
},
@@ -86,6 +86,11 @@ const config = {
8686
position: 'left',
8787
label: 'Docs',
8888
},
89+
{
90+
href: 'https://assetstore.unity.com/packages/slug/313159',
91+
position: 'left',
92+
label: 'Asset Store'
93+
},
8994
{
9095
type: 'docsVersionDropdown',
9196
position: 'right'
@@ -127,14 +132,27 @@ const config = {
127132
items: [
128133
{
129134
label: 'From 3.x to 4.x',
130-
to: 'docs/next/upgrades/from-3-to-4'
135+
to: 'docs/upgrades/from-3-to-4'
131136
},
132137
{
133138
label: 'From 2.x to 3.x',
134139
to: 'docs/upgrades/from-2-to-3'
135140
},
136141
],
137142
},
143+
{
144+
title: 'Links',
145+
items: [
146+
{
147+
label: 'GitHub',
148+
href: 'https://github.com/mygamedevtools/scene-loader'
149+
},
150+
{
151+
label: 'Asset Store',
152+
href: 'https://assetstore.unity.com/packages/slug/313159'
153+
}
154+
]
155+
},
138156
{
139157
title: 'Support',
140158
items: [

i18n/pt-BR/docusaurus-plugin-content-docs/current.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"version.label": {
3-
"message": "4.0.0 🚧",
3+
"message": "4.0.0",
44
"description": "The label for version current"
55
},
66
"sidebar.documentationSidebar.category.Getting Started": {

i18n/pt-BR/docusaurus-plugin-content-docs/current/getting-started/installation.mdx

+16-2
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ import TabItem from '@theme/TabItem';
88

99
# Instalação
1010

11-
Você pode instalar o pacote via **OpenUPM**, **Git** ou **Tarball**:
11+
Você pode instalar o pacote via **OpenUPM**, **Git**, **Tarball** ou **Unity Asset Store**:
1212

1313
<Tabs defaultValue={(() => {
1414
if (typeof window !== "undefined") {
1515
const hash = window.location.hash.replace("#", "").toLowerCase();
16-
return ["openupm", "git", "tarball"].includes(hash) ? hash : "openupm";
16+
return ["openupm", "git", "tarball", "asset-store"].includes(hash) ? hash : "openupm";
1717
}
1818
return "openupm";
1919
})()}>
@@ -75,5 +75,19 @@ Requer [Git](https://git-scm.com/) instalado e disponível em PATH
7575
3. Clique <kbd>+</kbd>.
7676
4. Selecione `Install package from tarball...`.
7777
5. Selecione o arquivo `com.mygamedevtools.scene-loader-<release>.tgz` que você baixou.
78+
</TabItem>
79+
80+
<TabItem value="asset-store" label="Unity Asset Store">
81+
1. Obtenha o pacote na [Asset Store](https://assetstore.unity.com/packages/slug/313159).
82+
2. Com seu projeto Unity aberto, clique `Open in Unity`.
83+
3. O `Package Manager` abrirá com o pacote selecionado.
84+
4. Clique `Download` ou `Update`, dependendo no estado local de cache.
85+
5. Clique `Import`.
86+
6. Valide que tudo está selecionado e clique `Import` novamente.
87+
88+
:::info
89+
When updating from the Asset Store, make sure to remove the previous version completely before adding the updated version.
90+
:::
91+
7892
</TabItem>
7993
</Tabs>

i18n/pt-BR/docusaurus-plugin-content-docs/current/intro.md

+1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ Para começar a usar o My Scene Manager, você pode instalá-lo de várias manei
2121
* [OpenUPM](./getting-started/installation.mdx#openupm)
2222
* [Instalar pelo Git](./getting-started/installation.mdx#git)
2323
* [Instalar por Tarball](./getting-started/installation.mdx#tarball)
24+
* [Unity Asset Store](./getting-started/installation.mdx#asset-store)
2425

2526
## Começando Rápido
2627

src/components/HomepageInstallation/index.js

+3
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ export default function Installation() {
2020
<Link to="/docs/getting-started/installation#tarball" className={clsx("button button--lg margin--sm", styles.buttonTarball)}>
2121
Tarball
2222
</Link>
23+
<Link to="/docs/getting-started/installation#asset-store" className={clsx("button button--lg margin--sm", styles.buttonAssetStore)}>
24+
Asset Store
25+
</Link>
2326
</div>
2427
</div>
2528
</section>

src/components/HomepageInstallation/styles.module.css

+10
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,14 @@
3636
.buttonTarball:hover {
3737
background-color: var(--ifm-color-primary-dark);
3838
color: var(--ifm-color-white);
39+
}
40+
41+
.buttonAssetStore {
42+
background-color: #3e3e3e;
43+
color: var(--ifm-color-white);
44+
}
45+
46+
.buttonAssetStore:hover {
47+
background-color: #303030;
48+
color: var(--ifm-color-white);
3949
}

0 commit comments

Comments
 (0)