UDCORE (หรือ Unreal Directive Core ) เป็นปลั๊กอินเครื่องยนต์ที่ไม่เป็นจริงโอเพนซอร์ซที่ออกแบบมาจากพื้นดินเพื่อให้ฟังก์ชั่นคุณภาพชีวิตเพื่อเพิ่มประสบการณ์การพัฒนา
ปลั๊กอินนี้เริ่มต้นโดย Dylan "Tezenari" AMOS ซึ่งเป็นส่วนหนึ่งของความคิดริเริ่มที่ไม่จริงเพื่อเสริมสร้างพลังความรู้และเครื่องมือที่ไม่จริงเพื่อให้พวกเขาสามารถสร้างสิ่งที่น่าอัศจรรย์ได้ดีขึ้น
ปรัชญาของ Udcore หมุนรอบต่อไปนี้ -
ปลั๊กอินนี้จะได้รับการอัปเดตเป็นระยะ ๆ ด้วยฟังก์ชั่นใหม่
คำแนะนำเกี่ยวกับวิธีการติดตั้งปลั๊กอิน UDCore ฉันขอแนะนำให้ตรวจสอบหน้าเริ่มต้นอย่างรวดเร็วบนเว็บไซต์เอกสาร
สามารถติดตั้ง UDCore ได้โดยตรงโดยใช้ปลั๊กอินปลั๊กอินดาวน์โหลดในตลาด
ติดตั้งปลั๊กอินดาวน์โหลดจากตลาด Unreal Engine
เปิดใช้งานปลั๊กอิน Plugin Downloader
Edit -> PluginsPlugin Downloader และเปิดใช้งาน ดาวน์โหลด UDCore
ไปที่ Edit -> Plugins
คลิกที่ Download ที่ด้านซ้ายบนของหน้าต่าง Plugins
ป้อนข้อมูลต่อไปนี้ในหน้าต่าง Download Plugin
คลิกที่ Download ที่ด้านล่างขวาของหน้าต่าง Download Plugin
รอการดาวน์โหลดให้เสร็จสมบูรณ์
รีสตาร์ทตัวแก้ไขเอ็นจิ้น Unreal เมื่อได้รับแจ้ง
เปิดใช้งานปลั๊กอิน UDCore
Edit -> PluginsPlugin Downloader และเปิดใช้งานโคลนที่เก็บ:
git clone https://github.com/UnrealDirective/UDCore.gitคัดลอกปลั๊กอินไปยังโครงการ Unreal Engine ของคุณ:
Plugins ของโครงการ Unreal Engine Project ของคุณUDCore ลงในไดเรกทอรี Pluginsเปิดใช้งานปลั๊กอิน:
Edit > PluginsUDCore และเปิดใช้งานนี่คือตัวอย่างเกี่ยวกับวิธีที่คุณสามารถใช้ฟังก์ชั่นบางอย่างใน 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 ของเรา