การเปิดใช้ไฟล์ปฏิบัติการของเกมจาก Google Play Games
ซึ่งอาจเป็นภาระสำหรับนักพัฒนาเกมที่กำลังสร้างเกมอย่างต่อเนื่องภายในโปรแกรมแก้ไขเกมหรือ IDE ของโค้ด เนื่องจากต้องแพ็กเกจและเผยแพร่เกมเพื่อเปิดตัว
SDK มีโหมดนักพัฒนาซอฟต์แวร์เพื่อมอบเวิร์กโฟลว์การพัฒนาที่ดีขึ้น
เมื่อเปิดใช้ โหมดนักพัฒนาแอปจะช่วยให้ SDK ทำงานภายใน
ของโปรแกรมแก้ไขเกมหรือ IDE ของโค้ดได้ คุณเริ่มต้น SDK ได้โดยไม่ต้องกำหนดให้มีการลงนามแบบดิจิทัลในไฟล์ที่เรียกใช้งานได้หรือเปิดจาก Google Play
Games
สิ่งที่ต้องมีก่อน
รับ GUID ของพาร์ทเนอร์ที่อยู่ในช่วงทดลองใช้ก่อนเปิดตัว (EAP) นี่คือคีย์ลับที่ช่วยให้ทีมพัฒนาของคุณใช้ SDK จากภายในเอดิเตอร์เอนจินเกมได้โดยไม่ต้องแพ็กเกจหรือลงนามดิจิทัลในไฟล์ที่เรียกใช้งานเกม หรือเปิดใช้จาก Google Play Games
เปิดใช้การทดลองใช้ก่อนเปิดตัวในอุปกรณ์ที่คุณกำลังทดสอบโดยตั้งค่า
EarlyAccessPartnerGuidสตริงภายใต้คีย์รีจิสทรี
HKLM\Software\Google\Play Games Services\EarlyAccessPartnerGuid
ซึ่งทำได้โดยใช้โปรแกรมแก้ไขรีจิสทรีของ Windows หรือจากเทอร์มินัล cmd
ของผู้ดูแลระบบด้วยคำสั่งต่อไปนี้
ขั้นตอนที่ 3: ลงชื่อเข้าใช้ Google Play Games สำหรับ PC
เมื่อเปิดใช้โหมดนักพัฒนาแอป SDK จะใช้บัญชีที่ลงชื่อเข้าใช้ Google Play Games สำหรับ PC เมื่อทำการเรียก API
หากลงชื่อเข้าใช้หลายบัญชี ระบบจะใช้บัญชีที่ใช้งานอยู่
หากเกมยังไม่ได้เผยแพร่ต่อสาธารณะ (ไม่เคยเผยแพร่ในแทร็กเวอร์ชันที่ใช้งานจริง
ภายใน Play Console) เราขอแนะนำให้ใช้บัญชี Google
ที่เข้าร่วมกลุ่มการทดสอบภายในของเกม ผู้ทดสอบภายในจะมีสิทธิ์เข้าถึงเกมก่อนการเปิดตัว ซึ่งจำเป็นสำหรับ API ของ SDK บางรายการเพื่อให้ทำงานได้ เช่น การซื้อสินค้าด้วยการเรียกเก็บเงินของ Play คุณจัดการผู้ทดสอบภายในของแอปได้ใน Play Console
[[["เข้าใจง่าย","easyToUnderstand","thumb-up"],["แก้ปัญหาของฉันได้","solvedMyProblem","thumb-up"],["อื่นๆ","otherUp","thumb-up"]],[["ไม่มีข้อมูลที่ฉันต้องการ","missingTheInformationINeed","thumb-down"],["ซับซ้อนเกินไป/มีหลายขั้นตอนมากเกินไป","tooComplicatedTooManySteps","thumb-down"],["ล้าสมัย","outOfDate","thumb-down"],["ปัญหาเกี่ยวกับการแปล","translationIssue","thumb-down"],["ตัวอย่าง/ปัญหาเกี่ยวกับโค้ด","samplesCodeIssue","thumb-down"],["อื่นๆ","otherDown","thumb-down"]],["อัปเดตล่าสุด 2025-09-02 UTC"],[],[],null,["# Use the PC SDK while developing\n\nIn order to successfully initialize the SDK inside of a game several\nrequirements must be satisfied. These include:\n\n- Running from a digitally signed game executable\n\n- Launching the game executable from Google Play Games\n\nThese can be burdensome for developers that are actively building their game\ninside of a game editor or code IDE as they require packaging \\& publishing the\ngame for release.\n\nTo provide a better development workflow the SDK offers a developer\nmode. When enabled, the developer mode allows the SDK to function inside\nof a game editor or code IDE. The SDK can be initialized without\nrequiring the executable to be digitally signed or launched from Google Play\nGames.\n\nPrerequisites\n-------------\n\n- Obtain an early-access partner (EAP) GUID. This a secret key that allows your development team to use the SDK from within your game engine editor without needing to package or digitally sign your game executable or launch it from Google Play Games.\n\n| **Note:** Work with your Google Partner to get an early-access partner GUID for your development team. If you don't have an early-access partner, complete the [express interest form](https://docs.google.com/forms/d/e/1FAIpQLScn35BX-X63ggG84S76okR37nwq6qRA1PNPk4fsBpDbD7J21Q/viewform?_ga=2.233777694.1640262997.1747860154-345235146.1745606832).\n\n**Step 1**: Enable developer mode in the manifest\n-------------------------------------------------\n\n| **Warning:** Make sure to remove the `\u003cIsDeveloperMode\u003e` tag before publishing your game.\n\nEnable developer mode for your application by setting `IsDeveloperMode` to\n`true` inside of the your application's `manifest.xml`. \n\n \u003c?xml version=\"1.0\" encoding=\"utf-8\"?\u003e\n \u003cManifest version=\"1\"\u003e\n \u003cApplication\u003e\n \u003cPackageName\u003e\u003cvar translate=\"no\"\u003ecom.example.package\u003c/var\u003e\u003c/PackageName\u003e\n \\\u003cIsDeveloperMode\\\u003etrue\\\u003c/IsDeveloperMode\\\u003e\n \u003c/Application\u003e\n \u003c/Manifest\u003e\n\n**Step 2**: Enable early access\n-------------------------------\n\n| **Warning:** The early access partner GUID is a secret. Don't share this value.\n\nEnable early access on the device where your are testing by setting the\n`EarlyAccessPartnerGuid` string value under the\n`HKLM\\Software\\Google\\Play Games Services\\EarlyAccessPartnerGuid` registry key.\n\nThis can be done either using the Windows Registry Editor, or from an admin cmd\nterminal with the command: \n\n C:\\\u003e reg add \"HKLM\\Software\\Google\\Play Games Services\" /v EarlyAccessPartnerGuid /t REG_SZ /d \u003cvar translate=\"no\"\u003eEAP GUID\u003c/var\u003e\n\n**Step 3**: Sign into Google Play Games for PC\n----------------------------------------------\n\nWhen developer mode is enabled, the SDK uses the account signed into\n[Google Play Games for PC](https://play.google.com/googleplaygames) when making API\ncalls. If multiple accounts are signed in, the active account will be used.\n\nIf your game not been publicly released (has never published to the production\nrelease track inside of the Play Console), we recommend using a Google Account\nthat has joined your game's internal testing group. Internal testers will have\naccess to your game before release which is required for some SDK APIs to\nfunction. For example, completing a purchase with Play Billing. You may manage\nyour app's internal testers inside of the\n[Play Console](https://play.google.com/console/about/internal-testing/).\n\nNext steps\n----------\n\nAdd Google Play PC features to your app:\n\n- Sell digital goods with [Play Billing](/games/playgames/native-pc/billing)\n- Measure your marketing with [Play Install Referrer](/games/playgames/native-pc/install_referrer)"]]