I would like to create a Point Light in a script and add it on the screen when I open the Class Viewer window and put the script in the game .
I start by creating a class of type Pawn and Editor opens me to my class in visual studio …
Right now I have not much idea of how to proceed …
By the editor I can open the file PointLight.h
— X —
/ / Copyright 1998-2014 Epic Games , Inc. All Rights Reserved .
pragma once
include " PointLight.generated.h "
UCLASS ( HeaderGroup = Light , classgroup = ( Lights , PointLights ) , MinimalAPI , target = ( ChildCanTick ) )
APointLight class : public alight
{
GENERATED_UCLASS_BODY ()
UPROPERTY ( BlueprintReadOnly , Category = " Light " , target = ( ExposeFunctionCategories = " PointLight , Rendering | Lighting " ) )
- PointLightComponent UPointLightComponent class ;
/ / BEGIN DEPRECATED (use component functions now in level script )
UFUNCTION ( BlueprintCallable , Category = " Rendering | Lighting " , target = ( DeprecatedFunction ) )
ENGINE_API SetRadius void (float NewRadius ) ;
UFUNCTION ( BlueprintCallable , Category = " Rendering | Lighting " , target = ( DeprecatedFunction ) )
ENGINE_API SetLightFalloffExponent void (float NewLightFalloffExponent ) ;
/ / END DEPRECATED
if WITH_EDITOR
/ / Begin AActor interface.
virtual void EditorApplyScale ( const FVector DeltaScale & , const FVector PivotLocation * , bool bAltDown , bShiftDown bool , bool bCtrlDown ) OVERRIDE ;
/ / End AActor interface.
endif
/ / Begin UObject interface.
virtual void PostLoad ( ) OVERRIDE ;
if WITH_EDITOR
virtual void LoadedFromAnotherClass ( const FName & OldClassName ) OVERRIDE ;
endif
/ / End UObject interface.
} ;
— X —
Now how do I create an object of that type in my class with a property that changed the way I want ?