Class FallbackMaterial
Inheritance
System.Object
FallbackMaterial
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.Util
Assembly: cs.temp.dll.dll
Syntax
public class FallbackMaterial
Methods
ByMainTextureName(String)
メインテクスチャ名からデフォルトマテリアルを探して返します。 なければnullを返します。
Declaration
public static Material ByMainTextureName(string mainTexNameArg)
Parameters
Type | Name | Description |
---|---|---|
System.String | mainTexNameArg |
Returns
Type | Description |
---|---|
Material |
LoadByMaterialFileName(String)
Declaration
public static Material LoadByMaterialFileName(string matFileName)
Parameters
Type | Name | Description |
---|---|---|
System.String | matFileName |
Returns
Type | Description |
---|---|
Material |
LoadByPackage(PredefinedCityModelPackage)
引数のパッケージ種に対応するデフォルトフォールバックマテリアルをロードして返します。 引数に対応するものがない、またはロードに失敗した場合はUnityのデフォルトマテリアルを返します。
Declaration
public static Material LoadByPackage(PredefinedCityModelPackage pack)
Parameters
Type | Name | Description |
---|---|---|
PredefinedCityModelPackage | pack |
Returns
Type | Description |
---|---|
Material |