MeatMotion

MaterialMotionExtensions

Materialのfloat・int・Colorプロパティを、プロパティ名またはIDで更新します。

Namespace
MeatMotion.Extensions
Assembly
MeatMotion

メンバー一覧へ

public static class MaterialMotionExtensions
RenderingMotionExtensions.cs · L130

メンバー

BindToMaterialFloat

MaterialFloatの対象プロパティを名前または整数IDで選びます。名前指定は登録時にShader.PropertyToIDで変換します。

public static MotionHandle BindToMaterialFloat(this FloatMotionBuilder builder, Material material, string name)
引数と戻り値
builder
this FloatMotionBuilder 設定済みのビルダー。拡張メソッドでは呼び出し元として渡されます。
material
Material 値を適用する対象(Material)。
name
string 対象プロパティの名前。
戻り値
MotionHandle
public static MotionHandle BindToMaterialFloat<TOptions, TAdapter>(this MotionBuilder<float, TOptions, TAdapter> builder, Material material, string name)
    where TOptions : unmanaged, IMotionOptions
    where TAdapter : unmanaged, IMotionAdapter<float, TOptions>
引数と戻り値
builder
this MotionBuilder<float, TOptions, TAdapter> 設定済みのビルダー。拡張メソッドでは呼び出し元として渡されます。
material
Material 値を適用する対象(Material)。
name
string 対象プロパティの名前。
戻り値
MotionHandle
public static MotionHandle BindToMaterialFloat(this FloatMotionBuilder builder, Material material, int nameID)
引数と戻り値
builder
this FloatMotionBuilder 設定済みのビルダー。拡張メソッドでは呼び出し元として渡されます。
material
Material 値を適用する対象(Material)。
nameID
int プロパティ名に対応するUnityの整数ID。
戻り値
MotionHandle
public static MotionHandle BindToMaterialFloat<TOptions, TAdapter>(this MotionBuilder<float, TOptions, TAdapter> builder, Material material, int nameID)
    where TOptions : unmanaged, IMotionOptions
    where TAdapter : unmanaged, IMotionAdapter<float, TOptions>
引数と戻り値
builder
this MotionBuilder<float, TOptions, TAdapter> 設定済みのビルダー。拡張メソッドでは呼び出し元として渡されます。
material
Material 値を適用する対象(Material)。
nameID
int プロパティ名に対応するUnityの整数ID。
戻り値
MotionHandle

BindToMaterialInt

MaterialIntの対象プロパティを名前または整数IDで選びます。名前指定は登録時にShader.PropertyToIDで変換します。

public static MotionHandle BindToMaterialInt<TOptions, TAdapter>(this MotionBuilder<int, TOptions, TAdapter> builder, Material material, string name)
    where TOptions : unmanaged, IMotionOptions
    where TAdapter : unmanaged, IMotionAdapter<int, TOptions>
引数と戻り値
builder
this MotionBuilder<int, TOptions, TAdapter> 設定済みのビルダー。拡張メソッドでは呼び出し元として渡されます。
material
Material 値を適用する対象(Material)。
name
string 対象プロパティの名前。
戻り値
MotionHandle
public static MotionHandle BindToMaterialInt<TOptions, TAdapter>(this MotionBuilder<int, TOptions, TAdapter> builder, Material material, int nameID)
    where TOptions : unmanaged, IMotionOptions
    where TAdapter : unmanaged, IMotionAdapter<int, TOptions>
引数と戻り値
builder
this MotionBuilder<int, TOptions, TAdapter> 設定済みのビルダー。拡張メソッドでは呼び出し元として渡されます。
material
Material 値を適用する対象(Material)。
nameID
int プロパティ名に対応するUnityの整数ID。
戻り値
MotionHandle

BindToMaterialColor

MaterialColorの対象プロパティを名前または整数IDで選びます。名前指定は登録時にShader.PropertyToIDで変換します。

public static MotionHandle BindToMaterialColor<TOptions, TAdapter>(this MotionBuilder<Color, TOptions, TAdapter> builder, Material material, string name)
    where TOptions : unmanaged, IMotionOptions
    where TAdapter : unmanaged, IMotionAdapter<Color, TOptions>
引数と戻り値
builder
this MotionBuilder<Color, TOptions, TAdapter> 設定済みのビルダー。拡張メソッドでは呼び出し元として渡されます。
material
Material 値を適用する対象(Material)。
name
string 対象プロパティの名前。
戻り値
MotionHandle
public static MotionHandle BindToMaterialColor<TOptions, TAdapter>(this MotionBuilder<Color, TOptions, TAdapter> builder, Material material, int nameID)
    where TOptions : unmanaged, IMotionOptions
    where TAdapter : unmanaged, IMotionAdapter<Color, TOptions>
引数と戻り値
builder
this MotionBuilder<Color, TOptions, TAdapter> 設定済みのビルダー。拡張メソッドでは呼び出し元として渡されます。
material
Material 値を適用する対象(Material)。
nameID
int プロパティ名に対応するUnityの整数ID。
戻り値
MotionHandle