Collision/Phyiscs fixes, tried moving actors between levels by chanigng outer and renaming but SPUD cant handle that, so will probably destroy / respawn
This commit is contained in:
parent
51520c49b9
commit
2775763bfd
15 changed files with 81 additions and 21 deletions
15
VIRTUOS_ExpansionPluginTests/.ignore
Normal file
15
VIRTUOS_ExpansionPluginTests/.ignore
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
/.vs
|
||||
/.vscode
|
||||
/Content
|
||||
/DerivedDataCache
|
||||
/Intermediate
|
||||
/Saved
|
||||
/UE4ProjectRenamer
|
||||
/Plugins/AdvancedSessions/AdvancedSessions/Intermediate
|
||||
/Plugins/AdvancedSessions/AdvancedSteamSessions/Intermediate
|
||||
/Plugins/SPUD/doc
|
||||
/Plugins/SPUD/Intermediate
|
||||
/Plugins/StevesUEHelpers/doc
|
||||
/Plugins/StevesUEHelpers/Intermediate
|
||||
/Plugins/VRExpansionPlugin/OpenXRExpansionPlugin/Intermediate
|
||||
/Plugins/VRExpansionPlugin/VRExpansionPlugin/Intermediate
|
||||
BIN
VIRTUOS_ExpansionPluginTests/Content/Maps/Map_Bathrooms.umap
(Stored with Git LFS)
BIN
VIRTUOS_ExpansionPluginTests/Content/Maps/Map_Bathrooms.umap
(Stored with Git LFS)
Binary file not shown.
BIN
VIRTUOS_ExpansionPluginTests/Content/Maps/Map_Gameworld.umap
(Stored with Git LFS)
BIN
VIRTUOS_ExpansionPluginTests/Content/Maps/Map_Gameworld.umap
(Stored with Git LFS)
Binary file not shown.
BIN
VIRTUOS_ExpansionPluginTests/Content/Maps/MotionControllerMap.umap
(Stored with Git LFS)
BIN
VIRTUOS_ExpansionPluginTests/Content/Maps/MotionControllerMap.umap
(Stored with Git LFS)
Binary file not shown.
BIN
VIRTUOS_ExpansionPluginTests/Content/VRE/Grippables/Weapons/Guns/GunBase.uasset
(Stored with Git LFS)
BIN
VIRTUOS_ExpansionPluginTests/Content/VRE/Grippables/Weapons/Guns/GunBase.uasset
(Stored with Git LFS)
Binary file not shown.
BIN
VIRTUOS_ExpansionPluginTests/Content/VRE/VRE2/Core/GraspingHands/GraspAnimBPManny2.uasset
(Stored with Git LFS)
BIN
VIRTUOS_ExpansionPluginTests/Content/VRE/VRE2/Core/GraspingHands/GraspAnimBPManny2.uasset
(Stored with Git LFS)
Binary file not shown.
BIN
VIRTUOS_ExpansionPluginTests/Content/World/Interactibles/Bathroom/BP_ToiletStall.uasset
(Stored with Git LFS)
BIN
VIRTUOS_ExpansionPluginTests/Content/World/Interactibles/Bathroom/BP_ToiletStall.uasset
(Stored with Git LFS)
Binary file not shown.
BIN
VIRTUOS_ExpansionPluginTests/Content/World/Interactibles/Bathroom/ToiletDoor/DoorActor2.uasset
(Stored with Git LFS)
BIN
VIRTUOS_ExpansionPluginTests/Content/World/Interactibles/Bathroom/ToiletDoor/DoorActor2.uasset
(Stored with Git LFS)
Binary file not shown.
BIN
VIRTUOS_ExpansionPluginTests/Content/World/Interactibles/Bathroom/ToiletDoor/aaa/DoorActor2.uasset
(Stored with Git LFS)
Normal file
BIN
VIRTUOS_ExpansionPluginTests/Content/World/Interactibles/Bathroom/ToiletDoor/aaa/DoorActor2.uasset
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
VIRTUOS_ExpansionPluginTests/Content/World/Interactibles/Bathroom/Trashcan/BP_TrashCan.uasset
(Stored with Git LFS)
BIN
VIRTUOS_ExpansionPluginTests/Content/World/Interactibles/Bathroom/Trashcan/BP_TrashCan.uasset
(Stored with Git LFS)
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
|
@ -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;
|
||||
}
|
||||
|
|
@ -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);
|
||||
};
|
||||
|
|
@ -7,7 +7,10 @@
|
|||
{
|
||||
"Name": "VRExpPluginExample",
|
||||
"Type": "Runtime",
|
||||
"LoadingPhase": "Default"
|
||||
"LoadingPhase": "Default",
|
||||
"AdditionalDependencies": [
|
||||
"Engine"
|
||||
]
|
||||
}
|
||||
],
|
||||
"Plugins": [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue