Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // MaterialExpressionStaticMultipleSwitch.h
- #pragma once
- #include "Materials/MaterialExpression.h"
- #include "MaterialExpressionStaticMultipleSwitch.generated.h"
- UCLASS(collapsecategories, hidecategories=Object, MinimalAPI)
- class UMaterialExpressionStaticMultipleSwitch : public UMaterialExpression
- {
- GENERATED_UCLASS_BODY()
- UPROPERTY()
- FExpressionInput Value;
- UPROPERTY(EditAnywhere, Category = MaterialExpressionStaticMultipleSwitch)
- TArray<struct FCustomInput> Inputs;
- // Begin UObject interface.
- #if WITH_EDITOR
- virtual void PostEditChangeProperty(FPropertyChangedEvent& PropertyChangedEvent) override;
- #endif // WITH_EDITOR
- // End UObject interface.
- // Begin UMaterialExpression Interface
- virtual int32 Compile(class FMaterialCompiler* Compiler, int32 OutputIndex, int32 MultiplexIndex) override;
- virtual void GetCaption(TArray<FString>& OutCaptions) const override;
- virtual const TArray<FExpressionInput*> GetInputs() override;
- virtual FExpressionInput* GetInput(int32 InputIndex) override;
- virtual FString GetInputName(int32 InputIndex) const override;
- virtual bool IsResultMaterialAttributes(int32 OutputIndex) override;
- #if WITH_EDITOR
- virtual uint32 GetInputType(int32 InputIndex) override;
- virtual uint32 GetOutputType(int32 OutputIndex) override {return MCT_Unknown;}
- #endif
- // End UMaterialExpression Interface
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement