Skip to content

Commit

Permalink
Add V3 migration warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
TheNexusAvenger committed May 19, 2024
1 parent 7e53351 commit ff4e5ba
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/Util/Warnings.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ Displays warnings when loading Nexus VR Character Model.
--]]
--!strict

local V2_DEPRECATION_WARNING = "Nexus VR Character Model V.2 will be migrated to V.3 later this year to use VRService.AvatarGestures.\nNo action is required to migrate to V3 automatically, but if you rely on behavior of V2 (camera rolling or crouching, for example), make sure to require module id 10728820003 instead of 10728814921.\nSee the V3 migration guide to determine if you need to stay on V2: https://github.com/TheNexusAvenger/Nexus-VR-Character-Model/blob/AvatarGestures/docs/v3-migration.md"

local HttpService = game:GetService("HttpService")


Expand Down Expand Up @@ -46,6 +48,13 @@ return function(): ()
return Configuration.Camera == nil or Configuration.Camera.DisableHeadLocked == nil
end,
},
{
Key = "V2Migration",
Message = V2_DEPRECATION_WARNING,
Condition = function()
return true
end,
},
}

--Output the warnings.
Expand Down

0 comments on commit ff4e5ba

Please sign in to comment.