UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
MovieScenePrimitiveMaterialTrack.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "MovieSceneTrack.h"
8#include "MovieScenePrimitiveMaterialTrack.generated.h"
9
10UCLASS(MinimalAPI)
12{
13public:
14
16
18
19 /* Set the material index that this track is assigned to */
20 UE_DEPRECATED(5.4, "SetMaterialIndex is deprecated, use SetMaterialInfo instead")
21 MOVIESCENETRACKS_API void SetMaterialIndex(int32 MaterialIndex);
22
23 /* Get the material index that this track is assigned to */
24 UE_DEPRECATED(5.4, "GetMaterialIndex is deprecated, use GetMaterialInfo instead")
25 MOVIESCENETRACKS_API int32 GetMaterialIndex() const;
26
27 /* Set the material info for the material that this track is assigned to */
29
30 /* Get the material info for the material that this track is assigned to */
31 MOVIESCENETRACKS_API const FComponentMaterialInfo& GetMaterialInfo() const;
32
33 /*~ UMovieSceneTrack interface */
34 virtual UMovieSceneSection* CreateNewSection() override;
35 virtual bool SupportsType(TSubclassOf<UMovieSceneSection> SectionClass) const override;
36
37#if WITH_EDITOR
39
40 // We override label color if material binding is broken/partially broken.
41 virtual FSlateColor GetLabelColor(const FMovieSceneLabelParams& LabelParams) const override;
42#endif
43
44protected:
45#if WITH_EDITORONLY_DATA
46 void PostLoad() override;
47
48private:
49 UPROPERTY()
51
52#endif
53
54private:
55 UPROPERTY()
56 FComponentMaterialInfo MaterialInfo;
57};
#define UE_DEPRECATED(Version, Message)
Definition CoreMiscDefines.h:302
FPlatformTypes::int32 int32
A 32-bit signed integer.
Definition Platform.h:1125
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
#define UPROPERTY(...)
UObject definition macros.
Definition ObjectMacros.h:744
#define GENERATED_BODY(...)
Definition ObjectMacros.h:765
#define UCLASS(...)
Definition ObjectMacros.h:776
Definition UObjectGlobals.h:1292
Definition Text.h:385
Definition SubclassOf.h:30
Definition MovieScenePrimitiveMaterialTrack.h:12
Definition MovieScenePropertyTrack.h:30
Definition MovieSceneSection.h:243
Definition MovieSceneMaterialTrack.h:36
Definition SlateColor.h:42