MaterialMotionExtensions
Materialのfloat・int・Colorプロパティを、プロパティ名またはIDで更新します。
public static class MaterialMotionExtensionsRenderingMotionExtensions.cs · L130メンバー
BindToMaterialFloat
MaterialFloatの対象プロパティを名前または整数IDで選びます。名前指定は登録時にShader.PropertyToIDで変換します。
public static MotionHandle BindToMaterialFloat(this FloatMotionBuilder builder, Material material, string name)引数と戻り値
builderthis FloatMotionBuilder設定済みのビルダー。拡張メソッドでは呼び出し元として渡されます。materialMaterial値を適用する対象(Material)。namestring対象プロパティの名前。- 戻り値
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>引数と戻り値
builderthis MotionBuilder<float, TOptions, TAdapter>設定済みのビルダー。拡張メソッドでは呼び出し元として渡されます。materialMaterial値を適用する対象(Material)。namestring対象プロパティの名前。- 戻り値
MotionHandle
public static MotionHandle BindToMaterialFloat(this FloatMotionBuilder builder, Material material, int nameID)引数と戻り値
builderthis FloatMotionBuilder設定済みのビルダー。拡張メソッドでは呼び出し元として渡されます。materialMaterial値を適用する対象(Material)。nameIDintプロパティ名に対応する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>引数と戻り値
builderthis MotionBuilder<float, TOptions, TAdapter>設定済みのビルダー。拡張メソッドでは呼び出し元として渡されます。materialMaterial値を適用する対象(Material)。nameIDintプロパティ名に対応する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>引数と戻り値
builderthis MotionBuilder<int, TOptions, TAdapter>設定済みのビルダー。拡張メソッドでは呼び出し元として渡されます。materialMaterial値を適用する対象(Material)。namestring対象プロパティの名前。- 戻り値
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>引数と戻り値
builderthis MotionBuilder<int, TOptions, TAdapter>設定済みのビルダー。拡張メソッドでは呼び出し元として渡されます。materialMaterial値を適用する対象(Material)。nameIDintプロパティ名に対応する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>引数と戻り値
builderthis MotionBuilder<Color, TOptions, TAdapter>設定済みのビルダー。拡張メソッドでは呼び出し元として渡されます。materialMaterial値を適用する対象(Material)。namestring対象プロパティの名前。- 戻り値
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>引数と戻り値
builderthis MotionBuilder<Color, TOptions, TAdapter>設定済みのビルダー。拡張メソッドでは呼び出し元として渡されます。materialMaterial値を適用する対象(Material)。nameIDintプロパティ名に対応するUnityの整数ID。- 戻り値
MotionHandle
MeatMotion