Up to Unreal 5.7
This commit is contained in:
parent
8a63902c06
commit
1a64805d43
239 changed files with 3947 additions and 296 deletions
|
|
@ -0,0 +1,61 @@
|
|||
// Copyright 1998-2018 Epic Games, Inc. All Rights Reserved.
|
||||
|
||||
using System.IO;
|
||||
|
||||
namespace UnrealBuildTool.Rules
|
||||
{
|
||||
public class OpenXRExpansionEditor : ModuleRules
|
||||
{
|
||||
|
||||
public OpenXRExpansionEditor(ReadOnlyTargetRules Target) : base(Target)
|
||||
{
|
||||
PCHUsage = PCHUsageMode.UseExplicitOrSharedPCHs;
|
||||
|
||||
PublicIncludePaths.AddRange(
|
||||
new string[] {
|
||||
// ... add public include paths required here ...
|
||||
}
|
||||
);
|
||||
|
||||
PrivateIncludePaths.AddRange(
|
||||
new string[] {
|
||||
// ... add other private include paths required here ...
|
||||
}
|
||||
);
|
||||
|
||||
PublicDependencyModuleNames.AddRange(
|
||||
new string[]
|
||||
{
|
||||
// ... add other public dependencies that you statically link with here ...
|
||||
"Engine",
|
||||
"Core",
|
||||
"CoreUObject"
|
||||
}
|
||||
);
|
||||
|
||||
PrivateDependencyModuleNames.AddRange(
|
||||
new string[]
|
||||
{
|
||||
"UnrealEd",
|
||||
"BlueprintGraph",
|
||||
"AnimGraph",
|
||||
"AnimGraphRuntime",
|
||||
"SlateCore",
|
||||
"Slate",
|
||||
"InputCore",
|
||||
"Engine",
|
||||
"EditorStyle",
|
||||
"AssetRegistry",
|
||||
"OpenXRExpansionPlugin"
|
||||
}
|
||||
);
|
||||
|
||||
DynamicallyLoadedModuleNames.AddRange(
|
||||
new string[]
|
||||
{
|
||||
// ... add any modules that your module loads dynamically here ...
|
||||
}
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,34 @@
|
|||
// Copyright 1998-2018 Epic Games, Inc. All Rights Reserved.
|
||||
|
||||
#include "AnimGraphNode_ApplyOpenXRHandPose.h"
|
||||
#include UE_INLINE_GENERATED_CPP_BY_NAME(AnimGraphNode_ApplyOpenXRHandPose)
|
||||
|
||||
/////////////////////////////////////////////////////
|
||||
// UAnimGraphNode_ModifyBSHand
|
||||
|
||||
UAnimGraphNode_ApplyOpenXRHandPose::UAnimGraphNode_ApplyOpenXRHandPose(const FObjectInitializer& Initializer)
|
||||
: Super(Initializer)
|
||||
{
|
||||
}
|
||||
|
||||
//Title Color!
|
||||
FLinearColor UAnimGraphNode_ApplyOpenXRHandPose::GetNodeTitleColor() const
|
||||
{
|
||||
return FLinearColor(12, 12, 0, 1);
|
||||
}
|
||||
|
||||
//Node Category
|
||||
FString UAnimGraphNode_ApplyOpenXRHandPose::GetNodeCategory() const
|
||||
{
|
||||
return FString("OpenXR");
|
||||
}
|
||||
FText UAnimGraphNode_ApplyOpenXRHandPose::GetControllerDescription() const
|
||||
{
|
||||
return FText::FromString("Apply OpenXR Hand Pose");
|
||||
}
|
||||
|
||||
FText UAnimGraphNode_ApplyOpenXRHandPose::GetNodeTitle(ENodeTitleType::Type TitleType) const
|
||||
{
|
||||
FText Result = GetControllerDescription();
|
||||
return Result;
|
||||
}
|
||||
|
|
@ -0,0 +1,16 @@
|
|||
// Copyright 1998-2018 Epic Games, Inc. All Rights Reserved.
|
||||
|
||||
#include "OpenXRExpansionEditor.h"
|
||||
#include "Editor/UnrealEdEngine.h"
|
||||
#include "UnrealEdGlobals.h"
|
||||
|
||||
|
||||
IMPLEMENT_MODULE(FOpenXRExpansionEditorModule, OpenXRExpansionEditor);
|
||||
|
||||
void FOpenXRExpansionEditorModule::StartupModule()
|
||||
{
|
||||
}
|
||||
|
||||
void FOpenXRExpansionEditorModule::ShutdownModule()
|
||||
{
|
||||
}
|
||||
|
|
@ -0,0 +1,34 @@
|
|||
#pragma once
|
||||
|
||||
#include "AnimGraphDefinitions.h"
|
||||
#include "Kismet2/BlueprintEditorUtils.h"
|
||||
#include "Editor/AnimGraph/Public/AnimGraphNode_SkeletalControlBase.h"
|
||||
|
||||
#include "AnimNode_ApplyOpenXRHandPose.h"
|
||||
// Copyright 1998-2018 Epic Games, Inc. All Rights Reserved.
|
||||
|
||||
#include "AnimGraphNode_ApplyOpenXRHandPose.generated.h"
|
||||
|
||||
UCLASS(MinimalAPI)
|
||||
class UAnimGraphNode_ApplyOpenXRHandPose : public UAnimGraphNode_SkeletalControlBase
|
||||
{
|
||||
GENERATED_UCLASS_BODY()
|
||||
|
||||
UPROPERTY(EditAnywhere, Category = Settings)
|
||||
FAnimNode_ApplyOpenXRHandPose Node;
|
||||
|
||||
public:
|
||||
// UEdGraphNode interface
|
||||
virtual FText GetNodeTitle(ENodeTitleType::Type TitleType) const override;
|
||||
virtual FLinearColor GetNodeTitleColor() const override;
|
||||
virtual FString GetNodeCategory() const override;
|
||||
// End of UEdGraphNode interface
|
||||
|
||||
protected:
|
||||
|
||||
// UAnimGraphNode_SkeletalControlBase protected interface
|
||||
virtual FText GetControllerDescription() const;
|
||||
virtual const FAnimNode_SkeletalControlBase* GetNode() const override { return &Node; }
|
||||
// End of UAnimGraphNode_SkeletalControlBase protected interface
|
||||
|
||||
};
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
// Copyright 1998-2018 Epic Games, Inc. All Rights Reserved.
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "Runtime/Core/Public/Modules/ModuleInterface.h"
|
||||
|
||||
class FOpenXRExpansionEditorModule : public IModuleInterface
|
||||
{
|
||||
public:
|
||||
|
||||
virtual void StartupModule() override;
|
||||
virtual void ShutdownModule() override;
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue