1
0
KF2-Dev-Scripts/Engine/Classes/MaterialExpressionRotator.uc

42 lines
1.1 KiB
Ucode
Raw Permalink Normal View History

2020-12-13 15:01:13 +00:00
/**
* Copyright 1998-2013 Epic Games, Inc. All Rights Reserved.
*/
class MaterialExpressionRotator extends MaterialExpression
native(Material)
collapsecategories
hidecategories(Object);
var ExpressionInput Coordinate;
var ExpressionInput Time;
var() float CenterX,
CenterY,
Speed;
cpptext
{
virtual INT Compile(FMaterialCompiler* Compiler, INT OutputIndex);
virtual FString GetCaption() const;
/**
* Replaces references to the passed in expression with references to a different expression or NULL.
* @param OldExpression Expression to find reference to.
* @param NewExpression Expression to replace reference with.
*/
virtual void SwapReferenceTo(UMaterialExpression* OldExpression,UMaterialExpression* NewExpression = NULL);
/**
* @return TRUE if the expression preview needs realtime update
*/
virtual UBOOL NeedsRealtimePreview() { return Time.Expression==NULL && Speed != 0.f; }
}
defaultproperties
{
CenterX=0.5
CenterY=0.5
Speed=0.25
MenuCategories(0)="Coordinates"
MenuCategories(1)="WorldPosOffset"
}