Compare commits

..

No commits in common. "94628c554bd83f1b157a33d6ac4b1f3aec9eeed7" and "ff4cff2b5d83f574e242d05c24a4fa59132f210a" have entirely different histories.

22 changed files with 120 additions and 80 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View file

@ -30,7 +30,7 @@ namespace UnrealBuildTool.Rules
"Engine",
"Core",
"CoreUObject",
"VRExpansionPlugin"
"VRExpansionPlugin",
}
);

View file

@ -69,7 +69,7 @@ public class VRExpansionPlugin : ModuleRules
"AnimGraphRuntime",
"XRBase",
"GameplayTags",
"Mover",
"Mover"
});
//if(Target.bUseChaos)
@ -92,7 +92,7 @@ public class VRExpansionPlugin : ModuleRules
"ApplicationCore",
"RenderCore",
// "ShaderCore",
"NetworkReplayStreaming",
"NetworkReplayStreaming"
//"Renderer",
// "UtilityShaders"
});

View file

@ -15,22 +15,22 @@
"IsBetaVersion": false,
"Installed": true,
"SupportedTargetPlatforms": [
"Win64",
"Linux",
"Android",
"Mac",
"IOS"
],
"Win64",
"Linux",
"Android",
"Mac",
"IOS"
],
"Modules": [
{
"Name": "VRExpansionPlugin",
"Type": "RunTime",
"LoadingPhase": "Default"
},
{
{
"Name": "VRExpansionEditor",
"Type": "UnCookedOnly",
"LoadingPhase": "PostEngineInit"
"LoadingPhase": "PostEngineInit"
}
],
"Plugins": [
@ -45,10 +45,6 @@
{
"Name": "Mover",
"Enabled": true
},
{
"Name": "SPUD",
"Enabled": true
}
]
}
}

View file

@ -0,0 +1,23 @@
#include "CodeOnlyFunctionLibrary.h"
#include "GameFramework/Actor.h"
#include "Engine/Level.h"
FString UCodeOnlyFunctionLibrary::RenameActorUnique(AActor* ActorToRename, const FString& DesiredName, AActor* ReferenceActorForLevel)
{
if (!ActorToRename || !ReferenceActorForLevel)
{
return FString();
}
FString NewName = DesiredName;
while (!ActorToRename->Rename(*NewName, ReferenceActorForLevel->GetLevel(), REN_Test))
{
UE_LOG(LogTemp, Warning, TEXT("Rename conflict on drop: %s"), *NewName);
NewName.AppendChar('x');
}
ActorToRename->Rename(*NewName, ReferenceActorForLevel->GetLevel());
return NewName;
}

View file

@ -1,19 +0,0 @@
#include "CustomAdvancedFriendsGI.h"
#include "Engine/World.h"
#include "Engine/Engine.h"
#include "SpudSubsystem.h"
void UCustomAdvancedFriendsGI::Init()
{
Super::Init();
if (GEngine)
{
GEngine->AddOnScreenDebugMessage(-1, 5.f, FColor::Green,
TEXT("CustomAdvancedFriendsGI::Init() called"));
}
GetSpudSubsystem(GetWorld())->AddPersistentGlobalObjectWithName(this, TEXT("ExampleGameInstance"));
}

View file

@ -0,0 +1,12 @@
// Fill out your copyright notice in the Description page of Project Settings.
#include "WidgetHelper.h"
WidgetHelper::WidgetHelper()
{
}
WidgetHelper::~WidgetHelper()
{
}

View file

@ -0,0 +1,16 @@
#pragma once
#include "CoreMinimal.h"
#include "Kismet/BlueprintFunctionLibrary.h"
#include "CodeOnlyFunctionLibrary.generated.h"
UCLASS()
class NO_API UCodeOnlyFunctionLibrary : public UBlueprintFunctionLibrary
{
GENERATED_BODY()
public:
UFUNCTION(BlueprintCallable, Category="Utilities|Actor")
static FString RenameActorUnique(AActor* ActorToRename, const FString& DesiredName, AActor* ReferenceActorForLevel);
};

View file

@ -1,17 +0,0 @@
#pragma once
#include "CoreMinimal.h"
#include "AdvancedFriendsGameInstance.h"
#include "CustomAdvancedFriendsGI.generated.h"
/**
* Custom GameInstance that registers itself with SPUD for persistence.
*/
UCLASS()
class VREXPPLUGINEXAMPLE_API UCustomAdvancedFriendsGI : public UAdvancedFriendsGameInstance
{
GENERATED_BODY()
public:
virtual void Init() override;
};

View file

@ -0,0 +1,15 @@
// Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
/**
*
*/
class VREXPPLUGINEXAMPLE_API WidgetHelper
{
public:
WidgetHelper();
~WidgetHelper();
};

View file

@ -10,7 +10,7 @@ public class VRExpPluginExample : ModuleRules
PCHUsage = PCHUsageMode.UseExplicitOrSharedPCHs;
// PrivatePCHHeaderFile = "Private/WindowsMixedRealityPrecompiled.h";
PublicDependencyModuleNames.AddRange(new string[] { "Core", "CoreUObject", "Engine", "InputCore", "AdvancedSessions", "VRExpansionPlugin", "SPUD" });
PublicDependencyModuleNames.AddRange(new string[] { "Core", "CoreUObject", "Engine", "InputCore", "AdvancedSessions", "VRExpansionPlugin" });
PrivateDependencyModuleNames.AddRange(new string[] { });

View file

@ -9,15 +9,20 @@
"Type": "Runtime",
"LoadingPhase": "Default",
"AdditionalDependencies": [
"Engine",
"AdvancedSessions"
"Engine"
]
}
],
"Plugins": [
{
"Name": "OpenXR",
"Enabled": true
"Enabled": true,
"SupportedTargetPlatforms": [
"Win64",
"Linux",
"LinuxArm64",
"Android"
]
},
{
"Name": "VRExpansionPlugin",
@ -56,7 +61,13 @@
},
{
"Name": "OpenXRHandTracking",
"Enabled": true
"Enabled": true,
"SupportedTargetPlatforms": [
"Win64",
"Linux",
"LinuxArm64",
"Android"
]
},
{
"Name": "UdpMessaging",
@ -101,7 +112,10 @@
},
{
"Name": "TextureGraph",
"Enabled": true
"Enabled": true,
"SupportedTargetPlatforms": [
"Win64"
]
},
{
"Name": "Harmonix",