NVIDIA DeepLearning Dataset Synthesizer (NDDS)
 All Classes Namespaces Functions Variables Typedefs Pages
RandomMaterialParam_ScalarComponent.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_ScalarComponent.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 UpdateMaterial(UMaterialInstanceDynamic* MaterialToMofidy) override;
32 
33 protected: // Editor properties
34  // Range of the scalar value to randomize
35  UPROPERTY(EditAnywhere, Category = Randomization)
36  FFloatInterval ValueRange;
37 };