Engine Class
StudioService
*เนื้อหานี้แปลโดยใช้ AI (เวอร์ชัน Beta) และอาจมีข้อผิดพลาด หากต้องการดูหน้านี้เป็นภาษาอังกฤษ ให้คลิกที่นี่
สรุป
คุณสมบัติ
วิธีการ
GetClassIcon(className: string):Dictionary |
PromptImportFile(fileTypeFilter: {any}):Instance |
PromptImportFileAsync(fileTypeFilter: {any}):Instance |
PromptImportFiles(fileTypeFilter: {any}):Instances |
PromptImportFilesAsync(fileTypeFilter: {any}):Instances |
เอกสารอ้างอิงเกี่ยวกับ API
คุณสมบัติ
DrawConstraintsOnTop
วิธีการ
GetClassIcon
พารามิเตอร์
ส่งค่ากลับ
GetUserId
ส่งค่ากลับ
ตัวอย่างโค้ด
StudioService:GetUserId
-- สามารถใช้ได้ในปลั๊กอินเท่านั้น
local StudioService = game:GetService("StudioService")
local Players = game:GetService("Players")
local loggedInUserId = StudioService:GetUserId()
local loggedInUserName = Players:GetNameFromUserIdAsync(loggedInUserId)
print("สวัสดี,", loggedInUserName)PromptImportFile
PromptImportFileAsync
PromptImportFiles