prefrontalcortex / UnityGLTF

Runtime GLTF Loader for Unity3D
MIT License
163 stars 41 forks source link

Inconsistent import: Keywords have to be re-toggled to actually enable a feature #93

Closed kipash closed 1 year ago

kipash commented 1 year ago

Previously set materials are in an odd state, where it displays a checked checkbox for that feature, but no extra properties are revealed. After re-toggling that feature, the extra properties finally appear and the feature is observable even in the Needle runtime.

Needle Samples @ 0eed7c560d19403be2f74c7e8cee22a933317fea @ package/Runtime/AnimatedProperties/AnimatedProperties.unity

And there is a example material AnimatedProperties/Materials/Transmission.mat on which we'll re-toggle the Transition keyword.

(Transmission is enabled, but no "Transmission slider is visible") image (After a re-toggle, the slider appears) image

{
  "ExportInfoGameObjectName": "Export Info",
  "ExportInfoGameObjectIsEnabled": true,
  "UnityProjectPath": "D:/Needle/needle-engine-dev/projects/Needle Engine 2020 URP/Assets",
  "UnityVersion": "2020.3.43f1",
  "SceneName": "AnimatedProperties",
  "ProjectPath": "Library/Needle/Sample",
  "ProjectDirectoryExists": true,
  "ProjectIsInstalled": true,
  "NeedleEngineInstalled": true,
  "HasNodeInstalled": true,
  "NodeVersion": "v18.15.0",
  "NpmVersion": "9.6.1",
  "TypescriptVersion": "Version 4.9.5",
  "HasTokTxInstalled": true,
  "HasMinimumToktxVersionInstalled": true,
  "RenderPipeline": "Sample URP Settings (UnityEngine.Rendering.Universal.UniversalRenderPipelineAsset)",
  "GzipEnabled": false,
  "NeedleEngineExporterVersion": "3.6.10",
  "NeedleEngineVersion": "3.6.10",
  "NeedleEngineExporterPath": "Packages/com.needle.engine-exporter/package.json",
  "NeedleEnginePath": "D:/Needle/needle-engine-dev/projects/Needle Engine 2020 URP/Assets/../Library/Needle/Sample/node_modules/@needle-tools/engine/package.json",
  "FileStats": "By Type:\r\n•\t.json →  x 2 = 0.1 mb\r\n•\t.png →  x 2 = 0.2 mb\r\n•\t.glb →  x 9 = 54.2 mb\r\n•\t<b>Total = 54.5 mb</b>\r\n----\r\nBy Directory:\r\n•\tassets →  x 13 = 54.5 mb\r\n",
  "NeedleComponentsInScene": [
    "Needle.Engine.ExportInfo",
    "Needle.Engine.Codegen.ComponentGenerator",
    "Needle.Engine.Deployment.DeployToGlitch",
    "Needle.Engine.Deployment.DeployToFTP",
    "Needle.Engine.HtmlMeta",
    "Needle.Engine.Components.GltfObject",
    "Needle.Engine.Components.WebXR",
    "Needle.Engine.Components.USDZExporter",
    "Needle.Engine.Components.OrbitControls"
  ],
  "TypeCacheIsDirty": false,
  "TypeScriptTypes": []
}
hybridherbst commented 1 year ago

Sounds like a Unity keyword problem with 2020 / 2021 mismatch. I'll close this as I can't reproduce it; if you have clean reproduction steps on how to incorrectly get into this state please reopen :) thanks!