PBR UGC Become Legacy When Uploaded

The UGC PBR texture update is no longer on hold, according to the post title (Introducing Physically-Based Rendering (PBR) for Avatar Accessories). So, I tried it, and everything worked until the UGC finishes moderation and becomes available on the marketplace, except that the “PBR” disappears completely.

I tried to see what was wrong in Roblox Studio, and I discovered that the UGC becomes a “Legacy accessory.”

When you upload a MeshPart Accessory we automatically convert the Accessory to have both a MeshPart and SpecialMesh (legacy) version of the Accessory. The legacy version will be used only for R6 avatars or in cases where workspace.MeshPartHeadsAndAccessories is set to Disabled.

If you want to load the MeshPart version of the Accessory in Studio you can run the following code (assuming workspace.MeshPartHeadsAndAccessories is Enabled or Default).

local Players = game:GetService("Players")

local humanoidDescription = Instance.new("HumanoidDescription")
humanoidDescription.HatAccessory = "110735618631214"
local humanoidModel = Players:CreateHumanoidModelFromDescription(humanoidDescription, Enum.HumanoidRigType.R15)

local accessory = humanoidModel:FindFirstChildWhichIsA("Accessory")
accessory.Parent = game.Workspace

I used 110735618631214 as an example PBR Accessory here, but you can replace it with the AssetId for your Accessory.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.