UE4 changes the value of a parameter in the material

table of Contents

First, the purpose

1. Think: UE4 changes the value of a certain parameter in the material

2. Encountered in the Know Cell Project

Two, reference

1、

Three, pay attention

1. BP_myHUD inherits My_HUD, but the material of My_HUD cannot be found in the BeginPlay of BP_myHUD. You can assign (initialize) the variable of BP_myHUD in the Tike or ReceiveRrawHUD of BP_myHUD, or right-click to call the parent class in BeginPlay of My_HUD. BeginPlay

4. Operation: Change the value of Param_fAlpha parameter in M_MatColor material

1. Create a material: M_MatColor

2. Create a material instance: M_MatColor_Inst

3. Call the blueprint of the material to initialize the material in MyHUD: in BeginPlay

4. Get the material in the event ReceiveRrawHUD


First, the purpose

1. Think: UE4 changes the value of a certain parameter in the material

2. Encountered in the Know Cell Project

 

Two, reference

1、

 

Three, pay attention

1. BP_myHUD inherits My_HUD, but the material of My_HUD cannot be found in the BeginPlay of BP_myHUD. You can assign (initialize) the variable of BP_myHUD in the Tike or ReceiveRrawHUD of BP_myHUD, or right-click to call the parent class in BeginPlay of My_HUD. BeginPlay

 

 

4. Operation: Change the value of Param_fAlpha parameter in M_MatColor material

1. Create a material: M_MatColor

 

2. Create a material instance: M_MatColor_Inst

 

 

3. Call the blueprint of the material to initialize the material in MyHUD: in BeginPlay

 

 

4. Get the material in the event ReceiveRrawHUD

 

 

Guess you like

Origin blog.csdn.net/qq_40544338/article/details/109450232