Exemplo n.º 1
0
 public static UWorld World(this FWorldContext worldContext)
 {
     return(GCHelper.Find <UWorld>(worldContext.CurrentWorld));
 }
Exemplo n.º 2
0
 public static UGameInstance GetOwningGameInstance(this FWorldContext worldContext)
 {
     return(GCHelper.Find <UGameInstance>(worldContext.OwningGameInstance));
 }
Exemplo n.º 3
0
        public AActor SpawnActor(UClass unrealClass, ref FVector location, ref FRotator rotation)
        {
            FActorSpawnParametersInterop parameters = default(FActorSpawnParametersInterop);

            return(GCHelper.Find <AActor>(Native_UWorld.SpawnActor(Address, unrealClass.Address, ref location, ref rotation, ref parameters)));
        }
Exemplo n.º 4
0
 public UWorld GetWorldFromContextObject(UObject obj)
 {
     return(GCHelper.Find <UWorld>(Native_UEngine.GetWorldFromContextObject(obj.Address, EGetWorldErrorMode.ReturnNull)));
 }
Exemplo n.º 5
0
 public static UGameInstance GetGameInstance(this UGameInstanceSubsystem Instance)
 {
     return(GCHelper.Find <UGameInstance>(Native_UGameInstanceSubsystem.GetGameInstance(Instance.Address)));
 }
Exemplo n.º 6
0
 public APlayerController GetFirstPlayerController()
 {
     return(GCHelper.Find <APlayerController>(Native_UWorld.GetFirstPlayerController(Address)));
 }
Exemplo n.º 7
0
 /// <summary>
 /// Return the ULevel that this Actor is part of.
 /// </summary>
 /// <returns></returns>
 public ULevel GetLevel()
 {
     return(GCHelper.Find <ULevel>(Native_AActor.GetLevel(this.Address)));
 }
Exemplo n.º 8
0
 public T GetTarget <T>() where T : UObject
 {
     return(GCHelper.Find <T>(GetTargetPtr()));
 }
Exemplo n.º 9
0
 public UObject GetTarget()
 {
     return(GCHelper.Find(GetTargetPtr()));
 }
Exemplo n.º 10
0
        internal override void SetupPlayerInputComponent(IntPtr playerInputComponentAddress)
        {
            UInputComponent playerInputComponent = GCHelper.Find <UInputComponent>(playerInputComponentAddress);

            SetupPlayerInputComponent(playerInputComponent);
        }
Exemplo n.º 11
0
 /// <summary>
 /// Get the Blueprint object that generated the supplied class
 /// </summary>
 /// <param name="inClass"></param>
 /// <returns></returns>
 public static UBlueprint GetBlueprintFromClass(UClass inClass)
 {
     return(GCHelper.Find <UBlueprint>(Native_UBlueprint.GetBlueprintFromClass(inClass == null ? IntPtr.Zero : inClass.Address)));
 }