I'm a doctor, not a mechanic
UE3:Create a ScriptedTexture
From Unreal Wiki, The Unreal Engine Documentation Site
Revision as of 10:57, 17 March 2010 by Wormbo (Talk | contribs) (limited class links to UE3 namespace)
This is a page about a basic procedure related to UnrealScript. You are encouraged to link this page from other pages instead of explaining the procedure there. |
A ScriptedTexture(UDK, UT3) is created with the following syntax:
local ScriptedTexture ST; ST = ScriptedTexture(class'ScriptedTexture'.static.Create(SizeX, SizeY,, ClearColor)); ST.Render = RenderFunction;
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(UDK, UT3).
Usually you will want the ScriptedTexture to be specified as Material parameter.