UE3:Create a ScriptedTexture

From Unreal Wiki, The Unreal Engine Documentation Site

A ScriptedTexture

()

is created with the following syntax:

<uscript> local ScriptedTexture ST;

ST = ScriptedTexture(class'ScriptedTexture'.static.Create(SizeX, SizeY,, ClearColor)); ST.Render = RenderFunction; </uscript>

This creates a new ScriptedTexture that is SizeX pixels wide and SizeY high that is cleared to ClearColor before redrawing. RenderFunction must be a function without return value that has only one parameter of type Canvas

()

.

Usually you will want the ScriptedTexture to be specified as Material parameter.