Version: 2023.2
言語: 日本語

SpeedTreeImporter

class in UnityEditor

/

継承:AssetImporter

マニュアルに切り替える

説明

SpeedTree Modeler アセットをインポートするためのクラスです。

Static 変数

windQualityNameswind Quality Value の名前の文字列の配列を取得します。

変数

alphaTestRefデフォルトのアルファテスト参照値を取得して設定します。
animateCrossFading最後の Mesh LOD とビルボードに適用されるクロスフェード LOD 遷移をアニメーション化する必要かどうかを示します。
bestWindQualityこのアセットで可能なかぎり最高の Wind の品質を返します( SpeedTree Modeler で構成されます) 。
billboardTransitionCrossFadeWidthビルボードツリーにクロスフェードが使用される最後の 3D Mesh LOD Region Width の割合
castShadows各 LOD のシャドウキャストを有効にするブール値の配列を取得して設定します。
castShadowsByDefaultGets and sets a boolean to toggle whether the imported SpeedTree casts shadows.
defaultBillboardShaderReturns the default SpeedTree billboard shader for the active render pipeline, or null if the asset is a SpeedTree v8 asset.
defaultShaderReturns the default SpeedTree shader for the active render pipeline (either v7 or v8 according to the asset version).
enableBump各 LOD の通常のマッピングを有効にするブール値の配列を取得して設定します。
enableBumpByDefaultGets and sets a boolean to enable normal mapping on the imported SpeedTree model.
enableHueGets and sets an array of booleans to enable hue variation effect for each LOD.
enableHueByDefaultGets and sets a boolean to enable hue variation effect on the imported SpeedTree model.
enableSettingOverrideGets and sets an array of booleans to customize importer settings for a specific LOD.
enableSmoothLODTransitionスムーズな LOD 遷移を可能にします。
enableSubsurfaceGets and sets an array of booleans to enable the subsurface scattering effect for each LOD (affects only SpeedTree v8 assets).
enableSubsurfaceByDefaultGets and sets a boolean to enable the subsurface scattering effect for the SpeedTree asset (affects only SpeedTree v8 assets).
fadeOutWidthビルボードにフェードアウトが使用される Billboard LOD Region Width の割合
hasBillboardBillboard LOD (Level of Detail ) があれば指示します。
hasImportedSPM ファイルがすでにインポートされている場合、指示します。
hueVariationGets and sets a default hue variation color and amount (in alpha).
isV8Returns true if the asset is a SpeedTree v8 asset.
LODHeights各 LOD の Screen Height のフロート値の配列の取得して設定します。
mainColorデフォルトのメインのカラーを取得して設定します。
materialFolderPath生成されたマテリアルが配置されたフォルダーのパスを返します。
materialLocationMaterial import location options.
receiveShadows各 LOD のシャドウレシーブを有効にするブール値の配列を取得して設定します。
receiveShadowsByDefaultGets and sets a boolean to enable whether the SpeedTree asset receives shadows from other objects in your scene.
scaleFactorHow much to scale the tree model compared to what is in the imported SpeedTree model file.
selectedWindQualityGets and sets an integer corresponding to the SpeedTreeWind enum values. The value is clamped by SpeedTreeImporter.bestWindQuality internally.
useLightProbes各 LOD の Light Probe ライティングを有効にするブール値の配列を取得して設定します。
useLightProbesByDefaultGets and sets a boolean to enable light probe lighting for the imported SpeedTree model.
windQualitiesGets and sets an array of integers of the wind qualities on each LOD. Values will be clamped by SpeedTreeImporter.bestWindQuality internally.

コンストラクタ

SpeedTreeImporter新しい SpeedTreeImporter オブジェクトを構築します。

Public 関数

GenerateMaterialsMaterialFolderPath の下ですべての必要なマテリアルを生成します。 Version Control が有効な場合、フォルダーを最初にチェックアウトしてください。
SearchAndRemapMaterialsSearch the project for matching materials and use them instead of the internal materials.

継承メンバー

変数

assetBundleNameアセットバンドルの名前の取得や設定ができます。
assetBundleVariantアセットバンドルバリアントの取得や設定ができます。
assetPathアセットのパス(読み取り専用)
importSettingsMissingThe value is true when no meta file is provided with the imported asset.
userDataユーザーが自由に設定/取得できる文字列
hideFlagsShould the object be hidden, saved with the Scene or modifiable by the user?
nameオブジェクト名

Public 関数

AddRemapMap a sub-asset from an imported asset (such as an FBX file) to an external Asset of the same type.
GetExternalObjectMapGets a copy of the external object map used by the AssetImporter.
RemoveRemapRemoves an item from the map of external objects.
SaveAndReimportアセットインポーターがダーティであれば、アセットインポーターの設定を保存します。
SetAssetBundleNameAndVariantアセットバンドル名とアセットバンドルバリアントを設定します。
SupportsRemappedAssetTypeChecks if the AssetImporter supports remapping the given asset type.
GetInstanceIDGets the instance ID of the object.
ToStringReturns the name of the object.

Static 関数

GetAtPathアセットのパスから AssetImporter を取得します
GetImportLogRetrieves logs generated during the import of the asset at path.
DestroyRemoves a GameObject, component or asset.
DestroyImmediateDestroys the object obj immediately. You are strongly recommended to use Destroy instead.
DontDestroyOnLoadDo not destroy the target Object when loading a new Scene.
FindAnyObjectByTypeRetrieves any active loaded object of Type type.
FindFirstObjectByTypeRetrieves the first active loaded object of Type type.
FindObjectsByTypeRetrieves a list of all loaded objects of Type type.
Instantiateoriginal のオブジェクトをクローンします

Operator

boolオブジェクトが存在するかどうか
operator !=二つのオブジェクトが異なるオブジェクトを参照しているか比較します
operator ==2つのオブジェクト参照が同じオブジェクトを参照しているか比較します。