NVIDIA DeepLearning Dataset Synthesizer (NDDS)
 All Classes Namespaces Functions Variables Typedefs Pages
RandomMaterialParam_ColorComponent.h
1 /*
2 * Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
3 *
4 * NVIDIA CORPORATION and its licensors retain all intellectual property
5 * and proprietary rights in and to this software, related documentation
6 * and any modifications thereto. Any use, reproduction, disclosure or
7 * distribution of this software and related documentation without an express
8 * license agreement from NVIDIA CORPORATION is strictly prohibited.
9 */
10 
11 #pragma once
12 
13 #include "DomainRandomizationDNNPCH.h"
14 #include "RandomMaterialParameterComponentBase.h"
15 #include "RandomMaterialParam_ColorComponent.generated.h"
16 
17 /**
18 * RandomTextureComponent randomly change the color parameter of the materials in the owner's mesh
19 */
20 /// @cond DOXYGEN_SUPPRESSED_CODE
21 UCLASS(Blueprintable, ClassGroup = (NVIDIA), meta = (BlueprintSpawnableComponent))
22 /// @endcond DOXYGEN_SUPPRESSED_CODE
24 {
25  GENERATED_BODY()
26 
27 public:
29 
30 protected:
31  void PostLoad() override;
32  void UpdateMaterial(UMaterialInstanceDynamic* MaterialToMofidy) override;
33 
34 #if WITH_EDITORONLY_DATA
35  virtual void PostEditChangeProperty(struct FPropertyChangedEvent& PropertyChangedEvent) override;
36 #endif //WITH_EDITORONLY_DATA
37 
38 protected: // Editor properties
39  // The name of the parameter which control the color change on the owner's material
40  // DEPRECATED_FORGAME(4.16, "Use MaterialParameterNames instead")
41  UPROPERTY()
42  FName ColorParameterName;
43 
44  UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = Randomization)
45  FRandomColorData ColorData;
46 };