UDCORE (またはUnreal Directive Core )は、開発エクスペリエンスを向上させるために生活の質のある機能を提供するためにグラウンドアップから設計されたオープンソースの非現実的なエンジンプラグインです。
このプラグインは、非現実的なエンジン開発者に知識とツールを強化し、驚くべきものをよりよく構築できるようにするためのUnreal Directive Initiativeの一部として、Dylan "Tezenari" Amosによって開始されました。
Udcoreの哲学は以下を中心に展開します -
このプラグインは、新しい機能を使用して散発的に更新されます。
udcoreプラグインのインストール方法に関する指示。ドキュメントWebサイトでクイックスタートページを確認することをお勧めします。
Udcoreは、マーケットプレイスのプラグインダウンローダープラグインを使用して直接インストールできます。
Unreal Engine Marketplaceのプラグインダウンローダーをインストールします
Plugin Downloaderプラグインを有効にします
Edit - > Pluginsに移動します。Plugin Downloaderを検索し、有効にします。 UDCoreをダウンロードしてください
Edit - > Pluginsに移動します
Pluginsウィンドウの左上でDownloadをクリックします
Download Pluginウィンドウに次の情報を入力します
Download Pluginウィンドウの右下にあるDownloadをクリックします
ダウンロードが完了するのを待ちます
プロンプトが表示されたら、Unreal Engine Editorを再起動します
UDCoreプラグインを有効にします
Edit - > Pluginsに移動します。Plugin Downloaderを検索し、有効にします。リポジトリをクローンします:
git clone https://github.com/UnrealDirective/UDCore.gitプラグインを非現実的なエンジンプロジェクトにコピーします。
Pluginsディレクトリに移動します。UDCoreフォルダーをPluginsディレクトリにコピーします。プラグインを有効にします:
Edit > Pluginsに移動します。UDCoreを検索して有効にします。Udcoreのいくつかの関数を使用する方法の例を以下に示します。詳細については、ドキュメントをご覧ください。
Async移動場所へ:
.cpp
# include " AI/UDAT_MoveToLocation.h "
# include " GameFramework/Controller.h "
# include " GameFramework/Actor.h "
void AExampleCharacter::MovePlayerToLocation ()
{
UWorld* World = GetWorld ();
AController* Controller = GetController ();
const FVector Destination ( 100 . 0f , 200 . 0f , 300 . 0f );
constexpr float AcceptanceRadius = 100 . 0f ;
constexpr bool bDebugLineTrace = false ;
UUDAT_MoveToLocation* MoveToLocationTask = UUDAT_MoveToLocation::MoveToLocation (
World,
Controller,
Destination,
AcceptanceRadius,
bDebugLineTrace);
if (MoveToLocationTask)
{
MoveToLocationTask-> Completed . AddDynamic ( this , &ThisClass::OnMoveToLocationCompleted);
}
}
void AExampleCharacter::OnMoveToLocationCompleted ( bool bSuccess)
{
// Called when UUDAT_MoveToLocation has completed with either a success or fail.
// Add your logic here.
}文字が含まれています:
FString StringToCheck = " Example123 "
bool bHasLetters = UUDCoreFunctionLibrary::ContainsLetters(StringToCheck);番号が含まれています:
FString StringToCheck = " Example123 "
bool bHasNumbers = UUDCoreFunctionLibrary::ContainsNumbers(StringToCheck);フィルター文字:
FString StringToCheck = " Example 123 !@# "
bool bFilterOutLetters = false ;
bool bFilterOutNumbers = false ;
bool bFilterOutSpecialCharacters = true ;
bool bFilterOutSpaces = true ;
// "Example 123 !@#" would become "Example123"
FString FilteredString = UUDCoreFunctionLibrary::FilterCharacters(
StringToCheck,
bFilterOutLetters,
bFilterOutNumbers,
bFilterOutSpecialCharacters,
bFilterOutSpaces);空ではありません:
FText TextToCheck = " Example123 "
bool bIsNotEmpty = UUDCoreFunctionLibrary::IsNotEmpty(TextToCheck);ビューポートの焦点俳優:
TArray<AActor*> ActorsToFocus;
bool bFocusInstantly = true ;
// Populate ActorsToFocus with actors
UUDCoreEditorActorSubsystem::FocusActorsInViewport (ActorsToFocus, bFocusInstantly);すべてのレベルクラスを取得します:
TArray<UClass*> LevelClasses = UUDCoreEditorActorSubsystem::GetAllLevelClasses();静的メッシュアクターをフィルタリングします:
TArray<AStaticMeshActor*> StaticMeshActors;
TArray<AActor*> ActorsToFilter;
// Populate ActorsToFilter with actors
UUDCoreEditorActorSubsystem::FilterStaticMeshActors (StaticMeshActors, ActorsToFilter);名前で俳優をフィルターします:
TArray<AActor*> FilteredActors;
TArray<AActor*> ActorsToFilter;
FString ActorNameToFind = " ExampleName " ;
// Populate ActorsToFilter with actors
UUDCoreEditorActorSubsystem::FilterActorsByName (ActorsToFilter, FilteredActors, ActorNameToFind, EUDInclusivity::Include);クラスごとに俳優をフィルター:
TArray<AActor*> FilteredActors;
TArray<AActor*> ActorsToFilter;
// Populate ActorsToFilter with actors
UUDCoreEditorActorSubsystem::FilterActorsByClass (ActorsToFilter, FilteredActors, AStaticMeshActor::StaticClass(), EUDInclusivity::Include);Udcoreの機能を強化するための貢献を歓迎します。貢献するには、次の手順に従ってください。
git checkout -b feature/YourFeature )。git commit -am 'Add new feature' )。git push origin feature/YourFeature )。UdcoreはMITライセンスに基づいてライセンスされています。詳細については、ライセンスファイルを参照してください。
サポートについては、GitHubの問題ページをご覧ください。