Class ConvertToAssetConfig
シーン内の都市モデルをAssets以下に抽出するときの設定です。
Inheritance
System.Object
ConvertToAssetConfig
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: PLATEAU.CityAdjust.ConvertToAsset
Assembly: cs.temp.dll.dll
Syntax
public class ConvertToAssetConfig
Constructors
ConvertToAssetConfig(GameObject, String)
Declaration
public ConvertToAssetConfig(GameObject srcGameObj, string assetPath)
Parameters
Type | Name | Description |
---|---|---|
GameObject | srcGameObj | |
System.String | assetPath |
Properties
AssetPath
設定値: FBXの出力先であるAssetsパスです。
Declaration
public string AssetPath { get; set; }
Property Value
Type | Description |
---|---|
System.String |
DefaultValue
Declaration
public static ConvertToAssetConfig DefaultValue { get; }
Property Value
Type | Description |
---|---|
ConvertToAssetConfig |
SrcGameObj
設定値: 対象となるシーン内のオブジェクトです。
Declaration
public GameObject SrcGameObj { get; set; }
Property Value
Type | Description |
---|---|
GameObject |
Methods
SetByFullPath(String)
フルパスからAssetPathを設定します。 ただし、フルパスがAssets以下でない場合は設定を中止してエラーダイアログを表示します。
Declaration
public void SetByFullPath(string fullPath)
Parameters
Type | Name | Description |
---|---|---|
System.String | fullPath |
ValidateAssetPath(out String)
AssetPathの設定値が有効かどうかを返します。 無効の場合、エラーメッセージをout引数で返します。
Declaration
public bool ValidateAssetPath(out string errorMessage)
Parameters
Type | Name | Description |
---|---|---|
System.String | errorMessage |
Returns
Type | Description |
---|---|
System.Boolean |
ValidateSrcGameObj(out String)
SrcGameObjの設定値が有効かどうかを返します。 無効の場合、エラーメッセージをout引数で返します。
Declaration
public bool ValidateSrcGameObj(out string errorMessage)
Parameters
Type | Name | Description |
---|---|---|
System.String | errorMessage |
Returns
Type | Description |
---|---|
System.Boolean |