Hi guys... How do I create a MaterialInstanceConstant in an actor class.
I tried reading some guides on net about it, most of them give an error.
Also gives and error.
I tried reading some guides on net about it, most of them give an error.
Code:
class Testactor extends Actor
ClassGroup(Test)
placeable;
var MaterialInstanceConstant conc;
function PostBeginPlay()
{
conc = Mesh.CreateAndSetMaterialInstanceConstant(0);
super.PostBeginPlay();
}
defaultproperties
{
Begin Object Class=StaticMeshComponent Name=MyStaticMeshComponent
StaticMesh=StaticMesh'PhysTest_Resources.RemadePhysBarrel'
End Object
Components.Add(MyStaticMeshComponent)
}
Also gives and error.