forked from Synesthesias/PLATEAU-SDK-for-Unity
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request Synesthesias#196 from Synesthesias/release/v2.2.0
Release/v2.2.0
- Loading branch information
Showing
718 changed files
with
4,063 additions
and
44,631 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# 属性情報によって色分けする | ||
![](../resources/manual/changeColorByAttrs/screenShot.png) | ||
このサンプルでは、土地計画決定情報に関する属性情報を読み取り、それに応じてランタイムで色を変えます。 | ||
|
||
このサンプルは次の場所にあります: | ||
```(PLATEAU SDKのサンプルディレクトリ)/AttributesColorSample/AttributesSample.unity``` | ||
サンプルシーンを開き、Unityの再生ボタンを押すと地域ごとに色が付きます。 | ||
なお、実行には時間がかかる場合があります。 | ||
|
||
属性情報を読み取り、色を変えるスクリプトは次の場所にあります: | ||
```(PLATEAU SDKのサンプルディレクトリ)/AttributesColorSample/AttributesColorSample.cs``` | ||
|
||
このスクリプトでは、都市の各ゲームオブジェクトに付与されているコンポーネントである`PLATEAUCityObjectGroup`から情報を読み取ります。 | ||
同コンポーネントから`CityObject`を取得し、そこから属性情報である`AttributesMap`にアクセスできます。 | ||
詳しくはスクリプトを参照してください。 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# 属性情報を表示する | ||
![](../resources/manual/displayAttrs/screenShot.png) | ||
このサンプルを再生して地物をクリックすると、その属性情報が画面に表示されます。 | ||
|
||
このサンプルは次の場所にあります: | ||
```(PLATEAU SDKのサンプルディレクトリ)/AttributesDisplaySample/AttributesDisplaySample.unity``` | ||
|
||
サンプルスクリプトは次の場所にあります: | ||
```(PLATEAU SDKのサンプルディレクトリ)/AttributesDisplaySample/Scripts``` | ||
- ClickToShowAttributes.cs | ||
- クリックされた地物の情報を取得し、UIに送ります。 | ||
- クリックされた地物に付与されている`PLATEAUCityObjectGroup`から`CityObject`を取得し、`cityObj.DebugString()`で文字列にします。 | ||
- AttributesDisplay.cs | ||
- 情報表示のUIを制御します。 | ||
|
||
詳しくはスクリプトを参照してください。 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,20 @@ | ||
- name: PLATEAU SDK for Unity | ||
href: ../index.md | ||
- name: 利用を開始する | ||
- name: SDKの使い方 | ||
items: | ||
- name: インストール | ||
href: Installation.md | ||
- name: 都市モデルのインポート | ||
href: ImportCityModels.md | ||
- name: 都市モデルのエクスポート | ||
href: ExportCityModels.md | ||
- name: モデル調整 | ||
- name: モデル修正 | ||
href: ModelAdjust.md | ||
- name: 都市情報へのアクセス | ||
href: AccessCityObject.md | ||
- name: サンプル | ||
items: | ||
- name: 属性情報によって色分けする | ||
href: ChangeColorByAttrs.md | ||
- name: 属性情報を表示する | ||
href: DisplayAttrs.md |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+307 KB
(140%)
Documentation~/resources/manual/importCityModels/areaSelectWindow.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified
BIN
+3.76 KB
(110%)
Documentation~/resources/manual/importCityModels/importPerPackageConfig.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
22 changes: 22 additions & 0 deletions
22
Editor/CityImport/PackageLoadConfigGUIs/Components/FallbackMaterialGUI.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
using PLATEAU.CityImport.Config.PackageLoadConfigs; | ||
using UnityEditor; | ||
using UnityEngine; | ||
|
||
namespace PLATEAU.Editor.CityImport.PackageLoadConfigGUIs.Components | ||
{ | ||
/// <summary> | ||
/// デフォルトマテリアルの設定GUIです。 | ||
/// </summary> | ||
internal class FallbackMaterialGUI : PackageLoadConfigGUIComponent | ||
{ | ||
public FallbackMaterialGUI(PackageLoadConfig conf) : base(conf) | ||
{ | ||
} | ||
|
||
public override void Draw() | ||
{ | ||
Conf.FallbackMaterial = (Material)EditorGUILayout.ObjectField("デフォルトマテリアル", | ||
Conf.FallbackMaterial, typeof(Material), false); | ||
} | ||
} | ||
} |
3 changes: 3 additions & 0 deletions
3
Editor/CityImport/PackageLoadConfigGUIs/Components/FallbackMaterialGUI.cs.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
28 changes: 28 additions & 0 deletions
28
Editor/CityImport/PackageLoadConfigGUIs/Components/LodGUI.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
using System; | ||
using PLATEAU.CityImport.Config.PackageLoadConfigs; | ||
using PLATEAU.Dataset; | ||
using PLATEAU.Editor.EditorWindow.Common; | ||
|
||
namespace PLATEAU.Editor.CityImport.PackageLoadConfigGUIs.Components | ||
{ | ||
/// <summary> | ||
/// LOD範囲の設定GUIです。 | ||
/// </summary> | ||
internal class LodGUI : PackageLoadConfigGUIComponent | ||
{ | ||
public LodGUI(PackageLoadConfig conf) : base(conf) | ||
{ | ||
} | ||
|
||
public override void Draw() | ||
{ | ||
var predefined = CityModelPackageInfo.GetPredefined(Conf.Package); | ||
int minLOD = Conf.LODRange.MinLOD; | ||
int maxLOD = Conf.LODRange.MaxLOD; | ||
int availableMaxLOD = Conf.LODRange.AvailableMaxLOD; | ||
PlateauEditorStyle.LODSlider("LOD描画設定", ref minLOD, ref maxLOD, | ||
Math.Min(predefined.minLOD, availableMaxLOD), availableMaxLOD); | ||
Conf.LODRange = new LODRange(minLOD, maxLOD, availableMaxLOD); | ||
} | ||
} | ||
} |
3 changes: 3 additions & 0 deletions
3
Editor/CityImport/PackageLoadConfigGUIs/Components/LodGUI.cs.meta
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.