├── .gitattributes ├── .github └── ISSUE_TEMPLATE │ └── bug.yml ├── .gitignore ├── .npmignore ├── CHANGELOG.md ├── CHANGELOG.md.meta ├── CODE_OF_CONDUCT.md ├── CODE_OF_CONDUCT.md.meta ├── Editor.meta ├── Editor ├── Scripts.meta ├── Scripts │ ├── GLTFComponentInspector.cs │ ├── GLTFComponentInspector.cs.meta │ ├── GLTFExportMenu.cs │ ├── GLTFExportMenu.cs.meta │ ├── GLTFImporter.cs │ ├── GLTFImporter.cs.meta │ ├── GLTFImporterInspector.cs │ ├── GLTFImporterInspector.cs.meta │ ├── GLTFSettingsInspector.cs │ ├── GLTFSettingsInspector.cs.meta │ ├── Internal.meta │ ├── Internal │ │ ├── AsyncHelpers.cs │ │ ├── AsyncHelpers.cs.meta │ │ ├── AvatarUtils.cs │ │ ├── AvatarUtils.cs.meta │ │ ├── DefaultImportSettings.meta │ │ ├── DefaultImportSettings │ │ │ ├── DefaultTexture.png │ │ │ └── DefaultTexture.png.meta │ │ ├── GLTFMaterialHelper.cs │ │ ├── GLTFMaterialHelper.cs.meta │ │ ├── HumanoidSetup.cs │ │ ├── HumanoidSetup.cs.meta │ │ ├── TextureImporterHelper.cs │ │ ├── TextureImporterHelper.cs.meta │ │ ├── UnityGLTF.Internal.asmref │ │ ├── UnityGLTF.Internal.asmref.meta │ │ ├── UnityGLTFTabbedEditor.cs │ │ ├── UnityGLTFTabbedEditor.cs.meta │ │ ├── UnityGltfShaderUpgradeMeta.cs │ │ └── UnityGltfShaderUpgradeMeta.cs.meta │ ├── KtxImporterHelper.cs │ ├── KtxImporterHelper.cs.meta │ ├── PackageVersionPreprocessBuild.cs │ ├── PackageVersionPreprocessBuild.cs.meta │ ├── PbrShaderGUI.cs │ ├── PbrShaderGUI.cs.meta │ ├── Plugins.meta │ ├── Plugins │ │ ├── GLTFPluginEditor.cs │ │ ├── GLTFPluginEditor.cs.meta │ │ ├── RegisteredImportPlugins.cs │ │ └── RegisteredImportPlugins.cs.meta │ ├── ShaderGraph.meta │ └── ShaderGraph │ │ ├── InternalShaderGraph.meta │ │ ├── InternalShaderGraph │ │ ├── PBRGraphGUI.cs │ │ ├── PBRGraphGUI.cs.meta │ │ ├── ShaderGraphHelpers.cs │ │ ├── ShaderGraphHelpers.cs.meta │ │ ├── ShaderGraphOverrideImporter.cs │ │ ├── ShaderGraphOverrideImporter.cs.meta │ │ ├── ShaderGraphOverrideImporterEditor.cs │ │ ├── ShaderGraphOverrideImporterEditor.cs.meta │ │ ├── UnityGLTF.ShaderGraph.Internal.asmref │ │ └── UnityGLTF.ShaderGraph.Internal.asmref.meta │ │ ├── InternalURP.meta │ │ ├── InternalURP │ │ ├── PBRGraphUniversalGUI.cs │ │ ├── PBRGraphUniversalGUI.cs.meta │ │ ├── UnityGLTF.URP.Internal.asmref │ │ └── UnityGLTF.URP.Internal.asmref.meta │ │ ├── MaterialEditorBridge.cs │ │ ├── MaterialEditorBridge.cs.meta │ │ ├── MaterialLibraryEditor.cs │ │ ├── MaterialLibraryEditor.cs.meta │ │ ├── NoCompilationWarning.cs │ │ ├── NoCompilationWarning.cs.meta │ │ ├── ShaderConverters.cs │ │ ├── ShaderConverters.cs.meta │ │ ├── ShaderPassStripping.cs │ │ ├── ShaderPassStripping.cs.meta │ │ ├── UnityGLTF.ShaderGraph.asmdef │ │ └── UnityGLTF.ShaderGraph.asmdef.meta ├── UnityGLTFEditor.asmdef └── UnityGLTFEditor.asmdef.meta ├── LICENSE ├── LICENSE.meta ├── README.md ├── README.md.meta ├── Runtime.meta ├── Runtime ├── .gitignore ├── Plugins.meta ├── Plugins │ ├── GLTFSerialization.meta │ ├── GLTFSerialization │ │ ├── AssemblyInfo.cs │ │ ├── AssemblyInfo.cs.meta │ │ ├── AttributeAccessor.cs │ │ ├── AttributeAccessor.cs.meta │ │ ├── Exceptions.cs │ │ ├── Exceptions.cs.meta │ │ ├── Extensions.meta │ │ ├── Extensions │ │ │ ├── EXT_mesh_gpu_instancing.cs │ │ │ ├── EXT_mesh_gpu_instancing.cs.meta │ │ │ ├── EXT_meshopt_compression.cs │ │ │ ├── EXT_meshopt_compression.cs.meta │ │ │ ├── EXT_texture_exr.cs │ │ │ ├── EXT_texture_exr.cs.meta │ │ │ ├── ExtTextureTransformExtension.cs │ │ │ ├── ExtTextureTransformExtension.cs.meta │ │ │ ├── ExtTextureTransformExtensionFactory.cs │ │ │ ├── ExtTextureTransformExtensionFactory.cs.meta │ │ │ ├── GLTFJsonExtensions.cs │ │ │ ├── GLTFJsonExtensions.cs.meta │ │ │ ├── KHR_LightsPunctualExtension.cs │ │ │ ├── KHR_LightsPunctualExtension.cs.meta │ │ │ ├── KHR_LightsPunctualExtensionFactory.cs │ │ │ ├── KHR_LightsPunctualExtensionFactory.cs.meta │ │ │ ├── KHR_animation_pointer.cs │ │ │ ├── KHR_animation_pointer.cs.meta │ │ │ ├── KHR_animation_pointerExtensionFactory.cs │ │ │ ├── KHR_animation_pointerExtensionFactory.cs.meta │ │ │ ├── KHR_draco_mesh_compression.cs │ │ │ ├── KHR_draco_mesh_compression.cs.meta │ │ │ ├── KHR_materials_clearcoat.cs │ │ │ ├── KHR_materials_clearcoat.cs.meta │ │ │ ├── KHR_materials_dispersion.cs │ │ │ ├── KHR_materials_dispersion.cs.meta │ │ │ ├── KHR_materials_emissive_strength.cs │ │ │ ├── KHR_materials_emissive_strength.cs.meta │ │ │ ├── KHR_materials_ior.cs │ │ │ ├── KHR_materials_ior.cs.meta │ │ │ ├── KHR_materials_iridescence.cs │ │ │ ├── KHR_materials_iridescence.cs.meta │ │ │ ├── KHR_materials_pbrSpecularGlossinessExtension.cs │ │ │ ├── KHR_materials_pbrSpecularGlossinessExtension.cs.meta │ │ │ ├── KHR_materials_pbrSpecularGlossinessExtensionFactory.cs │ │ │ ├── KHR_materials_pbrSpecularGlossinessExtensionFactory.cs.meta │ │ │ ├── KHR_materials_sheen.cs │ │ │ ├── KHR_materials_sheen.cs.meta │ │ │ ├── KHR_materials_specular.cs │ │ │ ├── KHR_materials_specular.cs.meta │ │ │ ├── KHR_materials_transmission.cs │ │ │ ├── KHR_materials_transmission.cs.meta │ │ │ ├── KHR_materials_unlitExtension.cs │ │ │ ├── KHR_materials_unlitExtension.cs.meta │ │ │ ├── KHR_materials_unlitExtensionFactory.cs │ │ │ ├── KHR_materials_unlitExtensionFactory.cs.meta │ │ │ ├── KHR_materials_volume.cs │ │ │ ├── KHR_materials_volume.cs.meta │ │ │ ├── KHR_node_hoverability.cs │ │ │ ├── KHR_node_hoverability.cs.meta │ │ │ ├── KHR_node_selectability.cs │ │ │ ├── KHR_node_selectability.cs.meta │ │ │ ├── KHR_node_visibility.cs │ │ │ ├── KHR_node_visibility.cs.meta │ │ │ ├── KHR_texture_basisu.cs │ │ │ ├── KHR_texture_basisu.cs.meta │ │ │ ├── MSFT_LODExtension.cs │ │ │ ├── MSFT_LODExtension.cs.meta │ │ │ ├── MSFT_LODExtensionFactory.cs │ │ │ └── MSFT_LODExtensionFactory.cs.meta │ │ ├── GLBBuilder.cs │ │ ├── GLBBuilder.cs.meta │ │ ├── GLBObject.cs │ │ ├── GLBObject.cs.meta │ │ ├── GLTFHelpers.cs │ │ ├── GLTFHelpers.cs.meta │ │ ├── GLTFObject.cs │ │ ├── GLTFObject.cs.meta │ │ ├── GLTFParser.cs │ │ ├── GLTFParser.cs.meta │ │ ├── GLTFSerialization.asmdef │ │ ├── GLTFSerialization.asmdef.meta │ │ ├── IGLTFObject.cs │ │ ├── IGLTFObject.cs.meta │ │ ├── Legacy~ │ │ │ ├── GLTFSerialization.csproj │ │ │ └── GLTFSerialization.csproj.meta │ │ ├── Math.meta │ │ ├── Math │ │ │ ├── Color.cs │ │ │ ├── Color.cs.meta │ │ │ ├── Matrix4x4.cs │ │ │ ├── Matrix4x4.cs.meta │ │ │ ├── Quaternion.cs │ │ │ ├── Quaternion.cs.meta │ │ │ ├── Vector2.cs │ │ │ ├── Vector2.cs.meta │ │ │ ├── Vector3.cs │ │ │ ├── Vector3.cs.meta │ │ │ ├── Vector4.cs │ │ │ └── Vector4.cs.meta │ │ ├── Properties.meta │ │ ├── Properties │ │ │ ├── AssemblyInfo.cs │ │ │ └── AssemblyInfo.cs.meta │ │ ├── Schema.meta │ │ ├── Schema │ │ │ ├── Accessor.cs │ │ │ ├── Accessor.cs.meta │ │ │ ├── AccessorSparse.cs │ │ │ ├── AccessorSparse.cs.meta │ │ │ ├── AccessorSparseIndices.cs │ │ │ ├── AccessorSparseIndices.cs.meta │ │ │ ├── AccessorSparseValues.cs │ │ │ ├── AccessorSparseValues.cs.meta │ │ │ ├── AnimationChannel.cs │ │ │ ├── AnimationChannel.cs.meta │ │ │ ├── AnimationChannelTarget.cs │ │ │ ├── AnimationChannelTarget.cs.meta │ │ │ ├── AnimationPointerData.cs │ │ │ ├── AnimationPointerData.cs.meta │ │ │ ├── AnimationSampler.cs │ │ │ ├── AnimationSampler.cs.meta │ │ │ ├── Asset.cs │ │ │ ├── Asset.cs.meta │ │ │ ├── BufferView.cs │ │ │ ├── BufferView.cs.meta │ │ │ ├── CameraOrthographic.cs │ │ │ ├── CameraOrthographic.cs.meta │ │ │ ├── CameraPerspective.cs │ │ │ ├── CameraPerspective.cs.meta │ │ │ ├── GLTFAnimation.cs │ │ │ ├── GLTFAnimation.cs.meta │ │ │ ├── GLTFBuffer.cs │ │ │ ├── GLTFBuffer.cs.meta │ │ │ ├── GLTFCamera.cs │ │ │ ├── GLTFCamera.cs.meta │ │ │ ├── GLTFChildOfRootProperty.cs │ │ │ ├── GLTFChildOfRootProperty.cs.meta │ │ │ ├── GLTFExtensions.cs │ │ │ ├── GLTFExtensions.cs.meta │ │ │ ├── GLTFId.cs │ │ │ ├── GLTFId.cs.meta │ │ │ ├── GLTFImage.cs │ │ │ ├── GLTFImage.cs.meta │ │ │ ├── GLTFMaterial.cs │ │ │ ├── GLTFMaterial.cs.meta │ │ │ ├── GLTFMesh.cs │ │ │ ├── GLTFMesh.cs.meta │ │ │ ├── GLTFProperty.cs │ │ │ ├── GLTFProperty.cs.meta │ │ │ ├── GLTFRoot.cs │ │ │ ├── GLTFRoot.cs.meta │ │ │ ├── GLTFScene.cs │ │ │ ├── GLTFScene.cs.meta │ │ │ ├── GLTFTexture.cs │ │ │ ├── GLTFTexture.cs.meta │ │ │ ├── GLTF_DirectionalLight.cs │ │ │ ├── GLTF_DirectionalLight.cs.meta │ │ │ ├── GLTF_Light.cs │ │ │ ├── GLTF_Light.cs.meta │ │ │ ├── GLTF_PointLight.cs │ │ │ ├── GLTF_PointLight.cs.meta │ │ │ ├── GLTF_SpotLight.cs │ │ │ ├── GLTF_SpotLight.cs.meta │ │ │ ├── IExtension.cs │ │ │ ├── IExtension.cs.meta │ │ │ ├── MaterialCommonConstant.cs │ │ │ ├── MaterialCommonConstant.cs.meta │ │ │ ├── MaterialNormalTextureInfo.cs │ │ │ ├── MaterialNormalTextureInfo.cs.meta │ │ │ ├── MaterialOcclusionTextureInfo.cs │ │ │ ├── MaterialOcclusionTextureInfo.cs.meta │ │ │ ├── MaterialPBRMetallicRoughness.cs │ │ │ ├── MaterialPBRMetallicRoughness.cs.meta │ │ │ ├── MeshPrimitive.cs │ │ │ ├── MeshPrimitive.cs.meta │ │ │ ├── Node.cs │ │ │ ├── Node.cs.meta │ │ │ ├── Sampler.cs │ │ │ ├── Sampler.cs.meta │ │ │ ├── SchemaExtensions.cs │ │ │ ├── SchemaExtensions.cs.meta │ │ │ ├── Skin.cs │ │ │ ├── Skin.cs.meta │ │ │ ├── TextureInfo.cs │ │ │ └── TextureInfo.cs.meta │ │ ├── Utilities.meta │ │ └── Utilities │ │ │ ├── AnimationPointerPath.cs │ │ │ ├── AnimationPointerPath.cs.meta │ │ │ ├── GltfRootExtensions.cs │ │ │ ├── GltfRootExtensions.cs.meta │ │ │ ├── JsonReaderExtensions.cs │ │ │ ├── JsonReaderExtensions.cs.meta │ │ │ ├── StreamExtensions.cs │ │ │ ├── StreamExtensions.cs.meta │ │ │ ├── SubStream.cs │ │ │ └── SubStream.cs.meta │ ├── Optimization.meta │ └── Optimization │ │ ├── AssemblyInfo.cs │ │ ├── AssemblyInfo.cs.meta │ │ ├── BinaryWriterWithLessAllocations.cs │ │ ├── BinaryWriterWithLessAllocations.cs.meta │ │ ├── UnityGLTF.Helpers.asmdef │ │ └── UnityGLTF.Helpers.asmdef.meta ├── Prefabs.meta ├── Prefabs │ ├── GLTF.prefab │ └── GLTF.prefab.meta ├── Resources.meta ├── Resources │ ├── MetalGlossChannelSwap.shader │ ├── MetalGlossChannelSwap.shader.meta │ ├── MetalGlossOcclusionChannelSwap.shader │ ├── MetalGlossOcclusionChannelSwap.shader.meta │ ├── NormalChannel.shader │ ├── NormalChannel.shader.meta │ ├── README.txt │ ├── README.txt.meta │ ├── Standard (Specular setup).mat │ ├── Standard (Specular setup).mat.meta │ ├── Standard (Specular setup).shadervariants │ ├── Standard (Specular setup).shadervariants.meta │ ├── TestScenePrefab.prefab │ └── TestScenePrefab.prefab.meta ├── Scripts.meta ├── Scripts │ ├── AssemblyInfo.cs │ ├── AssemblyInfo.cs.meta │ ├── Async.meta │ ├── Async │ │ ├── AsyncCoroutineHelper.cs │ │ ├── AsyncCoroutineHelper.cs.meta │ │ ├── TaskExtensions.cs │ │ └── TaskExtensions.cs.meta │ ├── Cache.meta │ ├── Cache │ │ ├── AnimationCacheData.cs │ │ ├── AnimationCacheData.cs.meta │ │ ├── AssetCache.cs │ │ ├── AssetCache.cs.meta │ │ ├── BufferCacheData.cs │ │ ├── BufferCacheData.cs.meta │ │ ├── ExportCache.cs │ │ ├── ExportCache.cs.meta │ │ ├── MaterialCacheData.cs │ │ ├── MaterialCacheData.cs.meta │ │ ├── MeshCacheData.cs │ │ ├── MeshCacheData.cs.meta │ │ ├── RefCountedCacheData.cs │ │ ├── RefCountedCacheData.cs.meta │ │ ├── TextureCacheData.cs │ │ └── TextureCacheData.cs.meta │ ├── Exceptions.cs │ ├── Exceptions.cs.meta │ ├── Extensions.meta │ ├── Extensions │ │ ├── KHR_animation_pointer_Resolver.cs │ │ └── KHR_animation_pointer_Resolver.cs.meta │ ├── Factories.meta │ ├── Factories │ │ ├── ImporterFactory.cs │ │ └── ImporterFactory.cs.meta │ ├── GLTFComponent.cs │ ├── GLTFComponent.cs.meta │ ├── GLTFRecorderComponent.cs │ ├── GLTFRecorderComponent.cs.meta │ ├── GLTFSceneExporter.cs │ ├── GLTFSceneExporter.cs.meta │ ├── GLTFSceneImporter.cs │ ├── GLTFSceneImporter.cs.meta │ ├── GLTFSettings.cs │ ├── GLTFSettings.cs.meta │ ├── InstantiatedGLTFObject.cs │ ├── InstantiatedGLTFObject.cs.meta │ ├── JsonPointer.meta │ ├── JsonPointer │ │ ├── IJsonPointerResolver.cs │ │ └── IJsonPointerResolver.cs.meta │ ├── Loader.meta │ ├── Loader │ │ ├── FileLoader.cs │ │ ├── FileLoader.cs.meta │ │ ├── IDataLoader.cs │ │ ├── IDataLoader.cs.meta │ │ ├── IDataLoader2.cs │ │ ├── IDataLoader2.cs.meta │ │ ├── ILoader.cs │ │ ├── ILoader.cs.meta │ │ ├── LegacyLoaderWrapper.cs │ │ ├── LegacyLoaderWrapper.cs.meta │ │ ├── StorageFolderLoader.cs │ │ ├── StorageFolderLoader.cs.meta │ │ ├── UnityWebRequestLoader.cs │ │ ├── UnityWebRequestLoader.cs.meta │ │ ├── WebRequestLoader.cs │ │ └── WebRequestLoader.cs.meta │ ├── MemoryChecker.cs │ ├── MemoryChecker.cs.meta │ ├── Plugins.meta │ ├── Plugins │ │ ├── AnimationPointer.meta │ │ ├── AnimationPointer │ │ │ ├── AnimationPointerUtilities.cs │ │ │ ├── AnimationPointerUtilities.cs.meta │ │ │ ├── MaterialPropertiesRemapper.cs │ │ │ └── MaterialPropertiesRemapper.cs.meta │ │ ├── AnimationPointerExport.cs │ │ ├── AnimationPointerExport.cs.meta │ │ ├── AnimationPointerImport.cs │ │ ├── AnimationPointerImport.cs.meta │ │ ├── Core.meta │ │ ├── Core │ │ │ ├── GltfExportPlugin.cs │ │ │ ├── GltfExportPlugin.cs.meta │ │ │ ├── GltfImportPlugin.cs │ │ │ ├── GltfImportPlugin.cs.meta │ │ │ ├── GltfPlugin.cs │ │ │ ├── GltfPlugin.cs.meta │ │ │ ├── ImportContext.cs │ │ │ └── ImportContext.cs.meta │ │ ├── DracoImport.cs │ │ ├── DracoImport.cs.meta │ │ ├── Experimental.meta │ │ ├── Experimental │ │ │ ├── BakeParticleSystem.cs │ │ │ ├── BakeParticleSystem.cs.meta │ │ │ ├── CanvasExport.cs │ │ │ ├── CanvasExport.cs.meta │ │ │ ├── CanvasExportCaptureMeshHelper.cs │ │ │ ├── CanvasExportCaptureMeshHelper.cs.meta │ │ │ ├── Invisible.mat │ │ │ ├── Invisible.mat.meta │ │ │ ├── MaterialVariants.cs │ │ │ ├── MaterialVariants.cs.meta │ │ │ ├── MaterialVariantsPlugin.cs │ │ │ ├── MaterialVariantsPlugin.cs.meta │ │ │ ├── TextMeshGameObjectExport.cs │ │ │ ├── TextMeshGameObjectExport.cs.meta │ │ │ ├── UnityGLTF.Plugins.Experimental.asmdef │ │ │ └── UnityGLTF.Plugins.Experimental.asmdef.meta │ │ ├── GPUInstancingImport.cs │ │ ├── GPUInstancingImport.cs.meta │ │ ├── Ktx2Import.cs │ │ ├── Ktx2Import.cs.meta │ │ ├── LightsPunctualExport.cs │ │ ├── LightsPunctualExport.cs.meta │ │ ├── LightsPunctualImport.cs │ │ ├── LightsPunctualImport.cs.meta │ │ ├── LodsExport.cs │ │ ├── LodsExport.cs.meta │ │ ├── LodsImport.cs │ │ ├── LodsImport.cs.meta │ │ ├── MaterialExtensionsExport.cs │ │ ├── MaterialExtensionsExport.cs.meta │ │ ├── MaterialExtensionsImport.cs │ │ ├── MaterialExtensionsImport.cs.meta │ │ ├── MeshoptImport.cs │ │ ├── MeshoptImport.cs.meta │ │ ├── TextureTransformExport.cs │ │ ├── TextureTransformExport.cs.meta │ │ ├── TextureTransformImport.cs │ │ ├── TextureTransformImport.cs.meta │ │ ├── UnlitMaterialsExport.cs │ │ ├── UnlitMaterialsExport.cs.meta │ │ ├── UnlitMaterialsImport.cs │ │ ├── UnlitMaterialsImport.cs.meta │ │ ├── VisibilityExport.cs │ │ ├── VisibilityExport.cs.meta │ │ ├── VisibilityImport.cs │ │ └── VisibilityImport.cs.meta │ ├── RenderPipelines.meta │ ├── RenderPipelines │ │ ├── RoughRefraction.cs │ │ ├── RoughRefraction.cs.meta │ │ ├── RoughRefractionFeature.cs │ │ ├── RoughRefractionFeature.cs.meta │ │ ├── UnityGltf.RenderPipelines.asmdef │ │ └── UnityGltf.RenderPipelines.asmdef.meta │ ├── SceneExporter.meta │ ├── SceneExporter │ │ ├── ExporterAccessors.cs │ │ ├── ExporterAccessors.cs.meta │ │ ├── ExporterAnimation.cs │ │ ├── ExporterAnimation.cs.meta │ │ ├── ExporterAnimationHumanoid.cs │ │ ├── ExporterAnimationHumanoid.cs.meta │ │ ├── ExporterAnimationPointer.cs │ │ ├── ExporterAnimationPointer.cs.meta │ │ ├── ExporterCameras.cs │ │ ├── ExporterCameras.cs.meta │ │ ├── ExporterLights.cs │ │ ├── ExporterLights.cs.meta │ │ ├── ExporterMaterials.cs │ │ ├── ExporterMaterials.cs.meta │ │ ├── ExporterMeshes.cs │ │ ├── ExporterMeshes.cs.meta │ │ ├── ExporterSkinning.cs │ │ ├── ExporterSkinning.cs.meta │ │ ├── ExporterTextures.cs │ │ └── ExporterTextures.cs.meta │ ├── SceneImporter.meta │ ├── SceneImporter │ │ ├── BlendShapeFrameWeightSetting.cs │ │ ├── BlendShapeFrameWeightSetting.cs.meta │ │ ├── GLTFImporterNormals.cs │ │ ├── GLTFImporterNormals.cs.meta │ │ ├── ImporterAnimation.cs │ │ ├── ImporterAnimation.cs.meta │ │ ├── ImporterCameras.cs │ │ ├── ImporterCameras.cs.meta │ │ ├── ImporterLODs.cs │ │ ├── ImporterLODs.cs.meta │ │ ├── ImporterLights.cs │ │ ├── ImporterLights.cs.meta │ │ ├── ImporterMaterials.cs │ │ ├── ImporterMaterials.cs.meta │ │ ├── ImporterMeshes.cs │ │ ├── ImporterMeshes.cs.meta │ │ ├── ImporterSkinning.cs │ │ ├── ImporterSkinning.cs.meta │ │ ├── ImporterTextures.cs │ │ ├── ImporterTextures.cs.meta │ │ ├── MaterialLibrary.cs │ │ ├── MaterialLibrary.cs.meta │ │ ├── NormalMapEncodingConverter.cs │ │ ├── NormalMapEncodingConverter.cs.meta │ │ ├── UnityMeshData.cs │ │ └── UnityMeshData.cs.meta │ ├── Timeline.meta │ ├── Timeline │ │ ├── GLTFRecorder.cs │ │ ├── GLTFRecorder.cs.meta │ │ ├── GLTFRecorderBehaviour.cs │ │ ├── GLTFRecorderBehaviour.cs.meta │ │ ├── GLTFRecorderClip.cs │ │ ├── GLTFRecorderClip.cs.meta │ │ ├── GLTFRecorderHelper.cs │ │ ├── GLTFRecorderHelper.cs.meta │ │ ├── GLTFRecorderTrack.cs │ │ └── GLTFRecorderTrack.cs.meta │ ├── URIHelper.cs │ ├── URIHelper.cs.meta │ ├── UniformMaps.meta │ └── UniformMaps │ │ ├── BaseGraphMap.cs │ │ ├── BaseGraphMap.cs.meta │ │ ├── MetalRough2StandardMap.cs │ │ ├── MetalRough2StandardMap.cs.meta │ │ ├── MetalRoughMap.cs │ │ ├── MetalRoughMap.cs.meta │ │ ├── PBRGraphMap.cs │ │ ├── PBRGraphMap.cs.meta │ │ ├── SpecGloss2StandardMap.cs │ │ ├── SpecGloss2StandardMap.cs.meta │ │ ├── SpecGlossMap.cs │ │ ├── SpecGlossMap.cs.meta │ │ ├── StandardMap.cs │ │ ├── StandardMap.cs.meta │ │ ├── UniformMap.cs │ │ ├── UniformMap.cs.meta │ │ ├── UnlitGraphMap.cs │ │ ├── UnlitGraphMap.cs.meta │ │ ├── UnlitMap.cs │ │ └── UnlitMap.cs.meta ├── Shaders.meta ├── Shaders │ ├── PbrMetallicRoughness.shader │ ├── PbrMetallicRoughness.shader.meta │ ├── PbrSpecularGlossiness.shader │ ├── PbrSpecularGlossiness.shader.meta │ ├── ShaderGraph.meta │ ├── ShaderGraph │ │ ├── 2020-Legacy.meta │ │ ├── 2020-Legacy │ │ │ ├── PBRGraph-Double.override-graph │ │ │ ├── PBRGraph-Double.override-graph.meta │ │ │ ├── PBRGraph-Transparent-Double.override-graph │ │ │ ├── PBRGraph-Transparent-Double.override-graph.meta │ │ │ ├── PBRGraph-Transparent.override-graph │ │ │ ├── PBRGraph-Transparent.override-graph.meta │ │ │ ├── UnlitGraph-Double.override-graph │ │ │ ├── UnlitGraph-Double.override-graph.meta │ │ │ ├── UnlitGraph-Transparent-Double.override-graph │ │ │ ├── UnlitGraph-Transparent-Double.override-graph.meta │ │ │ ├── UnlitGraph-Transparent.override-graph │ │ │ └── UnlitGraph-Transparent.override-graph.meta │ │ ├── CustomSampleNormalMap.shadersubgraph │ │ ├── CustomSampleNormalMap.shadersubgraph.meta │ │ ├── IORTransmission.shadersubgraph │ │ ├── IORTransmission.shadersubgraph.meta │ │ ├── MaterialXColor.shadersubgraph │ │ ├── MaterialXColor.shadersubgraph.meta │ │ ├── MaterialXFloat.shadersubgraph │ │ ├── MaterialXFloat.shadersubgraph.meta │ │ ├── PBRGraph.shadergraph │ │ ├── PBRGraph.shadergraph.meta │ │ ├── PBRHelpers.cginc │ │ ├── PBRHelpers.cginc.meta │ │ ├── Sheen.shadersubgraph │ │ ├── Sheen.shadersubgraph.meta │ │ ├── TextureTransform.shadersubgraph │ │ ├── TextureTransform.shadersubgraph.meta │ │ ├── UnlitGraph.shadergraph │ │ └── UnlitGraph.shadergraph.meta │ ├── UnityStandardInput.cginc │ ├── UnityStandardInput.cginc.meta │ ├── UnityStandardShadow.cginc │ ├── UnityStandardShadow.cginc.meta │ ├── Unlit.shader │ ├── Unlit.shader.meta │ ├── VariantCollections.meta │ ├── VariantCollections │ │ ├── UnityGLTFShaderVariantCollection-BiRP.asset │ │ ├── UnityGLTFShaderVariantCollection-BiRP.asset.meta │ │ ├── UnityGLTFShaderVariantCollection.asset │ │ └── UnityGLTFShaderVariantCollection.asset.meta │ ├── VertexColor.cginc │ └── VertexColor.cginc.meta ├── UnityGLTFScripts.asmdef └── UnityGLTFScripts.asmdef.meta ├── Samples~ ├── KHR_audio.meta └── KHR_audio │ ├── AudioSourceScriptableObject.cs │ ├── AudioSourceScriptableObject.cs.meta │ ├── KHRAudioPlugin.cs │ ├── KHRAudioPlugin.cs.meta │ ├── KHRAudioSchemas.cs │ ├── KHRAudioSchemas.cs.meta │ ├── KHRGlobalAudioEmitterBehaviour.cs │ ├── KHRGlobalAudioEmitterBehaviour.cs.meta │ ├── KHRPositionalAudioEmitterBehaviour.cs │ ├── KHRPositionalAudioEmitterBehaviour.cs.meta │ ├── UnityGLTF.Plugins.KHR_audio.asmdef │ └── UnityGLTF.Plugins.KHR_audio.asmdef.meta ├── Tests.meta ├── Tests ├── Assets.meta ├── Assets │ ├── Animation.meta │ └── Animation │ │ ├── AnimationA.anim │ │ ├── AnimationA.anim.meta │ │ ├── AnimationB.anim │ │ ├── AnimationB.anim.meta │ │ ├── AnimatorController.controller │ │ ├── AnimatorController.controller.meta │ │ ├── SimpleAnimation.glb │ │ └── SimpleAnimation.glb.meta ├── Editor.meta ├── Editor │ ├── AssetImportTests.cs │ ├── AssetImportTests.cs.meta │ ├── UnityGLTFTests.Editor.asmdef │ └── UnityGLTFTests.Editor.asmdef.meta ├── Runtime.meta └── Runtime │ ├── GLTFRootTests.cs │ ├── GLTFRootTests.cs.meta │ ├── UnityGLTFTests.asmdef │ ├── UnityGLTFTests.asmdef.meta │ └── legacy~ │ ├── GLTFAssetGeneratorTests.cs │ ├── GLTFAssetGeneratorTests.cs.meta │ ├── GLTFBenchmark.cs │ ├── GLTFBenchmark.cs.meta │ ├── GLTFExporterIntegrationTest.cs │ ├── GLTFExporterIntegrationTest.cs.meta │ ├── GLTFTestComponent.cs │ ├── GLTFTestComponent.cs.meta │ ├── GLTFTestComponent.prefab │ ├── GLTFTestComponent.prefab.meta │ ├── Manifest.cs │ ├── Manifest.cs.meta │ ├── SceneSettingsLoader.cs │ └── SceneSettingsLoader.cs.meta ├── package.json └── package.json.meta /.gitattributes: -------------------------------------------------------------------------------- 1 | # Set the default behavior, in case people don't have core.autocrlf set. 2 | * text=auto -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- 1 | Tests/** 2 | Tests.meta -------------------------------------------------------------------------------- /CHANGELOG.md.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2ac567cb9b76e6a4490f2f54aa52c067 3 | TextScriptImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- 1 | A reminder that this issue tracker is managed by the Khronos Group. Interactions here should follow the Khronos Code of Conduct (https://www.khronos.org/developers/code-of-conduct), which prohibits aggressive or derogatory language. Please keep the discussion friendly and civil. 2 | -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d53944c3a6a2746769e6c260bd3cbe76 3 | TextScriptImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Editor.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f5f45ddfa210e204f88be87c65820b64 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Editor/Scripts.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3d3936188a676ff4a9194add4e985b7c 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Editor/Scripts/GLTFComponentInspector.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 843e1771f80e49643aed2baa52c2394d 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Editor/Scripts/GLTFExportMenu.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fd3d2ca14e7c1084888c77f15c69ae56 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Editor/Scripts/GLTFImporter.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 804e1ce4c496647cfa3f1a1134187c71 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Editor/Scripts/GLTFImporterInspector.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 20d4d64afd8e74d39a8d8fad13d909fc 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Editor/Scripts/GLTFSettingsInspector.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 122ad858b5c954f558f2c9ae993d5dbd 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Editor/Scripts/Internal.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 043bcd2f8cd689d4298a4ff9f11d1056 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Editor/Scripts/Internal/AsyncHelpers.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 978a3250c76650a428914d9da042b50c 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Editor/Scripts/Internal/AvatarUtils.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 15daddec8a84e584db94b127e7bd05b7 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Editor/Scripts/Internal/DefaultImportSettings.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3e88d614baf1b41b8a6cbb3fab6b4af3 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Editor/Scripts/Internal/DefaultImportSettings/DefaultTexture.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prefrontalcortex/UnityGLTF/f958bf71824fb36c5b55bf0b52310bc7392e156e/Editor/Scripts/Internal/DefaultImportSettings/DefaultTexture.png -------------------------------------------------------------------------------- /Editor/Scripts/Internal/GLTFMaterialHelper.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ad1a4409c80a9004781468cca77d6224 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Editor/Scripts/Internal/HumanoidSetup.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 977986ddaa6e7594c81ccb48155a39a1 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Editor/Scripts/Internal/TextureImporterHelper.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Reflection; 3 | using UnityEditor; 4 | using UnityEditor.Build; 5 | using UnityEngine; 6 | 7 | namespace UnityGLTF 8 | { 9 | public class TextureImporterHelper 10 | { 11 | private const string DefaultTextureAssetGuid = "7b7ff3cec11c24c599d6f12443877d5e"; 12 | 13 | public static TextureImporterFormat GetAutomaticFormat(Texture2D texture, BuildTarget buildTarget) 14 | { 15 | var defaultTextureImporter = AssetImporter.GetAtPath(AssetDatabase.GUIDToAssetPath(DefaultTextureAssetGuid)) as TextureImporter; 16 | 17 | TextureImporterSettings importerSettings = new TextureImporterSettings(); 18 | 19 | importerSettings.aniso = 5; 20 | importerSettings.wrapMode = texture.wrapMode; 21 | importerSettings.filterMode = texture.filterMode; 22 | importerSettings.mipmapEnabled = texture.mipmapCount > 1; 23 | importerSettings.alphaSource = TextureImporterAlphaSource.FromInput; 24 | 25 | var hasAlpha = TextureUtil.HasAlphaTextureFormat(texture.format); 26 | var isHDR = TextureUtil.IsHDRFormat(texture.format); 27 | 28 | return TextureImporter.DefaultFormatFromTextureParameters(importerSettings, defaultTextureImporter.GetDefaultPlatformTextureSettings(), hasAlpha, isHDR, buildTarget); 29 | } 30 | } 31 | } -------------------------------------------------------------------------------- /Editor/Scripts/Internal/TextureImporterHelper.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6301556340654c09aa8e389bfc561e81 3 | timeCreated: 1694362715 -------------------------------------------------------------------------------- /Editor/Scripts/Internal/UnityGLTF.Internal.asmref: -------------------------------------------------------------------------------- 1 | { 2 | "reference": "GUID:343deaaf83e0cee4ca978e7df0b80d21" 3 | } -------------------------------------------------------------------------------- /Editor/Scripts/Internal/UnityGLTF.Internal.asmref.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9c9262dcd4069cd4aafbfe7eabf0bf41 3 | AssemblyDefinitionReferenceImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Editor/Scripts/Internal/UnityGLTFTabbedEditor.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 198f536c3cf84dfe9d5617d32d40d7b0 3 | timeCreated: 1678788492 -------------------------------------------------------------------------------- /Editor/Scripts/Internal/UnityGltfShaderUpgradeMeta.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace UnityGLTF 4 | { 5 | public interface IUnityGltfShaderUpgradeMeta 6 | { 7 | Shader SourceShader { get; } 8 | bool IsUnlit { get; } 9 | bool IsTransparent { get; } 10 | bool IsDoublesided { get; } 11 | } 12 | 13 | public class UnityGltfShaderUpgradeMeta : ScriptableObject 14 | { 15 | public Shader sourceShader; 16 | public bool isTransparent = false; 17 | public bool isDoublesided = false; 18 | 19 | internal string GenerateNameString() 20 | { 21 | var isUnlit = sourceShader && sourceShader.name.Contains("Unlit"); 22 | return (isTransparent ? "_tr" : "") + (isDoublesided ? "_ds" : "") + (isUnlit ? "_unlit" : ""); 23 | } 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /Editor/Scripts/Internal/UnityGltfShaderUpgradeMeta.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 26fa35d7d798408bb796a50daa5a8a6f 3 | timeCreated: 1677690411 -------------------------------------------------------------------------------- /Editor/Scripts/KtxImporterHelper.cs: -------------------------------------------------------------------------------- 1 | using UnityEditor; 2 | 3 | namespace UnityGLTF 4 | { 5 | #if HAVE_KTX 6 | internal static class KtxImporterHelper 7 | { 8 | public static bool IsKtxOrBasis(AssetImporter importer) 9 | { 10 | return importer && importer.GetType().FullName == "KtxUnity.KtxImporter" || importer.GetType().FullName == "KtxUnity.BasisImporter"; 11 | } 12 | 13 | public static bool TryGetLinear(AssetImporter importer, out bool linear) 14 | { 15 | linear = false; 16 | if (!IsKtxOrBasis(importer)) 17 | return false; 18 | 19 | var importerType = importer.GetType(); 20 | var linearField = importerType.GetField("linear"); 21 | if (linearField == null) 22 | return false; 23 | 24 | linear = (bool)linearField.GetValue(importer); 25 | return true; 26 | } 27 | 28 | public static void SetLinear(AssetImporter importer, bool linear) 29 | { 30 | if (!IsKtxOrBasis(importer)) 31 | return; 32 | 33 | var linearProperty = importer.GetType().GetField("linear"); 34 | if (linearProperty == null) 35 | return; 36 | linearProperty.SetValue(importer, linear); 37 | 38 | EditorUtility.SetDirty(importer); 39 | } 40 | } 41 | #endif 42 | } -------------------------------------------------------------------------------- /Editor/Scripts/KtxImporterHelper.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 79f9fadb55b5461a8cb92abff8316e43 3 | timeCreated: 1709109536 -------------------------------------------------------------------------------- /Editor/Scripts/PackageVersionPreprocessBuild.cs: -------------------------------------------------------------------------------- 1 | using UnityEditor; 2 | using UnityEditor.Build; 3 | using UnityEditor.Build.Reporting; 4 | using UnityEditor.Callbacks; 5 | using UnityEngine; 6 | 7 | namespace UnityGLTF 8 | { 9 | public class PackageVersionPreprocessBuild : IPreprocessBuildWithReport 10 | { 11 | public int callbackOrder 12 | { 13 | get => 0; 14 | } 15 | 16 | private static void SetPackageVersion(bool resetValue = false) 17 | { 18 | var defaultSettings = GLTFSettings.GetOrCreateSettings(); 19 | if (!defaultSettings) 20 | return; 21 | 22 | defaultSettings.packageVersion = resetValue ? null : defaultSettings.GetUnityGltfVersion(); 23 | EditorUtility.SetDirty(defaultSettings); 24 | AssetDatabase.SaveAssets(); 25 | AssetDatabase.Refresh(); 26 | } 27 | 28 | public void OnPreprocessBuild(BuildReport report) 29 | { 30 | SetPackageVersion(); 31 | } 32 | 33 | [PostProcessBuild(1)] 34 | public static void OnPostprocessBuild(BuildTarget target, string pathToBuiltProject) 35 | { 36 | SetPackageVersion(true); 37 | } 38 | } 39 | } -------------------------------------------------------------------------------- /Editor/Scripts/PackageVersionPreprocessBuild.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 44af7bd45fd643e6abb82d8a482e9daa 3 | timeCreated: 1739877372 -------------------------------------------------------------------------------- /Editor/Scripts/PbrShaderGUI.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: bc50aae8534b8c442a9e309b546db682 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Editor/Scripts/Plugins.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 19691dff57934cda97994d1368964715 3 | timeCreated: 1680101655 -------------------------------------------------------------------------------- /Editor/Scripts/Plugins/GLTFPluginEditor.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5df1106545064293aebd7efc2fc87905 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Editor/Scripts/Plugins/RegisteredImportPlugins.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using UnityEditor; 4 | using UnityEngine; 5 | using UnityGLTF.Plugins; 6 | 7 | namespace UnityGLTF 8 | { 9 | internal static class RegisteredImportPlugins 10 | { 11 | internal static readonly List Plugins = new List(); 12 | 13 | [InitializeOnLoadMethod] 14 | public static void Init() 15 | { 16 | } 17 | 18 | private static void OnAfterGUI(GltfSettingsProvider obj) 19 | { 20 | } 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /Editor/Scripts/Plugins/RegisteredImportPlugins.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c336fc934d29489b99919ae62cb2a2c8 3 | timeCreated: 1680101663 -------------------------------------------------------------------------------- /Editor/Scripts/ShaderGraph.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4f9d8791ed9e9674d871b47bf1c186ea 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Editor/Scripts/ShaderGraph/InternalShaderGraph.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8f708e30d7503fc42998ad4dc358d3d5 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Editor/Scripts/ShaderGraph/InternalShaderGraph/PBRGraphGUI.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7fd38ac84daf5a14180dde4bc5949e25 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Editor/Scripts/ShaderGraph/InternalShaderGraph/ShaderGraphHelpers.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0a60cd145bbb31542ab7932da93de3f3 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Editor/Scripts/ShaderGraph/InternalShaderGraph/ShaderGraphOverrideImporter.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fe431e399c52971408121c6c40cde979 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Editor/Scripts/ShaderGraph/InternalShaderGraph/ShaderGraphOverrideImporterEditor.cs: -------------------------------------------------------------------------------- 1 | #if !NO_INTERNALS_ACCESS && UNITY_2020_1_OR_NEWER 2 | 3 | using UnityEditor; 4 | #if UNITY_2020_2_OR_NEWER 5 | using UnityEditor.AssetImporters; 6 | #else 7 | using UnityEditor.Experimental.AssetImporters; 8 | #endif 9 | 10 | namespace UnityGLTF 11 | { 12 | [CustomEditor(typeof(ShaderGraphOverrideImporter))] 13 | class ShaderGraphOverrideImporterEditor : ScriptedImporterEditor 14 | { 15 | public override void OnInspectorGUI() 16 | { 17 | #if UNITY_2021_1_OR_NEWER 18 | EditorGUILayout.HelpBox("Deprecated. Use material overrides on UnityGLTF/PBRGraph and UnityGLTF/UnlitGraph instead of separate shaders.", MessageType.Warning); 19 | #endif 20 | DrawDefaultInspector(); 21 | ApplyRevertGUI(); 22 | } 23 | } 24 | } 25 | 26 | #endif 27 | -------------------------------------------------------------------------------- /Editor/Scripts/ShaderGraph/InternalShaderGraph/ShaderGraphOverrideImporterEditor.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 511b21f4c3344c54689aed102b11724a 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Editor/Scripts/ShaderGraph/InternalShaderGraph/UnityGLTF.ShaderGraph.Internal.asmref: -------------------------------------------------------------------------------- 1 | { 2 | "reference": "GUID:be0903cd8e1546f498710afdc59db5eb" 3 | } -------------------------------------------------------------------------------- /Editor/Scripts/ShaderGraph/InternalShaderGraph/UnityGLTF.ShaderGraph.Internal.asmref.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d60ff41bbebf9024dac1e4f0dc004a57 3 | AssemblyDefinitionReferenceImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Editor/Scripts/ShaderGraph/InternalURP.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9f369a0c649cfa54799cb62645da047f 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Editor/Scripts/ShaderGraph/InternalURP/PBRGraphUniversalGUI.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 86a2b51891c425a468a0a4d61f8b2a6a 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Editor/Scripts/ShaderGraph/InternalURP/UnityGLTF.URP.Internal.asmref: -------------------------------------------------------------------------------- 1 | { 2 | "reference": "GUID:c579267770062bf448e75eb160330b7f" 3 | } -------------------------------------------------------------------------------- /Editor/Scripts/ShaderGraph/InternalURP/UnityGLTF.URP.Internal.asmref.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: cd3b604407efbd641a4d40520de58a76 3 | AssemblyDefinitionReferenceImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Editor/Scripts/ShaderGraph/MaterialEditorBridge.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 43a458fb10960e7448fe44d2c3f4e4d2 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Editor/Scripts/ShaderGraph/MaterialLibraryEditor.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 39fe50f46da644868c83c8d18e1df7cb 3 | timeCreated: 1727343866 -------------------------------------------------------------------------------- /Editor/Scripts/ShaderGraph/NoCompilationWarning.cs: -------------------------------------------------------------------------------- 1 | internal class NoCompilationWarning { } 2 | -------------------------------------------------------------------------------- /Editor/Scripts/ShaderGraph/NoCompilationWarning.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4ea8663e2a74bdc4cb6f6d53769532df 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Editor/Scripts/ShaderGraph/ShaderConverters.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 77ad4bb761964b0da3ccf68f6b649aab 3 | timeCreated: 1677764644 -------------------------------------------------------------------------------- /Editor/Scripts/ShaderGraph/ShaderPassStripping.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7d3ea702ff5a4e9d8f7dea1a97d69ee1 3 | timeCreated: 1726734748 -------------------------------------------------------------------------------- /Editor/Scripts/ShaderGraph/UnityGLTF.ShaderGraph.asmdef: -------------------------------------------------------------------------------- 1 | { 2 | "name": "UnityGLTF.ShaderGraph", 3 | "rootNamespace": "", 4 | "references": [ 5 | "GUID:be0903cd8e1546f498710afdc59db5eb", 6 | "GUID:18d18f811ba286c49814567a3cfba688", 7 | "GUID:40f39bff7bc9be34182ebe488fcf8228", 8 | "GUID:1a0324566af4ed544918d6837a1f4e11" 9 | ], 10 | "includePlatforms": [ 11 | "Editor" 12 | ], 13 | "excludePlatforms": [], 14 | "allowUnsafeCode": false, 15 | "overrideReferences": true, 16 | "precompiledReferences": [], 17 | "autoReferenced": false, 18 | "defineConstraints": [ 19 | "UNITY_2019_4_OR_NEWER" 20 | ], 21 | "versionDefines": [ 22 | { 23 | "name": "com.unity.modules.imageconversion", 24 | "expression": "0.0.0", 25 | "define": "NO_INTERNALS_ACCESS" 26 | } 27 | ], 28 | "noEngineReferences": false 29 | } 30 | -------------------------------------------------------------------------------- /Editor/Scripts/ShaderGraph/UnityGLTF.ShaderGraph.asmdef.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 17181a83a8717a34d8ce050af64edd83 3 | AssemblyDefinitionImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Editor/UnityGLTFEditor.asmdef.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1a0324566af4ed544918d6837a1f4e11 3 | AssemblyDefinitionImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2017 AltspaceVR 4 | Copyright (c) 2020-2023 prefrontal cortex 5 | Copyright (c) 2022-2023 Needle 6 | 7 | Permission is hereby granted, free of charge, to any person obtaining a copy 8 | of this software and associated documentation files (the "Software"), to deal 9 | in the Software without restriction, including without limitation the rights 10 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 11 | copies of the Software, and to permit persons to whom the Software is 12 | furnished to do so, subject to the following conditions: 13 | 14 | The above copyright notice and this permission notice shall be included in 15 | all copies or substantial portions of the Software. 16 | 17 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 20 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 23 | THE SOFTWARE. -------------------------------------------------------------------------------- /LICENSE.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: bd8f03e5a28549848a4a3de0c199b9ba 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /README.md.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f694a5d7eca544dc1ab09078571fd535 3 | TextScriptImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Runtime.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d28d76b6765ee2849a9c1dcf3811d183 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Runtime/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prefrontalcortex/UnityGLTF/f958bf71824fb36c5b55bf0b52310bc7392e156e/Runtime/.gitignore -------------------------------------------------------------------------------- /Runtime/Plugins.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 107a7c058d7ad7c43b3656c44c5364b8 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Runtime/Plugins/GLTFSerialization.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6cf51abc0e087ca4d8fc223141dd9c09 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Runtime/Plugins/GLTFSerialization/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Runtime.CompilerServices; 2 | 3 | [assembly: InternalsVisibleTo("UnityGLTFScripts")] 4 | -------------------------------------------------------------------------------- /Runtime/Plugins/GLTFSerialization/AssemblyInfo.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 42d7be7539b58434e88dbb233beed600 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Plugins/GLTFSerialization/AttributeAccessor.cs: -------------------------------------------------------------------------------- 1 | using GLTF.Schema; 2 | using Unity.Collections; 3 | 4 | namespace GLTF 5 | { 6 | public class AttributeAccessor 7 | { 8 | public AccessorId AccessorId { get; set; } 9 | public NumericArray AccessorContent { get; set; } 10 | 11 | public NativeArray bufferData { get; set; } 12 | public uint Offset { get; set; } 13 | 14 | public AttributeAccessor() 15 | { 16 | AccessorContent = new NumericArray(); 17 | } 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /Runtime/Plugins/GLTFSerialization/AttributeAccessor.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 05765344adf6fd949b45bc1e4699305a 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Plugins/GLTFSerialization/Exceptions.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace GLTF 4 | { 5 | public class GLTFHeaderInvalidException : Exception 6 | { 7 | public GLTFHeaderInvalidException() : base() { } 8 | public GLTFHeaderInvalidException(string message) : base(message) { } 9 | public GLTFHeaderInvalidException(string message, Exception inner) : base(message, inner) { } 10 | #if !WINDOWS_UWP 11 | protected GLTFHeaderInvalidException(System.Runtime.Serialization.SerializationInfo info, 12 | System.Runtime.Serialization.StreamingContext context) 13 | { } 14 | #endif 15 | } 16 | 17 | public class GLTFParseException : Exception 18 | { 19 | public GLTFParseException() : base() { } 20 | public GLTFParseException(string message) : base(message) { } 21 | public GLTFParseException(string message, Exception inner) : base(message, inner) { } 22 | #if !WINDOWS_UWP 23 | protected GLTFParseException(System.Runtime.Serialization.SerializationInfo info, 24 | System.Runtime.Serialization.StreamingContext context) 25 | { } 26 | #endif 27 | } 28 | 29 | public class GLTFLoadException : Exception 30 | { 31 | public GLTFLoadException() : base() { } 32 | public GLTFLoadException(string message) : base(message) { } 33 | public GLTFLoadException(string message, Exception inner) : base(message, inner) { } 34 | #if !WINDOWS_UWP 35 | protected GLTFLoadException(System.Runtime.Serialization.SerializationInfo info, 36 | System.Runtime.Serialization.StreamingContext context) 37 | { } 38 | #endif 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /Runtime/Plugins/GLTFSerialization/Exceptions.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3f014046747656547b05fa3774ecf051 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Plugins/GLTFSerialization/Extensions.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a4214d32c6f922940ba2e0df9e1ff758 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Runtime/Plugins/GLTFSerialization/Extensions/EXT_mesh_gpu_instancing.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9a27293073804d89a76a0d48026d3095 3 | timeCreated: 1708526439 -------------------------------------------------------------------------------- /Runtime/Plugins/GLTFSerialization/Extensions/EXT_meshopt_compression.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 32db4466775a4403a11b3d068df87492 3 | timeCreated: 1687762363 -------------------------------------------------------------------------------- /Runtime/Plugins/GLTFSerialization/Extensions/EXT_texture_exr.cs: -------------------------------------------------------------------------------- 1 | using Newtonsoft.Json.Linq; 2 | 3 | namespace GLTF.Schema 4 | { 5 | public class EXT_texture_exr : IExtension 6 | { 7 | public const string EXTENSION_NAME = "EXT_texture_exr"; 8 | public ImageId source; 9 | 10 | public EXT_texture_exr(ImageId source) 11 | { 12 | this.source = source; 13 | } 14 | 15 | public IExtension Clone(GLTFRoot root) 16 | { 17 | return new EXT_texture_exr(source); 18 | } 19 | 20 | public JProperty Serialize() 21 | { 22 | JObject ext = new JObject(); 23 | 24 | ext.Add("source", source.Id); 25 | 26 | return new JProperty(EXTENSION_NAME, ext); 27 | } 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /Runtime/Plugins/GLTFSerialization/Extensions/EXT_texture_exr.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9348b48c4902434e81000a832ca2ef33 3 | timeCreated: 1662326250 -------------------------------------------------------------------------------- /Runtime/Plugins/GLTFSerialization/Extensions/ExtTextureTransformExtension.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8f80e6282349fec4b81cd78cd8a9aa00 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Plugins/GLTFSerialization/Extensions/ExtTextureTransformExtensionFactory.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: bb5582955db3cc947a57a02c5bfe15aa 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Plugins/GLTFSerialization/Extensions/GLTFJsonExtensions.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1b39ce55534dbbf4ab3dceec1cec6317 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Plugins/GLTFSerialization/Extensions/KHR_LightsPunctualExtension.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8451131b54699e840ba8425046aec379 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Plugins/GLTFSerialization/Extensions/KHR_LightsPunctualExtensionFactory.cs: -------------------------------------------------------------------------------- 1 |  2 | 3 | using Newtonsoft.Json.Linq; 4 | 5 | namespace GLTF.Schema.KHR_lights_punctual 6 | { 7 | public class KHR_lights_punctualExtensionFactory : ExtensionFactory 8 | { 9 | public const string EXTENSION_NAME = "KHR_lights_punctual"; 10 | 11 | 12 | public const string PNAME_LIGHTS = "lights"; 13 | public const string PNAME_LIGHT = "light"; 14 | 15 | public KHR_lights_punctualExtensionFactory() 16 | { 17 | ExtensionName = EXTENSION_NAME; 18 | } 19 | 20 | public override IExtension Deserialize(GLTFRoot root, JProperty extensionToken) 21 | { 22 | if (extensionToken != null) 23 | { 24 | JToken lightsToken = extensionToken.Value[PNAME_LIGHTS]; 25 | 26 | if (lightsToken != null) 27 | { 28 | var extension = new KHR_LightsPunctualExtension(); 29 | JArray lightsArray = lightsToken as JArray; 30 | foreach( var lightToken in lightsArray.Children()) 31 | { 32 | extension.Lights.Add(PunctualLight.Deserialize(root, lightToken)); 33 | } 34 | return extension; 35 | } 36 | 37 | JToken nodelightToken = extensionToken.Value[PNAME_LIGHT]; 38 | 39 | if (nodelightToken != null) 40 | { 41 | PunctualLightId lightId = PunctualLightId.Deserialize(root, nodelightToken.CreateReader() ); 42 | return new KHR_LightsPunctualNodeExtension( lightId, root ); 43 | } 44 | } 45 | 46 | return null; 47 | } 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /Runtime/Plugins/GLTFSerialization/Extensions/KHR_LightsPunctualExtensionFactory.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f6f51e6a8e36a7641bde14286a98f0d5 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Plugins/GLTFSerialization/Extensions/KHR_animation_pointer.cs: -------------------------------------------------------------------------------- 1 | using GLTF.Schema; 2 | using Newtonsoft.Json.Linq; 3 | 4 | namespace UnityGLTF.Extensions 5 | { 6 | 7 | // see https://github.com/KhronosGroup/glTF/pull/2147 8 | public class KHR_animation_pointer : IExtension 9 | { 10 | public const string EXTENSION_NAME = "KHR_animation_pointer"; 11 | 12 | public object animatedObject; 13 | public string propertyBinding; 14 | public string path; 15 | public AnimationChannelTarget channel; 16 | 17 | // when cloned, the path is late resolved in gltf exporter so the clone path will not be resolved because it wont be registered to the exporter's resolver 18 | private KHR_animation_pointer clonedFrom; 19 | 20 | public JProperty Serialize() 21 | { 22 | if (path == null && clonedFrom != null) path = clonedFrom.path; 23 | return new JProperty(EXTENSION_NAME, new JObject(new JProperty("pointer", path))); 24 | } 25 | 26 | public void Deserialize(GLTFRoot root, JProperty extensionToken) 27 | { 28 | var extensionObject = (JObject) extensionToken.Value; 29 | path = (string) extensionObject["pointer"]; 30 | } 31 | 32 | public IExtension Clone(GLTFRoot root) 33 | { 34 | return new KHR_animation_pointer 35 | { 36 | animatedObject = animatedObject, 37 | propertyBinding = propertyBinding, 38 | path = path, 39 | channel = channel, 40 | clonedFrom = this 41 | }; 42 | } 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /Runtime/Plugins/GLTFSerialization/Extensions/KHR_animation_pointer.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 674db370468f4e2491e20dbadfa2a640 3 | timeCreated: 1648456390 -------------------------------------------------------------------------------- /Runtime/Plugins/GLTFSerialization/Extensions/KHR_animation_pointerExtensionFactory.cs: -------------------------------------------------------------------------------- 1 | using Newtonsoft.Json.Linq; 2 | using UnityGLTF.Extensions; 3 | 4 | namespace GLTF.Schema 5 | { 6 | public class KHR_animation_pointerExtensionFactory : ExtensionFactory 7 | { 8 | public const string EXTENSION_NAME = "KHR_animation_pointer"; 9 | 10 | 11 | public KHR_animation_pointerExtensionFactory() 12 | { 13 | ExtensionName = EXTENSION_NAME; 14 | } 15 | 16 | public override IExtension Deserialize(GLTFRoot root, JProperty extensionToken) 17 | { 18 | if (extensionToken != null) 19 | { 20 | var extensionObject = (JObject) extensionToken.Value; 21 | string path = (string) extensionObject["pointer"]; 22 | return new KHR_animation_pointer 23 | { 24 | path = path 25 | }; 26 | } 27 | 28 | return null; 29 | } 30 | } 31 | } -------------------------------------------------------------------------------- /Runtime/Plugins/GLTFSerialization/Extensions/KHR_animation_pointerExtensionFactory.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7f3f2eb61a4b4dd088e62138724bac85 3 | timeCreated: 1707827260 -------------------------------------------------------------------------------- /Runtime/Plugins/GLTFSerialization/Extensions/KHR_draco_mesh_compression.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 87daa883205648a3acfc416aefe9cccd 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Plugins/GLTFSerialization/Extensions/KHR_materials_clearcoat.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8427a62b522f4f2d84dda8d98fa76701 3 | timeCreated: 1673353427 -------------------------------------------------------------------------------- /Runtime/Plugins/GLTFSerialization/Extensions/KHR_materials_dispersion.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using GLTF.Extensions; 3 | using Newtonsoft.Json.Linq; 4 | 5 | namespace GLTF.Schema 6 | { 7 | // https://github.com/KhronosGroup/glTF/tree/main/extensions/2.0/Khronos/KHR_materials_dispersion 8 | [Serializable] 9 | public class KHR_materials_dispersion : IExtension 10 | { 11 | public float dispersion = 0.0f; 12 | 13 | public JProperty Serialize() 14 | { 15 | var jo = new JObject(); 16 | if (dispersion != 0) jo.Add(new JProperty(nameof(dispersion), dispersion)); 17 | 18 | JProperty jProperty = new JProperty(KHR_materials_dispersion_Factory.EXTENSION_NAME, jo); 19 | return jProperty; 20 | } 21 | 22 | public IExtension Clone(GLTFRoot root) 23 | { 24 | return new KHR_materials_dispersion() { dispersion = dispersion}; 25 | } 26 | } 27 | 28 | public class KHR_materials_dispersion_Factory : ExtensionFactory 29 | { 30 | public const string EXTENSION_NAME = "KHR_materials_dispersion"; 31 | 32 | public KHR_materials_dispersion_Factory() 33 | { 34 | ExtensionName = EXTENSION_NAME; 35 | } 36 | 37 | public override IExtension Deserialize(GLTFRoot root, JProperty extensionToken) 38 | { 39 | if (extensionToken != null) 40 | { 41 | var extension = new KHR_materials_dispersion(); 42 | extension.dispersion = extensionToken.Value[nameof(KHR_materials_dispersion.dispersion)]?.Value() ?? 0; 43 | return extension; 44 | } 45 | 46 | return null; 47 | } 48 | } 49 | } 50 | 51 | -------------------------------------------------------------------------------- /Runtime/Plugins/GLTFSerialization/Extensions/KHR_materials_dispersion.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4377f82ccc31440b81b10e5b2d98104f 3 | timeCreated: 1712309498 -------------------------------------------------------------------------------- /Runtime/Plugins/GLTFSerialization/Extensions/KHR_materials_emissive_strength.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f4a07b6badfb6844e8d34a3a9b15a6f5 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Plugins/GLTFSerialization/Extensions/KHR_materials_ior.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e7620ff271fb4b39934ce610b28e27ef 3 | timeCreated: 1653603717 -------------------------------------------------------------------------------- /Runtime/Plugins/GLTFSerialization/Extensions/KHR_materials_iridescence.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0702e45c391babb47b93be6ff38f4e3e 3 | timeCreated: 1653603693 -------------------------------------------------------------------------------- /Runtime/Plugins/GLTFSerialization/Extensions/KHR_materials_pbrSpecularGlossinessExtension.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 59da86adeec3c394c9ba4e017a23db4a 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Plugins/GLTFSerialization/Extensions/KHR_materials_pbrSpecularGlossinessExtensionFactory.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2d8808686675fa540b28186541d0b196 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Plugins/GLTFSerialization/Extensions/KHR_materials_sheen.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e5ccef236cd146e68b7652d8ce5c6cd0 3 | timeCreated: 1724930690 -------------------------------------------------------------------------------- /Runtime/Plugins/GLTFSerialization/Extensions/KHR_materials_specular.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: cd1a3f573b7b4639854c977d6826c9b2 3 | timeCreated: 1653662141 -------------------------------------------------------------------------------- /Runtime/Plugins/GLTFSerialization/Extensions/KHR_materials_transmission.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ae9748bb15524941ba2cda5ed4d3dbb4 3 | timeCreated: 1653603710 -------------------------------------------------------------------------------- /Runtime/Plugins/GLTFSerialization/Extensions/KHR_materials_unlitExtension.cs: -------------------------------------------------------------------------------- 1 | using Newtonsoft.Json; 2 | using Newtonsoft.Json.Linq; 3 | 4 | namespace GLTF.Schema 5 | { 6 | /// 7 | /// This extension defines an unlit shading model for use in glTF 2.0 materials, as an alternative to the Physically Based Rendering (PBR) shading models provided by the core specification. 8 | /// 9 | /// Spec can be found here: 10 | /// https://github.com/KhronosGroup/glTF/tree/master/extensions/2.0/Khronos/KHR_materials_unlit 11 | /// 12 | public class KHR_MaterialsUnlitExtension : GLTFProperty, IExtension 13 | { 14 | public KHR_MaterialsUnlitExtension() { } 15 | 16 | public KHR_MaterialsUnlitExtension(KHR_MaterialsUnlitExtension ext, GLTFRoot root) : base(ext, root) { } 17 | 18 | public IExtension Clone(GLTFRoot gltfRoot) 19 | { 20 | return new KHR_MaterialsUnlitExtension(this, gltfRoot); 21 | } 22 | 23 | override public void Serialize(JsonWriter writer) 24 | { 25 | writer.WritePropertyName(KHR_MaterialsUnlitExtensionFactory.EXTENSION_NAME); 26 | writer.WriteStartObject(); 27 | base.Serialize(writer); 28 | writer.WriteEndObject(); 29 | } 30 | 31 | public JProperty Serialize() 32 | { 33 | JTokenWriter writer = new JTokenWriter(); 34 | Serialize(writer); 35 | return (JProperty)writer.Token; 36 | } 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /Runtime/Plugins/GLTFSerialization/Extensions/KHR_materials_unlitExtension.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ebec0fdc2a825ef4d8c526c0a5d8c0b1 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Plugins/GLTFSerialization/Extensions/KHR_materials_unlitExtensionFactory.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using Newtonsoft.Json.Linq; 3 | using GLTF.Math; 4 | using Newtonsoft.Json; 5 | using GLTF.Extensions; 6 | 7 | namespace GLTF.Schema 8 | { 9 | public class KHR_MaterialsUnlitExtensionFactory : ExtensionFactory 10 | { 11 | public const string EXTENSION_NAME = "KHR_materials_unlit"; 12 | 13 | public KHR_MaterialsUnlitExtensionFactory() 14 | { 15 | ExtensionName = EXTENSION_NAME; 16 | } 17 | 18 | public override IExtension Deserialize(GLTFRoot root, JProperty extensionToken) 19 | { 20 | return new KHR_MaterialsUnlitExtension(); 21 | } 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /Runtime/Plugins/GLTFSerialization/Extensions/KHR_materials_unlitExtensionFactory.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 15b8bb59cb9b65e4f92a9cf273cdcf8d 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Plugins/GLTFSerialization/Extensions/KHR_materials_volume.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6581bef44e7949e1ae7cf4a597183d1d 3 | timeCreated: 1653603693 -------------------------------------------------------------------------------- /Runtime/Plugins/GLTFSerialization/Extensions/KHR_node_hoverability.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ce8968759cf34e3ea014d5d047970e96 3 | timeCreated: 1733300503 -------------------------------------------------------------------------------- /Runtime/Plugins/GLTFSerialization/Extensions/KHR_node_selectability.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 416a36fe49924ae9bdf9980b1f37592d 3 | timeCreated: 1731435389 -------------------------------------------------------------------------------- /Runtime/Plugins/GLTFSerialization/Extensions/KHR_node_visibility.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using Newtonsoft.Json.Linq; 3 | 4 | namespace GLTF.Schema 5 | { 6 | 7 | [Serializable] 8 | public class KHR_node_visibility : IExtension 9 | { 10 | public bool visible = true; 11 | 12 | public JProperty Serialize() 13 | { 14 | var obj = new JObject(); 15 | JProperty jProperty = new JProperty(KHR_node_visibility_Factory.EXTENSION_NAME, obj); 16 | obj.Add(new JProperty(nameof(visible), visible)); 17 | return jProperty; 18 | } 19 | 20 | public IExtension Clone(GLTFRoot root) 21 | { 22 | return new KHR_node_visibility() { visible = visible}; 23 | } 24 | } 25 | 26 | public class KHR_node_visibility_Factory : ExtensionFactory 27 | { 28 | public const string EXTENSION_NAME = "KHR_node_visibility"; 29 | 30 | public KHR_node_visibility_Factory() 31 | { 32 | ExtensionName = EXTENSION_NAME; 33 | } 34 | 35 | public override IExtension Deserialize(GLTFRoot root, JProperty extensionToken) 36 | { 37 | if (extensionToken != null) 38 | { 39 | var extension = new KHR_node_visibility(); 40 | 41 | JToken visible = extensionToken.Value[nameof(KHR_node_visibility.visible)]; 42 | if (visible != null) 43 | extension.visible = visible.Value(); 44 | else 45 | extension.visible = true; 46 | return extension; 47 | } 48 | 49 | return null; 50 | } 51 | } 52 | } 53 | 54 | -------------------------------------------------------------------------------- /Runtime/Plugins/GLTFSerialization/Extensions/KHR_node_visibility.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fc4f3932bbad4f518063e1fe7d976092 3 | timeCreated: 1731401543 -------------------------------------------------------------------------------- /Runtime/Plugins/GLTFSerialization/Extensions/KHR_texture_basisu.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using Newtonsoft.Json.Linq; 3 | 4 | namespace GLTF.Schema 5 | { 6 | [Serializable] 7 | public class KHR_texture_basisu : IExtension 8 | { 9 | public const string EXTENSION_NAME = "KHR_texture_basisu"; 10 | public ImageId source; 11 | 12 | public KHR_texture_basisu(ImageId source) 13 | { 14 | this.source = source; 15 | } 16 | 17 | public IExtension Clone(GLTFRoot root) 18 | { 19 | return new KHR_texture_basisu(source); 20 | } 21 | 22 | public JProperty Serialize() 23 | { 24 | JObject ext = new JObject(); 25 | 26 | ext.Add("source", source.Id); 27 | 28 | return new JProperty(EXTENSION_NAME, ext); 29 | } 30 | } 31 | 32 | public class KHR_texture_basisu_Factory : ExtensionFactory 33 | { 34 | public const string EXTENSION_NAME = KHR_texture_basisu.EXTENSION_NAME; 35 | 36 | public KHR_texture_basisu_Factory() 37 | { 38 | ExtensionName = EXTENSION_NAME; 39 | } 40 | 41 | public override IExtension Deserialize(GLTFRoot root, JProperty extensionToken) 42 | { 43 | if (extensionToken != null) 44 | { 45 | if (extensionToken.Value["source"] == null) 46 | throw new Exception("KHR_texture_basisu extension must contain a source property."); 47 | 48 | var reader = extensionToken.Value["source"].CreateReader(); 49 | var extension = new KHR_texture_basisu(ImageId.Deserialize(root, reader)); 50 | return extension; 51 | } 52 | 53 | return null; 54 | } 55 | } 56 | } 57 | -------------------------------------------------------------------------------- /Runtime/Plugins/GLTFSerialization/Extensions/KHR_texture_basisu.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c9e0c12f9cd04f69b2f4b788cb552437 3 | timeCreated: 1685969361 -------------------------------------------------------------------------------- /Runtime/Plugins/GLTFSerialization/Extensions/MSFT_LODExtension.cs: -------------------------------------------------------------------------------- 1 | using GLTF.Extensions; 2 | using Newtonsoft.Json.Linq; 3 | using System.Collections.Generic; 4 | 5 | namespace GLTF.Schema 6 | { 7 | /// 8 | /// glTF extension that defines the LOD 9 | /// 10 | public class MSFT_LODExtension : IExtension 11 | { 12 | public List NodeIds { get; set; } 13 | public MSFT_LODExtension(List nodeIds) 14 | { 15 | NodeIds = nodeIds; 16 | } 17 | public IExtension Clone(GLTFRoot gltfRoot) 18 | { 19 | return new MSFT_LODExtension(NodeIds); 20 | } 21 | public JProperty Serialize() 22 | { 23 | JProperty jProperty = new JProperty(MSFT_LODExtensionFactory.EXTENSION_NAME, 24 | new JObject( 25 | new JProperty(MSFT_LODExtensionFactory.IDS, new JArray(NodeIds)) 26 | ) 27 | ); 28 | return jProperty; 29 | } 30 | 31 | public List GetLODCoverage(Node node) 32 | { 33 | List lodCoverage = null; 34 | if (node.Extras != null) 35 | { 36 | JToken screenCoverageExtras = node.Extras[MSFT_LODExtensionFactory.SCREEN_COVERAGE_EXTRAS]; 37 | if (screenCoverageExtras != null) 38 | { 39 | lodCoverage = screenCoverageExtras.CreateReader().ReadDoubleList(); 40 | } 41 | } 42 | 43 | return lodCoverage; 44 | } 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /Runtime/Plugins/GLTFSerialization/Extensions/MSFT_LODExtension.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5414556e16dc4bc40bb228d17d86ddd8 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Plugins/GLTFSerialization/Extensions/MSFT_LODExtensionFactory.cs: -------------------------------------------------------------------------------- 1 | using Newtonsoft.Json.Linq; 2 | using GLTF.Extensions; 3 | using System.Collections.Generic; 4 | 5 | namespace GLTF.Schema 6 | { 7 | public class MSFT_LODExtensionFactory : ExtensionFactory 8 | { 9 | public const string EXTENSION_NAME = "MSFT_lod"; 10 | public const string SCREEN_COVERAGE_EXTRAS = "MSFT_screencoverage"; 11 | public const string IDS = "ids"; 12 | 13 | public MSFT_LODExtensionFactory() 14 | { 15 | ExtensionName = EXTENSION_NAME; 16 | } 17 | 18 | 19 | public override IExtension Deserialize(GLTFRoot root, JProperty extensionToken) 20 | { 21 | List meshIds = new List(); 22 | if (extensionToken != null) 23 | { 24 | #if DEBUG 25 | // Broken on il2cpp. Don't ship debug DLLs there. 26 | System.Diagnostics.Debug.WriteLine(extensionToken.Value.ToString()); 27 | System.Diagnostics.Debug.WriteLine(extensionToken.Value.Type); 28 | #endif 29 | JToken meshIdsToken = extensionToken.Value[IDS]; 30 | meshIds = meshIdsToken.CreateReader().ReadInt32List(); 31 | } 32 | 33 | return new MSFT_LODExtension(meshIds); 34 | } 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /Runtime/Plugins/GLTFSerialization/Extensions/MSFT_LODExtensionFactory.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 879b237aa98612d468a9d18e34c9e9c1 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Plugins/GLTFSerialization/GLBBuilder.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1ff8d4b6beb2ca648926a7f0e032a63e 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Plugins/GLTFSerialization/GLBObject.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2ddfd4d551e573949a2644728ae031bc 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Plugins/GLTFSerialization/GLTFHelpers.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 263666854cbd1bc489267c0f2112f5e1 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Plugins/GLTFSerialization/GLTFObject.cs: -------------------------------------------------------------------------------- 1 | using GLTF.Schema; 2 | 3 | namespace GLTF 4 | { 5 | /// 6 | /// Represents a glTF file (specifically not GLB) 7 | /// 8 | public class GLTFObject : IGLTFObject 9 | { 10 | public GLTFObject(GLTFRoot root) 11 | { 12 | Root = root; 13 | } 14 | 15 | /// 16 | /// Parsed glTF into a strongly typed C# object 17 | /// 18 | public GLTFRoot Root { get; internal set; } 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /Runtime/Plugins/GLTFSerialization/GLTFObject.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0a76e06d7bdb61347a2118c05b86c181 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Plugins/GLTFSerialization/GLTFParser.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6baa61f5385e65042bc17abb85d5f9b4 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Plugins/GLTFSerialization/GLTFSerialization.asmdef: -------------------------------------------------------------------------------- 1 | { 2 | "name": "GLTFSerialization", 3 | "rootNamespace": "", 4 | "references": [ 5 | "GUID:84ca1e7ada6c144debb2e417c8dbe9a5", 6 | "GUID:e0cd26848372d4e5c891c569017e11f1", 7 | "GUID:2665a8d13d1b3f18800f46e256720795", 8 | "GUID:d8b63aba1907145bea998dd612889d6b" 9 | ], 10 | "includePlatforms": [], 11 | "excludePlatforms": [], 12 | "allowUnsafeCode": true, 13 | "overrideReferences": true, 14 | "precompiledReferences": [ 15 | "Newtonsoft.Json.dll" 16 | ], 17 | "autoReferenced": true, 18 | "defineConstraints": [], 19 | "versionDefines": [ 20 | { 21 | "name": "com.unity.meshopt.decompress", 22 | "expression": "", 23 | "define": "HAVE_MESHOPT_DECOMPRESS" 24 | } 25 | ], 26 | "noEngineReferences": false 27 | } -------------------------------------------------------------------------------- /Runtime/Plugins/GLTFSerialization/GLTFSerialization.asmdef.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 40f39bff7bc9be34182ebe488fcf8228 3 | AssemblyDefinitionImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Runtime/Plugins/GLTFSerialization/IGLTFObject.cs: -------------------------------------------------------------------------------- 1 | using GLTF.Schema; 2 | 3 | namespace GLTF 4 | { 5 | /// 6 | /// Represents a GLTFObject 7 | /// 8 | public interface IGLTFObject 9 | { 10 | GLTFRoot Root { get; } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /Runtime/Plugins/GLTFSerialization/IGLTFObject.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5d3d653bfec13be4c9e06a22631d3420 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Plugins/GLTFSerialization/Legacy~/GLTFSerialization.csproj.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0833101f3e32c5849a37072f628efc15 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Runtime/Plugins/GLTFSerialization/Math.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: cde5e1bb32bb63047be2e7ef338ffd50 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Runtime/Plugins/GLTFSerialization/Math/Color.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e7ba942550f634246ac9a798262e498f 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Plugins/GLTFSerialization/Math/Matrix4x4.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9aeefcfaec31e2945bdd16285de33227 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Plugins/GLTFSerialization/Math/Quaternion.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 21f2d9fe5dc7e3c4a873d2f2d5deb404 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Plugins/GLTFSerialization/Math/Vector2.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace GLTF.Math 4 | { 5 | public struct Vector2 : IEquatable 6 | { 7 | public float X { get; set; } 8 | public float Y { get; set; } 9 | 10 | public Vector2(float x, float y) 11 | { 12 | X = x; 13 | Y = y; 14 | } 15 | 16 | public Vector2(Vector2 other) 17 | { 18 | X = other.X; 19 | Y = other.Y; 20 | } 21 | 22 | public bool Equals(Vector2 other) 23 | { 24 | return X.Equals(other.X) && Y.Equals(other.Y); 25 | } 26 | 27 | public override bool Equals(object obj) 28 | { 29 | if (ReferenceEquals(null, obj)) return false; 30 | return obj is Vector2 && Equals((Vector2) obj); 31 | } 32 | 33 | public override int GetHashCode() 34 | { 35 | unchecked 36 | { 37 | return (X.GetHashCode() * 397) ^ Y.GetHashCode(); 38 | } 39 | } 40 | 41 | public static bool operator ==(Vector2 left, Vector2 right) 42 | { 43 | return left.Equals(right); 44 | } 45 | 46 | public static bool operator !=(Vector2 left, Vector2 right) 47 | { 48 | return !left.Equals(right); 49 | } 50 | } 51 | } 52 | -------------------------------------------------------------------------------- /Runtime/Plugins/GLTFSerialization/Math/Vector2.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1ce6455297f415343beeaaec7bddb32d 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Plugins/GLTFSerialization/Math/Vector3.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace GLTF.Math 4 | { 5 | public struct Vector3 : IEquatable 6 | { 7 | public static readonly Vector3 Zero = new Vector3(0f, 0f, 0f); 8 | public static readonly Vector3 One = new Vector3(1f, 1f, 1f); 9 | 10 | public float X { get; set; } 11 | public float Y { get; set; } 12 | public float Z { get; set; } 13 | 14 | public Vector3(float x, float y, float z) 15 | { 16 | X = x; 17 | Y = y; 18 | Z = z; 19 | } 20 | 21 | 22 | public Vector3(Vector3 other) 23 | { 24 | X = other.X; 25 | Y = other.Y; 26 | Z = other.Z; 27 | } 28 | 29 | public bool Equals(Vector3 other) 30 | { 31 | return X.Equals(other.X) && Y.Equals(other.Y) && Z.Equals(other.Z); 32 | } 33 | 34 | public override bool Equals(object obj) 35 | { 36 | if (ReferenceEquals(null, obj)) return false; 37 | return obj is Vector3 && Equals((Vector3) obj); 38 | } 39 | 40 | public override int GetHashCode() 41 | { 42 | unchecked 43 | { 44 | var hashCode = X.GetHashCode(); 45 | hashCode = (hashCode * 397) ^ Y.GetHashCode(); 46 | hashCode = (hashCode * 397) ^ Z.GetHashCode(); 47 | return hashCode; 48 | } 49 | } 50 | 51 | public static bool operator ==(Vector3 left, Vector3 right) 52 | { 53 | return left.Equals(right); 54 | } 55 | 56 | public static bool operator !=(Vector3 left, Vector3 right) 57 | { 58 | return !left.Equals(right); 59 | } 60 | } 61 | } 62 | -------------------------------------------------------------------------------- /Runtime/Plugins/GLTFSerialization/Math/Vector3.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d1691a2a5c9edac418814a93b69b2f4b 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Plugins/GLTFSerialization/Math/Vector4.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace GLTF.Math 4 | { 5 | public struct Vector4 : IEquatable 6 | { 7 | public float X { get; set; } 8 | public float Y { get; set; } 9 | public float Z { get; set; } 10 | public float W { get; set; } 11 | 12 | public Vector4(float x, float y, float z, float w) 13 | { 14 | X = x; 15 | Y = y; 16 | Z = z; 17 | W = w; 18 | } 19 | 20 | public Vector4(Vector4 other) 21 | { 22 | X = other.X; 23 | Y = other.Y; 24 | Z = other.Z; 25 | W = other.W; 26 | } 27 | 28 | 29 | public bool Equals(Vector4 other) 30 | { 31 | return X.Equals(other.X) && Y.Equals(other.Y) && Z.Equals(other.Z) && W.Equals(other.W); 32 | } 33 | 34 | public override bool Equals(object obj) 35 | { 36 | if (ReferenceEquals(null, obj)) return false; 37 | return obj is Vector4 && Equals((Vector4) obj); 38 | } 39 | 40 | public override int GetHashCode() 41 | { 42 | unchecked 43 | { 44 | var hashCode = X.GetHashCode(); 45 | hashCode = (hashCode * 397) ^ Y.GetHashCode(); 46 | hashCode = (hashCode * 397) ^ Z.GetHashCode(); 47 | hashCode = (hashCode * 397) ^ W.GetHashCode(); 48 | return hashCode; 49 | } 50 | } 51 | 52 | public static bool operator ==(Vector4 left, Vector4 right) 53 | { 54 | return left.Equals(right); 55 | } 56 | 57 | public static bool operator !=(Vector4 left, Vector4 right) 58 | { 59 | return !left.Equals(right); 60 | } 61 | } 62 | } 63 | -------------------------------------------------------------------------------- /Runtime/Plugins/GLTFSerialization/Math/Vector4.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5da6fe3b49e1de94a9ced1f70dd1bf84 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Plugins/GLTFSerialization/Properties.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 27196d12847e1f441b0b711ca2ce9ac4 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Runtime/Plugins/GLTFSerialization/Properties/AssemblyInfo.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a9cfc1efa73335948afd6531e3a55ac1 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Plugins/GLTFSerialization/Schema.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fc456dd013a8e964abdb43ca81d17b18 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Runtime/Plugins/GLTFSerialization/Schema/Accessor.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9fdb27ce25eaa9e418627129cb42bd53 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Plugins/GLTFSerialization/Schema/AccessorSparse.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 30350fa0a44956c4084506e37779d503 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Plugins/GLTFSerialization/Schema/AccessorSparseIndices.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0606e7ff683a71a4098fadddab4663f8 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Plugins/GLTFSerialization/Schema/AccessorSparseValues.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d00bc2c09c68ec8408bd7b0069b855d0 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Plugins/GLTFSerialization/Schema/AnimationChannel.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5e7ba1c2598f9aa48a88e0e2730433b6 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Plugins/GLTFSerialization/Schema/AnimationChannelTarget.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8111941d8c535694480020d2938d7ead 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Plugins/GLTFSerialization/Schema/AnimationPointerData.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace GLTF.Schema 4 | { 5 | public class AnimationPointerData 6 | { 7 | public string[] unityPropertyNames; 8 | public Type targetType; 9 | public int[] targetNodeIds; 10 | 11 | public delegate float[] ImportValuesConversion(AnimationPointerData data, int index); 12 | public ImportValuesConversion importAccessorContentConversion; 13 | 14 | public string primaryPath = ""; 15 | public string primaryProperty = ""; 16 | 17 | public AttributeAccessor primaryData; 18 | 19 | public string secondaryPath = ""; 20 | public string secondaryProperty = ""; 21 | public AttributeAccessor secondaryData; 22 | } 23 | 24 | } -------------------------------------------------------------------------------- /Runtime/Plugins/GLTFSerialization/Schema/AnimationPointerData.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b46ea1356e184122834984053bbe1693 3 | timeCreated: 1708099053 -------------------------------------------------------------------------------- /Runtime/Plugins/GLTFSerialization/Schema/AnimationSampler.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2fda6c6e1290a7b44bfefed8f5d16c5a 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Plugins/GLTFSerialization/Schema/Asset.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 85a3a816df09cc345ab4002fe5a7cf11 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Plugins/GLTFSerialization/Schema/BufferView.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d729c33bb2a00cc4d9b1dfb86a5328e0 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Plugins/GLTFSerialization/Schema/CameraOrthographic.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a6454a44f211e034fbb296317a54bc1c 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Plugins/GLTFSerialization/Schema/CameraPerspective.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: cf6fe265120bc154ea4bb0c11a7ab8a1 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Plugins/GLTFSerialization/Schema/GLTFAnimation.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 27b34af664d9b4d45bf9d8b43a109eab 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Plugins/GLTFSerialization/Schema/GLTFBuffer.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c36ff96bc8f31054f9d2c15607ad7d3d 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Plugins/GLTFSerialization/Schema/GLTFCamera.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: eebe17975598da0458e2f068665cae53 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Plugins/GLTFSerialization/Schema/GLTFChildOfRootProperty.cs: -------------------------------------------------------------------------------- 1 | using Newtonsoft.Json; 2 | 3 | namespace GLTF.Schema 4 | { 5 | public class GLTFChildOfRootProperty : GLTFProperty 6 | { 7 | /// 8 | /// The user-defined name of this object. 9 | /// This is not necessarily unique, e.g., an accessor and a buffer could have the same name, 10 | /// or two accessors could even have the same name. 11 | /// 12 | public string Name; 13 | 14 | public GLTFChildOfRootProperty() 15 | { 16 | } 17 | 18 | public GLTFChildOfRootProperty(GLTFChildOfRootProperty childOfRootProperty, GLTFRoot gltfRoot) : base(childOfRootProperty, gltfRoot) 19 | { 20 | if (childOfRootProperty == null) return; 21 | 22 | Name = childOfRootProperty.Name; 23 | } 24 | 25 | public new void DefaultPropertyDeserializer(GLTFRoot root, JsonReader reader) 26 | { 27 | switch (reader.Value.ToString()) 28 | { 29 | case "name": 30 | Name = reader.ReadAsString(); 31 | break; 32 | default: 33 | base.DefaultPropertyDeserializer(root, reader); 34 | break; 35 | } 36 | } 37 | 38 | public override void Serialize(JsonWriter writer) 39 | { 40 | 41 | if (Name != null) 42 | { 43 | writer.WritePropertyName("name"); 44 | writer.WriteValue(Name); 45 | } 46 | 47 | base.Serialize(writer); 48 | } 49 | } 50 | } 51 | -------------------------------------------------------------------------------- /Runtime/Plugins/GLTFSerialization/Schema/GLTFChildOfRootProperty.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ffc3c1d1c490aaf4f98df999eb0429ad 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Plugins/GLTFSerialization/Schema/GLTFExtensions.cs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prefrontalcortex/UnityGLTF/f958bf71824fb36c5b55bf0b52310bc7392e156e/Runtime/Plugins/GLTFSerialization/Schema/GLTFExtensions.cs -------------------------------------------------------------------------------- /Runtime/Plugins/GLTFSerialization/Schema/GLTFExtensions.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 31f6e4fa1022c1c44905eca2de16e943 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Plugins/GLTFSerialization/Schema/GLTFId.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 53002b1acd71031408f61b758ec5ef2d 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Plugins/GLTFSerialization/Schema/GLTFImage.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a2c8ec880230ff84fb20ff6dd04548c7 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Plugins/GLTFSerialization/Schema/GLTFMaterial.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: aca48cfee1de3af49b4f3aca770e3828 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Plugins/GLTFSerialization/Schema/GLTFMesh.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3ad352271728bac40af6a9287b2d0d78 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Plugins/GLTFSerialization/Schema/GLTFProperty.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5209123bd4cc0c341b4acc610846c177 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Plugins/GLTFSerialization/Schema/GLTFRoot.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: edc6a3756446b834caf021ac90cab9b7 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Plugins/GLTFSerialization/Schema/GLTFScene.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f337f9fa42d223d478aafeaedfd8fb68 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Plugins/GLTFSerialization/Schema/GLTFTexture.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c65a34c3cbf08664d83fbde6d15da516 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Plugins/GLTFSerialization/Schema/GLTF_DirectionalLight.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b7ba89d77222428478d2712c6c970732 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Plugins/GLTFSerialization/Schema/GLTF_Light.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 56f461ee5cb371843b46aae5b9e0b7a5 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Plugins/GLTFSerialization/Schema/GLTF_PointLight.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | using System.Linq; 3 | using GLTF.Extensions; 4 | using GLTF.Math; 5 | using Newtonsoft.Json; 6 | 7 | namespace GLTF.Schema 8 | { 9 | public class GLTFPointLight : GLTFLight 10 | { 11 | 12 | public GLTFPointLight() 13 | { 14 | } 15 | 16 | public GLTFPointLight(GLTFPointLight node, GLTFRoot gltfRoot) : base(node, gltfRoot) 17 | { 18 | if (node == null) return; 19 | } 20 | 21 | public new static GLTFPointLight Deserialize(GLTFRoot root, JsonReader reader) 22 | { 23 | var node = new GLTFPointLight(); 24 | 25 | while (reader.Read() && reader.TokenType == JsonToken.PropertyName) 26 | { 27 | var curProp = reader.Value.ToString(); 28 | 29 | switch (curProp) 30 | { 31 | case "type": 32 | node.type = reader.ReadAsString(); 33 | break; 34 | case "color": 35 | node.color = reader.ReadAsRGBAColor(); 36 | break; 37 | case "range": 38 | node.range = (float)reader.ReadAsDouble(); 39 | break; 40 | case "intensity": 41 | node.intensity = (float)reader.ReadAsDouble(); 42 | break; 43 | case "name": 44 | node.name = reader.ReadAsString(); 45 | break; 46 | } 47 | } 48 | 49 | return node; 50 | } 51 | 52 | public override void Serialize(JsonWriter writer) 53 | { 54 | base.Serialize(writer); 55 | } 56 | } 57 | } 58 | -------------------------------------------------------------------------------- /Runtime/Plugins/GLTFSerialization/Schema/GLTF_PointLight.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 802c7ccb6de792f47bd97fcbbb57b036 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Plugins/GLTFSerialization/Schema/GLTF_SpotLight.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1174c79e1671fb943990d2b52eab704a 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Plugins/GLTFSerialization/Schema/IExtension.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 75612d2ea4aa44c4ab737749e6395401 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Plugins/GLTFSerialization/Schema/MaterialCommonConstant.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d0c9f9ed6cc5d864ab86f662ca671226 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Plugins/GLTFSerialization/Schema/MaterialNormalTextureInfo.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: dc1cb3319141e8d4abc855bea912734f 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Plugins/GLTFSerialization/Schema/MaterialOcclusionTextureInfo.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 407f0eb80f575c54bbd18b139e6cb511 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Plugins/GLTFSerialization/Schema/MaterialPBRMetallicRoughness.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3154ff5377a58a145b6250c4b0f7d27f 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Plugins/GLTFSerialization/Schema/MeshPrimitive.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 22062a4fc434af14f80728e7e3b39069 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Plugins/GLTFSerialization/Schema/Node.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 91eca59d86fe98c4097a0a5a1dcaba28 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Plugins/GLTFSerialization/Schema/Sampler.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5360cd93389152e4399f96bef4f7d5b1 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Plugins/GLTFSerialization/Schema/SchemaExtensions.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e3a3c8e7f1cdae14fa835ee3580e292f 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Plugins/GLTFSerialization/Schema/Skin.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5de7dba147dab814ea285ea8f0e29f2e 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Plugins/GLTFSerialization/Schema/TextureInfo.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1d647d19b3479834f9763fb7f53f0b99 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Plugins/GLTFSerialization/Utilities.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8ae0e6abadf8de44db06715064bd7938 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Runtime/Plugins/GLTFSerialization/Utilities/AnimationPointerPath.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: dc6bc893b2f9428b94cb9972e35f3e24 3 | timeCreated: 1708087555 -------------------------------------------------------------------------------- /Runtime/Plugins/GLTFSerialization/Utilities/GltfRootExtensions.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 14a6d519d0344f438f272a77e05a896c 3 | timeCreated: 1707995699 -------------------------------------------------------------------------------- /Runtime/Plugins/GLTFSerialization/Utilities/JsonReaderExtensions.cs: -------------------------------------------------------------------------------- 1 | using Newtonsoft.Json; 2 | 3 | namespace GLTF.Utilities 4 | { 5 | internal static class JsonReaderExtensions 6 | { 7 | public static uint ReadDoubleAsUInt32(this JsonReader reader) 8 | { 9 | return (uint)System.Math.Round(reader.ReadAsDouble().Value); 10 | } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /Runtime/Plugins/GLTFSerialization/Utilities/JsonReaderExtensions.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f4ec7ce58a8f26d44bfd5cde279a594f 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Plugins/GLTFSerialization/Utilities/StreamExtensions.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1cef435e4865e234ca0f479df0676ba3 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Plugins/GLTFSerialization/Utilities/SubStream.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 655fa8eee650c064aa123b5754cb5df0 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Plugins/Optimization.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: eccbe01f8cce2cb498ea33635d5ac1ca 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Runtime/Plugins/Optimization/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System.Runtime.CompilerServices; 2 | 3 | [assembly: InternalsVisibleTo("UnityGLTFScripts")] 4 | -------------------------------------------------------------------------------- /Runtime/Plugins/Optimization/AssemblyInfo.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1f6e7dc425f2f1a45a0148a80a14220d 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Plugins/Optimization/BinaryWriterWithLessAllocations.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: cb8524c06641ea041996dd207ba02996 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Plugins/Optimization/UnityGLTF.Helpers.asmdef: -------------------------------------------------------------------------------- 1 | { 2 | "name": "UnityGLTF.Helpers", 3 | "rootNamespace": "", 4 | "references": [], 5 | "includePlatforms": [], 6 | "excludePlatforms": [], 7 | "allowUnsafeCode": true, 8 | "overrideReferences": true, 9 | "precompiledReferences": [], 10 | "autoReferenced": false, 11 | "defineConstraints": [], 12 | "versionDefines": [], 13 | "noEngineReferences": false 14 | } -------------------------------------------------------------------------------- /Runtime/Plugins/Optimization/UnityGLTF.Helpers.asmdef.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d58a4b8a1f92baa4f8100941944470f7 3 | AssemblyDefinitionImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Runtime/Prefabs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6a03e64c2c3aba94eaecf31ffe847f86 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Runtime/Prefabs/GLTF.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5255039e40b37b14fbcc0b72a30fc62e 3 | PrefabImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Runtime/Resources.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 12b3ed547e9b67745b2e8eebb01655c3 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Runtime/Resources/MetalGlossChannelSwap.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 200d9689f5dda4633867345ba978a8dd 3 | ShaderImporter: 4 | externalObjects: {} 5 | defaultTextures: [] 6 | nonModifiableTextures: [] 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Runtime/Resources/MetalGlossOcclusionChannelSwap.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 308bb6d3008beb54c888a6fa64dc9b17 3 | ShaderImporter: 4 | externalObjects: {} 5 | defaultTextures: [] 6 | nonModifiableTextures: [] 7 | preprocessorOverride: 0 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | -------------------------------------------------------------------------------- /Runtime/Resources/NormalChannel.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 12e0e6f24241d4f38811bfce257ae65d 3 | ShaderImporter: 4 | externalObjects: {} 5 | defaultTextures: [] 6 | nonModifiableTextures: [] 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Runtime/Resources/README.txt.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f3bf00dab702a054fb2572323e59feff 3 | TextScriptImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Runtime/Resources/Standard (Specular setup).mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 250d45d62e6ce1c48a49ed3015b523eb 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 2100000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Runtime/Resources/Standard (Specular setup).shadervariants: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!200 &20000000 4 | ShaderVariantCollection: 5 | m_ObjectHideFlags: 0 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | m_Name: Standard (Specular setup) 10 | m_Shaders: 11 | - first: {fileID: 45, guid: 0000000000000000f000000000000000, type: 0} 12 | second: 13 | variants: 14 | - keywords: DIRECTIONAL _ALPHATEST_ON _EMISSION _NORMALMAP _SPECGLOSSMAP 15 | passType: 4 16 | -------------------------------------------------------------------------------- /Runtime/Resources/Standard (Specular setup).shadervariants.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ad96276ecf34f304cae080332f7f9051 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 20000000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Runtime/Resources/TestScenePrefab.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 426ae0d14f1f31f48af072147ac6abe9 3 | PrefabImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Runtime/Scripts.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9711e44b963e5074b96a9268c12345bf 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Runtime/Scripts/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 |  2 | 3 | using System.Runtime.CompilerServices; 4 | 5 | [assembly: InternalsVisibleTo("UnityGLTFEditor")] 6 | -------------------------------------------------------------------------------- /Runtime/Scripts/AssemblyInfo.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3c0a4d01957543f782ec22407ee6848e 3 | timeCreated: 1678903758 -------------------------------------------------------------------------------- /Runtime/Scripts/Async.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ad85f72cb68a7854d8bd33e064340c2b 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Runtime/Scripts/Async/AsyncCoroutineHelper.cs: -------------------------------------------------------------------------------- 1 | using System.Collections; 2 | using System.Collections.Generic; 3 | using System.Threading.Tasks; 4 | using UnityEngine; 5 | 6 | namespace UnityGLTF 7 | { 8 | public class AsyncCoroutineHelper : MonoBehaviour 9 | { 10 | public float BudgetPerFrameInSeconds = 0.01f; 11 | 12 | private WaitForEndOfFrame _waitForEndOfFrame = new WaitForEndOfFrame(); 13 | private float _timeout; 14 | 15 | public async Task YieldOnTimeout() 16 | { 17 | if (Time.realtimeSinceStartup > _timeout) 18 | { 19 | await Task.Yield(); 20 | _timeout = Time.realtimeSinceStartup + BudgetPerFrameInSeconds; 21 | } 22 | } 23 | 24 | private void Start() 25 | { 26 | _timeout = Time.realtimeSinceStartup + BudgetPerFrameInSeconds; 27 | 28 | StartCoroutine(ResetFrameTimeout()); 29 | } 30 | 31 | private IEnumerator ResetFrameTimeout() 32 | { 33 | while (true) 34 | { 35 | yield return _waitForEndOfFrame; 36 | _timeout = Time.realtimeSinceStartup + BudgetPerFrameInSeconds; 37 | } 38 | } 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /Runtime/Scripts/Async/AsyncCoroutineHelper.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f51ceb82926c0a44394654b191b00336 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Scripts/Async/TaskExtensions.cs: -------------------------------------------------------------------------------- 1 | #if UNITY_2017_1_OR_NEWER 2 | using System.Collections; 3 | using System.Threading.Tasks; 4 | 5 | namespace UnityGLTF 6 | { 7 | public static class TaskExtensions 8 | { 9 | public static IEnumerator AsCoroutine(this Task task) 10 | { 11 | while (!task.IsCompleted) 12 | { 13 | yield return null; 14 | } 15 | } 16 | } 17 | } 18 | #endif -------------------------------------------------------------------------------- /Runtime/Scripts/Async/TaskExtensions.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7305b2a914e83c142b612e9994f1b483 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Scripts/Cache.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6ce40bec54ad382449f80ef0e1028101 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Runtime/Scripts/Cache/AnimationCacheData.cs: -------------------------------------------------------------------------------- 1 | #if UNITY_ANIMATION || !UNITY_2019_1_OR_NEWER 2 | 3 | using GLTF; 4 | using GLTF.Schema; 5 | 6 | namespace UnityGLTF.Cache 7 | { 8 | public struct AnimationSamplerCacheData 9 | { 10 | public AttributeAccessor Input; 11 | public AttributeAccessor Output; 12 | public InterpolationType Interpolation; 13 | } 14 | 15 | public class AnimationCacheData 16 | { 17 | public UnityEngine.AnimationClip LoadedAnimationClip { get; set; } 18 | public AnimationSamplerCacheData[] Samplers { get; set; } 19 | 20 | public AnimationCacheData(int samplerCount) 21 | { 22 | Samplers = new AnimationSamplerCacheData[samplerCount]; 23 | } 24 | } 25 | } 26 | 27 | #endif 28 | -------------------------------------------------------------------------------- /Runtime/Scripts/Cache/AnimationCacheData.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5eb5ec69ffa30384786436879a3167a3 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Scripts/Cache/AssetCache.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1bb782a30ee69ac43949c7b27404bb0a 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Scripts/Cache/BufferCacheData.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using Unity.Collections; 3 | 4 | namespace UnityGLTF.Cache 5 | { 6 | public class BufferCacheData : IDisposable 7 | { 8 | public uint ChunkOffset { get; set; } 9 | public System.IO.Stream Stream { get; set; } 10 | 11 | public NativeArray bufferData { get; set; } 12 | 13 | public void Dispose() 14 | { 15 | if (Stream != null) 16 | { 17 | #if !WINDOWS_UWP 18 | Stream.Close(); 19 | #else 20 | Stream.Dispose(); 21 | #endif 22 | Stream = null; 23 | } 24 | } 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /Runtime/Scripts/Cache/BufferCacheData.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3ede042e9106e314a9c2fc3727c636af 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Scripts/Cache/ExportCache.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b67adc482fa84697bf30de7918e7d995 3 | timeCreated: 1672777985 -------------------------------------------------------------------------------- /Runtime/Scripts/Cache/MaterialCacheData.cs: -------------------------------------------------------------------------------- 1 | using GLTF.Schema; 2 | using System; 3 | using UnityEngine; 4 | 5 | namespace UnityGLTF.Cache 6 | { 7 | public class MaterialCacheData : IDisposable 8 | { 9 | public Material UnityMaterial { get; set; } 10 | public Material UnityMaterialWithVertexColor { get; set; } 11 | public GLTFMaterial GLTFMaterial { get; set; } 12 | 13 | public Material GetContents(bool useVertexColors) 14 | { 15 | return useVertexColors ? UnityMaterialWithVertexColor : UnityMaterial; 16 | } 17 | 18 | /// 19 | /// Unloads the materials in this cache. 20 | /// 21 | public void Dispose() 22 | { 23 | if (UnityMaterial != null) 24 | { 25 | UnityEngine.Object.Destroy(UnityMaterial); 26 | UnityMaterial = null; 27 | } 28 | 29 | if (UnityMaterialWithVertexColor != null) 30 | { 31 | UnityEngine.Object.Destroy(UnityMaterialWithVertexColor); 32 | UnityMaterialWithVertexColor = null; 33 | } 34 | } 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /Runtime/Scripts/Cache/MaterialCacheData.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3046febe680d4eb44b6851e256d7feca 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Scripts/Cache/MeshCacheData.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7356479b6b440d943adc853e80ead936 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Scripts/Cache/RefCountedCacheData.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6acba157038c72d4db902024947d8f94 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Scripts/Cache/TextureCacheData.cs: -------------------------------------------------------------------------------- 1 | using GLTF.Schema; 2 | using System; 3 | using UnityEngine; 4 | 5 | namespace UnityGLTF.Cache 6 | { 7 | public class TextureCacheData : IDisposable 8 | { 9 | public GLTFTexture TextureDefinition; 10 | public Texture2D Texture; 11 | public bool IsLinear; 12 | public bool IsNormal; 13 | 14 | /// 15 | /// Unloads the textures in this cache. 16 | /// 17 | public void Dispose() 18 | { 19 | if (Texture != null) 20 | { 21 | UnityEngine.Object.Destroy(Texture); 22 | Texture = null; 23 | } 24 | } 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /Runtime/Scripts/Cache/TextureCacheData.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2d62214ca8670eb49aa365a9c8a3abd2 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Scripts/Exceptions.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8d34b5101f1055e429abecbc93c31f69 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Scripts/Extensions.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8ec62698f7fefc548b07a91ea9bb447a 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Runtime/Scripts/Extensions/KHR_animation_pointer_Resolver.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 23086a9473b049b3ab8e64001d13a28b 3 | timeCreated: 1648544951 -------------------------------------------------------------------------------- /Runtime/Scripts/Factories.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5ecddf923e46d4e4a8a472349578948c 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Runtime/Scripts/Factories/ImporterFactory.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using UnityGLTF.Loader; 3 | 4 | namespace UnityGLTF 5 | { 6 | public abstract class ImporterFactory : ScriptableObject 7 | { 8 | public abstract GLTFSceneImporter CreateSceneImporter(string gltfFileName, ImportOptions options); 9 | } 10 | 11 | public class DefaultImporterFactory : ImporterFactory 12 | { 13 | public override GLTFSceneImporter CreateSceneImporter(string gltfFileName, ImportOptions options) 14 | { 15 | return new GLTFSceneImporter(gltfFileName, options); 16 | } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /Runtime/Scripts/Factories/ImporterFactory.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 26465c5482163224486cdb865e3a0838 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Scripts/GLTFComponent.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9087a95f22bcee64ebc45f6deec08714 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 200 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Scripts/GLTFRecorderComponent.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e76d60ddbac22cd4ba183f725ba62c5c 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Scripts/GLTFSceneExporter.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 99a6a54edfc45604ab2a687a161f520b 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Scripts/GLTFSceneImporter.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e2215b68d185249408d7b16c1c8799b0 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Scripts/GLTFSettings.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9d9a5969691dba845877d0a52b6d9397 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Scripts/InstantiatedGLTFObject.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 943fbcf4d915b934db023669fa205a37 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Scripts/JsonPointer.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8b6a60ae7ada43ce81c9fe3d7d34cdb3 3 | timeCreated: 1651350262 -------------------------------------------------------------------------------- /Runtime/Scripts/JsonPointer/IJsonPointerResolver.cs: -------------------------------------------------------------------------------- 1 | namespace UnityGLTF.JsonPointer 2 | { 3 | public interface IJsonPointerResolver 4 | { 5 | bool TryResolve(object target, ref string path); 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /Runtime/Scripts/JsonPointer/IJsonPointerResolver.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8c60ec8461d64f80a335777129bdde18 3 | timeCreated: 1651350280 -------------------------------------------------------------------------------- /Runtime/Scripts/Loader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9b9e509156e15f242836bedd245ddd21 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Runtime/Scripts/Loader/FileLoader.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e1980a22c6cc4ce4e920022d7d9e941d 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Scripts/Loader/IDataLoader.cs: -------------------------------------------------------------------------------- 1 | using System.IO; 2 | using System.Threading.Tasks; 3 | 4 | namespace UnityGLTF.Loader 5 | { 6 | public interface IDataLoader 7 | { 8 | Task LoadStreamAsync(string relativeFilePath); 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /Runtime/Scripts/Loader/IDataLoader.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fdb6a96a5ee34824685713dbad74cf51 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Scripts/Loader/IDataLoader2.cs: -------------------------------------------------------------------------------- 1 | using System.IO; 2 | 3 | namespace UnityGLTF.Loader 4 | { 5 | public interface IDataLoader2 : IDataLoader 6 | { 7 | Stream LoadStream(string relativeFilePath); 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /Runtime/Scripts/Loader/IDataLoader2.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 88e0d77167dc3af489e57a17abcde939 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Scripts/Loader/ILoader.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.IO; 3 | using System.Threading.Tasks; 4 | 5 | namespace UnityGLTF.Loader 6 | { 7 | [Obsolete("Please switch to IDataLoader. This interface is deprecated and will be removed in a future release.")] 8 | public interface ILoader 9 | { 10 | Task LoadStream(string relativeFilePath); 11 | 12 | void LoadStreamSync(string jsonFilePath); 13 | 14 | Stream LoadedStream { get; } 15 | 16 | bool HasSyncLoadMethod { get; } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /Runtime/Scripts/Loader/ILoader.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ba15ab25bba758f4e8867413d5011747 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Scripts/Loader/LegacyLoaderWrapper.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0ca569386b974e44d8f914fdd0781b2a 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Scripts/Loader/StorageFolderLoader.cs: -------------------------------------------------------------------------------- 1 | #if WINDOWS_UWP 2 | using System.IO; 3 | using System.Threading.Tasks; 4 | using Windows.Storage; 5 | using System; 6 | using System.Collections; 7 | 8 | namespace UnityGLTF.Loader 9 | { 10 | public class StorageFolderLoader : IDataLoader 11 | { 12 | private StorageFolder _rootFolder; 13 | 14 | public StorageFolderLoader(StorageFolder rootFolder) 15 | { 16 | _rootFolder = rootFolder; 17 | } 18 | 19 | public async Task LoadStreamAsync(string relativeFilePath) 20 | { 21 | if (relativeFilePath == null) 22 | { 23 | throw new ArgumentNullException("relativeFilePath"); 24 | } 25 | 26 | StorageFolder parentFolder = _rootFolder; 27 | string fileName = Path.GetFileName(relativeFilePath); 28 | if (relativeFilePath != fileName) 29 | { 30 | string folderToLoad = relativeFilePath.Substring(0, relativeFilePath.Length - fileName.Length); 31 | parentFolder = await _rootFolder.GetFolderAsync(folderToLoad); 32 | } 33 | 34 | StorageFile bufferFile = await parentFolder.GetFileAsync(fileName); 35 | return await bufferFile.OpenStreamForReadAsync(); 36 | } 37 | } 38 | } 39 | #endif 40 | -------------------------------------------------------------------------------- /Runtime/Scripts/Loader/StorageFolderLoader.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8e7fd7d6556ddd446903db465957f23d 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Scripts/Loader/UnityWebRequestLoader.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f570680f27e849d59aeaa47194bfa5e4 3 | timeCreated: 1650878357 -------------------------------------------------------------------------------- /Runtime/Scripts/Loader/WebRequestLoader.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 23ded4d709de5b543811a96389760fc9 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Scripts/MemoryChecker.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4bde1c330cae17541b9fb48d321d1722 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Scripts/Plugins.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b0082405b7ab43c5ab6ace100b9b813c 3 | timeCreated: 1680099849 -------------------------------------------------------------------------------- /Runtime/Scripts/Plugins/AnimationPointer.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: bdaa28f0f907479faf8ffcc4e5233a12 3 | timeCreated: 1708087054 -------------------------------------------------------------------------------- /Runtime/Scripts/Plugins/AnimationPointer/AnimationPointerUtilities.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 26f0996784b744b3a0d324be1c95fe4f 3 | timeCreated: 1707897204 -------------------------------------------------------------------------------- /Runtime/Scripts/Plugins/AnimationPointer/MaterialPropertiesRemapper.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e35adb0d169a4046908867445f09f321 3 | timeCreated: 1708078060 -------------------------------------------------------------------------------- /Runtime/Scripts/Plugins/AnimationPointerExport.cs: -------------------------------------------------------------------------------- 1 | namespace UnityGLTF.Plugins 2 | { 3 | public class AnimationPointerExport: GLTFExportPlugin 4 | { 5 | public override string DisplayName => "KHR_animation_pointer"; 6 | public override string Description => "Animate arbitrary material and object properties. Without this extension, only node transforms and blend shape weights can be animated."; 7 | public override bool EnabledByDefault => false; 8 | public override GLTFExportPluginContext CreateInstance(ExportContext context) 9 | { 10 | return new AnimationPointerExportContext(); 11 | } 12 | } 13 | 14 | public class AnimationPointerExportContext: GLTFExportPluginContext 15 | { 16 | public MaterialPropertiesRemapper materialPropertiesRemapper = new DefaultMaterialPropertiesRemapper(); 17 | 18 | } 19 | } -------------------------------------------------------------------------------- /Runtime/Scripts/Plugins/AnimationPointerExport.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b6d87ebf60834245a388cd150253839d 3 | timeCreated: 1703957422 -------------------------------------------------------------------------------- /Runtime/Scripts/Plugins/AnimationPointerImport.cs: -------------------------------------------------------------------------------- 1 | namespace UnityGLTF.Plugins 2 | { 3 | public class AnimationPointerImport: GLTFImportPlugin 4 | { 5 | public override string DisplayName => "KHR_animation_pointer"; 6 | public override string Description => "Animate arbitrary material and object properties. Without this extension, only node transforms and blend shape weights can be animated."; 7 | public override GLTFImportPluginContext CreateInstance(GLTFImportContext context) 8 | { 9 | return new AnimationPointerImportContext(); 10 | } 11 | } 12 | 13 | public class AnimationPointerImportContext: GLTFImportPluginContext 14 | { 15 | public MaterialPropertiesRemapper materialPropertiesRemapper = new DefaultMaterialPropertiesRemapper(); 16 | } 17 | } -------------------------------------------------------------------------------- /Runtime/Scripts/Plugins/AnimationPointerImport.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 473c2b5b3de547139304b32beee641e9 3 | timeCreated: 1707313653 -------------------------------------------------------------------------------- /Runtime/Scripts/Plugins/Core.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0aa753fd433dc4cc4933f4b43459a873 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Runtime/Scripts/Plugins/Core/GltfExportPlugin.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 201693f491d641c3a7bf53d98828d59c 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Scripts/Plugins/Core/GltfImportPlugin.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 39aa6324e7624d7ea0267a95b9674acf 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Scripts/Plugins/Core/GltfPlugin.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: faaa3712025f4258a16c9afa9e8d1fc6 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Scripts/Plugins/Core/ImportContext.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3497775620ef4c43ac76fe78a742ca2a 3 | timeCreated: 1680100208 -------------------------------------------------------------------------------- /Runtime/Scripts/Plugins/DracoImport.cs: -------------------------------------------------------------------------------- 1 | namespace UnityGLTF.Plugins 2 | { 3 | public class DracoImport: GLTFImportPlugin 4 | { 5 | public override string DisplayName => "KHR_draco_mesh_compression"; 6 | public override string Description => "Import Draco compressed meshes."; 7 | public override GLTFImportPluginContext CreateInstance(GLTFImportContext context) 8 | { 9 | return new DracoImportContext(); 10 | } 11 | 12 | #if !HAVE_DRACO 13 | public override string Warning => "Add the package \"com.unity.cloud.draco\" to your project for Draco mesh compression support."; 14 | #endif 15 | } 16 | 17 | public class DracoImportContext: GLTFImportPluginContext 18 | { 19 | 20 | } 21 | } -------------------------------------------------------------------------------- /Runtime/Scripts/Plugins/DracoImport.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7dca6a7cdc544a17b19918041bc59d14 3 | timeCreated: 1703892466 -------------------------------------------------------------------------------- /Runtime/Scripts/Plugins/Experimental.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3abd74a78266947acb96ee4c1b7ff93c 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Runtime/Scripts/Plugins/Experimental/BakeParticleSystem.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c85d7bc6d6ea44f46b33f0a3a2e09283 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Scripts/Plugins/Experimental/CanvasExport.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3d9fe28b7eb945fd891714c55c74f44b 3 | timeCreated: 1664451353 -------------------------------------------------------------------------------- /Runtime/Scripts/Plugins/Experimental/CanvasExportCaptureMeshHelper.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 74f17c23d26fc3f469ad0bb0f2ff2237 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Scripts/Plugins/Experimental/Invisible.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4fd675a64a0d669448460be9768e61ab 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 2100000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Runtime/Scripts/Plugins/Experimental/MaterialVariants.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: bda4e310a4dae1642ae372dca6c294a1 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Scripts/Plugins/Experimental/MaterialVariantsPlugin.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5066402b4fbd41e79ab3d7023cca96c5 3 | timeCreated: 1703886219 -------------------------------------------------------------------------------- /Runtime/Scripts/Plugins/Experimental/TextMeshGameObjectExport.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5dd4c08c7d6d71f4ca7d83fb653d4f9b 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Scripts/Plugins/Experimental/UnityGLTF.Plugins.Experimental.asmdef: -------------------------------------------------------------------------------- 1 | { 2 | "name": "UnityGLTF.Plugins.Experimental", 3 | "rootNamespace": "", 4 | "references": [ 5 | "GUID:6055be8ebefd69e48b49212b09b47b2f", 6 | "GUID:18d18f811ba286c49814567a3cfba688", 7 | "GUID:40f39bff7bc9be34182ebe488fcf8228" 8 | ], 9 | "includePlatforms": [], 10 | "excludePlatforms": [], 11 | "allowUnsafeCode": false, 12 | "overrideReferences": true, 13 | "precompiledReferences": [ 14 | "Newtonsoft.Json.dll" 15 | ], 16 | "autoReferenced": false, 17 | "defineConstraints": [], 18 | "versionDefines": [ 19 | { 20 | "name": "com.unity.textmeshpro", 21 | "expression": "", 22 | "define": "HAVE_TMPRO" 23 | }, 24 | { 25 | "name": "com.unity.ugui", 26 | "expression": "2.0.0", 27 | "define": "HAVE_TMPRO" 28 | }, 29 | { 30 | "name": "Unity", 31 | "expression": "2022.3.11", 32 | "define": "UNITY_2022_3_11_OR_NEWER" 33 | } 34 | ], 35 | "noEngineReferences": false 36 | } -------------------------------------------------------------------------------- /Runtime/Scripts/Plugins/Experimental/UnityGLTF.Plugins.Experimental.asmdef.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 78eed79366eb2824c853b25847bba69b 3 | AssemblyDefinitionImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Runtime/Scripts/Plugins/GPUInstancingImport.cs: -------------------------------------------------------------------------------- 1 | namespace UnityGLTF.Plugins 2 | { 3 | public class GPUInstancingImport: GLTFImportPlugin 4 | { 5 | public override string DisplayName => "EXT_mesh_gpu_instancing"; 6 | public override string Description => "Imports GPU instancing."; 7 | public override GLTFImportPluginContext CreateInstance(GLTFImportContext context) 8 | { 9 | return new GPUInstancingImportContext(); 10 | } 11 | } 12 | 13 | public class GPUInstancingImportContext: GLTFImportPluginContext 14 | { 15 | 16 | } 17 | } -------------------------------------------------------------------------------- /Runtime/Scripts/Plugins/GPUInstancingImport.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 056f401eae1a4f76b6f580ebf76127a9 3 | timeCreated: 1708680719 -------------------------------------------------------------------------------- /Runtime/Scripts/Plugins/Ktx2Import.cs: -------------------------------------------------------------------------------- 1 | namespace UnityGLTF.Plugins 2 | { 3 | public class Ktx2Import: GLTFImportPlugin 4 | { 5 | public override string DisplayName => "KHR_texture_basisu"; 6 | public override string Description => "Import textures using the KTX2 supercompression format (ETC1S, UASTC)."; 7 | public override GLTFImportPluginContext CreateInstance(GLTFImportContext context) 8 | { 9 | return new Ktx2ImportContext(); 10 | } 11 | 12 | #if !HAVE_KTX 13 | public override string Warning => "Add the package \"com.unity.cloud.ktx\" version v1.3+ to your project for KTX2 texture support."; 14 | #endif 15 | } 16 | 17 | public class Ktx2ImportContext: GLTFImportPluginContext 18 | { 19 | 20 | } 21 | } -------------------------------------------------------------------------------- /Runtime/Scripts/Plugins/Ktx2Import.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 969cbb3ac6864c2f9e49e468eef2744c 3 | timeCreated: 1703892479 -------------------------------------------------------------------------------- /Runtime/Scripts/Plugins/LightsPunctualExport.cs: -------------------------------------------------------------------------------- 1 | using GLTF.Schema; 2 | using UnityEngine; 3 | 4 | namespace UnityGLTF.Plugins 5 | { 6 | public class LightsPunctualExport: GLTFExportPlugin 7 | { 8 | public override string DisplayName => "KHR_lights_punctual"; 9 | public override string Description => "Exports punctual lights (directional, point, spot)."; 10 | public override GLTFExportPluginContext CreateInstance(ExportContext context) 11 | { 12 | return new LightsPunctualExportContext(); 13 | } 14 | } 15 | 16 | public class LightsPunctualExportContext: GLTFExportPluginContext 17 | { 18 | public override void AfterNodeExport(GLTFSceneExporter exporter, GLTFRoot gltfRoot, Transform transform, Node node) 19 | { 20 | base.AfterNodeExport(exporter, gltfRoot, transform, node); 21 | } 22 | } 23 | } -------------------------------------------------------------------------------- /Runtime/Scripts/Plugins/LightsPunctualExport.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3579a4c311b8427f81a0c1a29e9acfe8 3 | timeCreated: 1703975022 -------------------------------------------------------------------------------- /Runtime/Scripts/Plugins/LightsPunctualImport.cs: -------------------------------------------------------------------------------- 1 | namespace UnityGLTF.Plugins 2 | { 3 | public class LightsPunctualImport: GLTFImportPlugin 4 | { 5 | public override string DisplayName => "KHR_lights_punctual"; 6 | public override string Description => "Imports punctual lights (directional, point, spot)."; 7 | public override GLTFImportPluginContext CreateInstance(GLTFImportContext context) 8 | { 9 | return new LightsPunctualImportContext(); 10 | } 11 | } 12 | 13 | public class LightsPunctualImportContext: GLTFImportPluginContext 14 | { 15 | 16 | } 17 | } -------------------------------------------------------------------------------- /Runtime/Scripts/Plugins/LightsPunctualImport.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d48839dd2db84f9f94ec4e3bb77e9f9e 3 | timeCreated: 1703892336 -------------------------------------------------------------------------------- /Runtime/Scripts/Plugins/LodsExport.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e63c00ddf0924f0c8bd05f7f16935dfe 3 | timeCreated: 1675934327 -------------------------------------------------------------------------------- /Runtime/Scripts/Plugins/LodsImport.cs: -------------------------------------------------------------------------------- 1 | namespace UnityGLTF.Plugins 2 | { 3 | public class LodsImport: GLTFImportPlugin 4 | { 5 | public override string DisplayName => "MSFT_lod"; 6 | public override string Description => "Creates LODGroups from glTF LODs."; 7 | public override GLTFImportPluginContext CreateInstance(GLTFImportContext context) 8 | { 9 | return new LodsImportContext(); 10 | } 11 | } 12 | 13 | public class LodsImportContext: GLTFImportPluginContext 14 | { 15 | 16 | } 17 | } -------------------------------------------------------------------------------- /Runtime/Scripts/Plugins/LodsImport.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2239c10507484fb78bb19067a66500f2 3 | timeCreated: 1703892396 -------------------------------------------------------------------------------- /Runtime/Scripts/Plugins/MaterialExtensionsExport.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5152940c6ada2f3449baca5def38ea64 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Scripts/Plugins/MaterialExtensionsImport.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace UnityGLTF.Plugins 4 | { 5 | public class MaterialExtensionsImport: GLTFImportPlugin 6 | { 7 | public bool KHR_materials_ior = true; 8 | public bool KHR_materials_transmission = true; 9 | public bool KHR_materials_volume = true; 10 | public bool KHR_materials_iridescence = true; 11 | public bool KHR_materials_specular = true; 12 | public bool KHR_materials_clearcoat = true; 13 | public bool KHR_materials_sheen = true; 14 | [HideInInspector] // legacy 15 | public bool KHR_materials_pbrSpecularGlossiness = true; 16 | public bool KHR_materials_emissive_strength = true; 17 | 18 | public override string DisplayName => "KHR_materials_* PBR Next Extensions"; 19 | public override string Description => "Import support for various glTF material extensions."; 20 | public override GLTFImportPluginContext CreateInstance(GLTFImportContext context) 21 | { 22 | return new MaterialExtensionsImportContext(this); 23 | } 24 | } 25 | 26 | public class MaterialExtensionsImportContext : GLTFImportPluginContext 27 | { 28 | internal readonly MaterialExtensionsImport settings; 29 | 30 | public MaterialExtensionsImportContext(MaterialExtensionsImport materialExtensionsImport) 31 | { 32 | settings = materialExtensionsImport; 33 | } 34 | } 35 | } -------------------------------------------------------------------------------- /Runtime/Scripts/Plugins/MaterialExtensionsImport.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5d19ac0d23e84c248f196d1afbe9b9d0 3 | timeCreated: 1703890136 -------------------------------------------------------------------------------- /Runtime/Scripts/Plugins/MeshoptImport.cs: -------------------------------------------------------------------------------- 1 | namespace UnityGLTF.Plugins 2 | { 3 | public class MeshoptImport: GLTFImportPlugin 4 | { 5 | public override string DisplayName => "EXT_meshopt_compression"; 6 | public override string Description => "Import Meshopt compressed meshes."; 7 | public override GLTFImportPluginContext CreateInstance(GLTFImportContext context) 8 | { 9 | return new MeshoptImportContext(); 10 | } 11 | 12 | #if !HAVE_MESHOPT_DECOMPRESS 13 | public override string Warning => "Add the package \"com.unity.meshopt.decompress\" to your project for Meshopt compression support."; 14 | #endif 15 | } 16 | 17 | public class MeshoptImportContext: GLTFImportPluginContext 18 | { 19 | 20 | } 21 | } -------------------------------------------------------------------------------- /Runtime/Scripts/Plugins/MeshoptImport.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 837601ceb763400cadb3575e55885670 3 | timeCreated: 1703892474 -------------------------------------------------------------------------------- /Runtime/Scripts/Plugins/TextureTransformExport.cs: -------------------------------------------------------------------------------- 1 | namespace UnityGLTF.Plugins 2 | { 3 | public class TextureTransformExport: GLTFExportPlugin 4 | { 5 | public override string DisplayName => "KHR_texture_transform"; 6 | public override string Description => "Exports texture transforms (offset, scale, rotation)."; 7 | public override bool AlwaysEnabled => true; 8 | public override GLTFExportPluginContext CreateInstance(ExportContext context) 9 | { 10 | // always enabled 11 | return null; 12 | } 13 | } 14 | } -------------------------------------------------------------------------------- /Runtime/Scripts/Plugins/TextureTransformExport.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 984138db70144b97b48597182a21b46c 3 | timeCreated: 1703975131 -------------------------------------------------------------------------------- /Runtime/Scripts/Plugins/TextureTransformImport.cs: -------------------------------------------------------------------------------- 1 | namespace UnityGLTF.Plugins 2 | { 3 | public class TextureTransformImport: GLTFImportPlugin 4 | { 5 | public override string DisplayName => "KHR_texture_transform"; 6 | public override string Description => "Imports texture transforms (offset, scale, rotation)."; 7 | public override bool AlwaysEnabled => true; 8 | public override GLTFImportPluginContext CreateInstance(GLTFImportContext context) 9 | { 10 | // always enabled 11 | return null; 12 | } 13 | } 14 | } -------------------------------------------------------------------------------- /Runtime/Scripts/Plugins/TextureTransformImport.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 60bb1ecd8af04e0e864c773a2aaf6263 3 | timeCreated: 1703892310 -------------------------------------------------------------------------------- /Runtime/Scripts/Plugins/UnlitMaterialsExport.cs: -------------------------------------------------------------------------------- 1 | namespace UnityGLTF.Plugins 2 | { 3 | public class UnlitMaterialsExport: GLTFExportPlugin 4 | { 5 | public override string DisplayName => "KHR_materials_unlit"; 6 | public override string Description => "Exports unlit materials."; 7 | public override bool AlwaysEnabled => true; 8 | public override GLTFExportPluginContext CreateInstance(ExportContext context) 9 | { 10 | // always enabled 11 | return null; 12 | } 13 | } 14 | } -------------------------------------------------------------------------------- /Runtime/Scripts/Plugins/UnlitMaterialsExport.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9571021a85f04ddfb74e8aa5aad9cc5a 3 | timeCreated: 1703976148 -------------------------------------------------------------------------------- /Runtime/Scripts/Plugins/UnlitMaterialsImport.cs: -------------------------------------------------------------------------------- 1 | namespace UnityGLTF.Plugins 2 | { 3 | public class UnlitMaterialsImport: GLTFImportPlugin 4 | { 5 | public override string DisplayName => "KHR_materials_unlit"; 6 | public override string Description => "Imports unlit materials."; 7 | public override bool AlwaysEnabled => true; 8 | public override GLTFImportPluginContext CreateInstance(GLTFImportContext context) 9 | { 10 | // always enabled 11 | return null; 12 | } 13 | } 14 | } -------------------------------------------------------------------------------- /Runtime/Scripts/Plugins/UnlitMaterialsImport.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2d3bb2aeeab442db8c587d6e67450acc 3 | timeCreated: 1703892318 -------------------------------------------------------------------------------- /Runtime/Scripts/Plugins/VisibilityExport.cs: -------------------------------------------------------------------------------- 1 | using GLTF.Schema; 2 | 3 | namespace UnityGLTF.Plugins 4 | { 5 | public class VisibilityExport : GLTFExportPlugin 6 | { 7 | public override string DisplayName => KHR_node_visibility_Factory.EXTENSION_NAME; 8 | public override string Description => "Exports visibility of objects."; 9 | public override bool AlwaysEnabled => false; 10 | public override bool EnabledByDefault => false; 11 | public override GLTFExportPluginContext CreateInstance(ExportContext context) 12 | { 13 | // always enabled 14 | return null; 15 | } 16 | } 17 | } -------------------------------------------------------------------------------- /Runtime/Scripts/Plugins/VisibilityExport.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f2b6fa8618a247c3a77768773459dcd5 3 | timeCreated: 1731402026 -------------------------------------------------------------------------------- /Runtime/Scripts/Plugins/VisibilityImport.cs: -------------------------------------------------------------------------------- 1 | using GLTF.Schema; 2 | 3 | namespace UnityGLTF.Plugins 4 | { 5 | public class VisibilityImport: GLTFImportPlugin 6 | { 7 | public override string DisplayName => KHR_node_visibility_Factory.EXTENSION_NAME; 8 | public override string Description => "Imports visibility of objects"; 9 | public override bool AlwaysEnabled => true; 10 | public override GLTFImportPluginContext CreateInstance(GLTFImportContext context) 11 | { 12 | // always enabled 13 | return null; 14 | } 15 | 16 | } 17 | } -------------------------------------------------------------------------------- /Runtime/Scripts/Plugins/VisibilityImport.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 06b516fa9f5941be92bd6cecf2dd5ca5 3 | timeCreated: 1731402011 -------------------------------------------------------------------------------- /Runtime/Scripts/RenderPipelines.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 463af91555c2fdb479c0951afcf7a7d2 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Runtime/Scripts/RenderPipelines/RoughRefraction.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2b5788589ee445e45bf87cdf1ec6ee90 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Scripts/RenderPipelines/RoughRefractionFeature.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9aa176c7981ee2a469e664fd93f010b5 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Scripts/RenderPipelines/UnityGltf.RenderPipelines.asmdef: -------------------------------------------------------------------------------- 1 | { 2 | "name": "UnityGltf.RenderPipelines", 3 | "references": [ 4 | "GUID:15fc0a57446b3144c949da3e2b9737a9", 5 | "GUID:df380645f10b7bc4b97d4f5eb6303d95", 6 | "GUID:2bafac87e7f4b9b418d9448d219b01ab" 7 | ], 8 | "includePlatforms": [], 9 | "excludePlatforms": [], 10 | "allowUnsafeCode": false, 11 | "overrideReferences": true, 12 | "precompiledReferences": [], 13 | "autoReferenced": false, 14 | "defineConstraints": [ 15 | "UNITY_2020_3_OR_NEWER" 16 | ], 17 | "versionDefines": [ 18 | { 19 | "name": "com.unity.render-pipelines.universal", 20 | "expression": "12", 21 | "define": "HAVE_URP_12_OR_NEWER" 22 | }, 23 | { 24 | "name": "com.unity.render-pipelines.universal", 25 | "expression": "10", 26 | "define": "HAVE_URP_10_OR_NEWER" 27 | } 28 | ], 29 | "noEngineReferences": false 30 | } -------------------------------------------------------------------------------- /Runtime/Scripts/RenderPipelines/UnityGltf.RenderPipelines.asmdef.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fe848190f1a690142846fa6384b74e17 3 | AssemblyDefinitionImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Runtime/Scripts/SceneExporter.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 61f928488f87d3147ac6bcad15cf6ea1 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Runtime/Scripts/SceneExporter/ExporterAccessors.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 47321deab892e9044bb9d4a193a41208 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Scripts/SceneExporter/ExporterAnimation.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a4e5800392410254a94542e26677d4e1 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Scripts/SceneExporter/ExporterAnimationHumanoid.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 16ea658e76ce4a14b5ef14d825c52147 3 | timeCreated: 1662914636 -------------------------------------------------------------------------------- /Runtime/Scripts/SceneExporter/ExporterAnimationPointer.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 23441437ac77a884d83d8ae32ae8b705 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Scripts/SceneExporter/ExporterCameras.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 44a8dfd50fa642f4baf09232690eeab2 3 | timeCreated: 1657013996 -------------------------------------------------------------------------------- /Runtime/Scripts/SceneExporter/ExporterLights.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 122e3cac6af1417c88b9cb6b6d91b933 3 | timeCreated: 1657013984 -------------------------------------------------------------------------------- /Runtime/Scripts/SceneExporter/ExporterMaterials.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e09c9ec7a50e4331bd773f4c54f1b9ab 3 | timeCreated: 1657010581 -------------------------------------------------------------------------------- /Runtime/Scripts/SceneExporter/ExporterMeshes.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6bd3287ee078412b83c46ff0e7af9c6b 3 | timeCreated: 1657013770 -------------------------------------------------------------------------------- /Runtime/Scripts/SceneExporter/ExporterSkinning.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fb74840032dc4385aea8ea2f67c3d17e 3 | timeCreated: 1657012764 -------------------------------------------------------------------------------- /Runtime/Scripts/SceneExporter/ExporterTextures.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e2d7fb34285a479db4c18291fe881855 3 | timeCreated: 1657010903 -------------------------------------------------------------------------------- /Runtime/Scripts/SceneImporter.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4903dfef32b84dd2862485b344995895 3 | timeCreated: 1657012079 -------------------------------------------------------------------------------- /Runtime/Scripts/SceneImporter/BlendShapeFrameWeightSetting.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9df89f3f8d3645f3b4150e95b864974d 3 | timeCreated: 1706174663 -------------------------------------------------------------------------------- /Runtime/Scripts/SceneImporter/GLTFImporterNormals.cs: -------------------------------------------------------------------------------- 1 | #if UNITY_2017_1_OR_NEWER 2 | namespace UnityGLTF 3 | { 4 | public enum GLTFImporterNormals 5 | { 6 | Import, 7 | Calculate, 8 | None 9 | } 10 | } 11 | #endif 12 | -------------------------------------------------------------------------------- /Runtime/Scripts/SceneImporter/GLTFImporterNormals.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f3961a7b54dd64330a1228d3aa9993c0 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Scripts/SceneImporter/ImporterAnimation.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 20eade7af2db4b06a0d23b23c3a83c47 3 | timeCreated: 1657012127 -------------------------------------------------------------------------------- /Runtime/Scripts/SceneImporter/ImporterCameras.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4bce81583cdc4b5b831072f00b368b09 3 | timeCreated: 1713049096 -------------------------------------------------------------------------------- /Runtime/Scripts/SceneImporter/ImporterLODs.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fe34f290cdf64038ad7d60c706251109 3 | timeCreated: 1675772109 -------------------------------------------------------------------------------- /Runtime/Scripts/SceneImporter/ImporterLights.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7b547db626e3430c87fe1e060a131222 3 | timeCreated: 1657014645 -------------------------------------------------------------------------------- /Runtime/Scripts/SceneImporter/ImporterMaterials.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 25e2614154434641a15540a7203e47f6 3 | timeCreated: 1657012132 -------------------------------------------------------------------------------- /Runtime/Scripts/SceneImporter/ImporterMeshes.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7f4930a0205140bbbcfaa67b79ab587b 3 | timeCreated: 1657013019 -------------------------------------------------------------------------------- /Runtime/Scripts/SceneImporter/ImporterSkinning.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: cef61a6932d545e0aca7bb7cd4a819db 3 | timeCreated: 1657012769 -------------------------------------------------------------------------------- /Runtime/Scripts/SceneImporter/ImporterTextures.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 859436f420e4466daa129c3fc03f4480 3 | timeCreated: 1657012139 -------------------------------------------------------------------------------- /Runtime/Scripts/SceneImporter/MaterialLibrary.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace UnityGLTF 4 | { 5 | public class MaterialLibrary: ScriptableObject { } 6 | } -------------------------------------------------------------------------------- /Runtime/Scripts/SceneImporter/MaterialLibrary.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: dae4451576d948249604afd3847354bb 3 | timeCreated: 1727343650 -------------------------------------------------------------------------------- /Runtime/Scripts/SceneImporter/NormalMapEncodingConverter.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 870ecf89bfc64980a38e2977a56943bb 3 | timeCreated: 1705055769 -------------------------------------------------------------------------------- /Runtime/Scripts/SceneImporter/UnityMeshData.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5142460d60f647e0b377dd3cc0c0a909 3 | timeCreated: 1724924750 -------------------------------------------------------------------------------- /Runtime/Scripts/Timeline.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: bab39c7055582594da14a45f4b1bebf1 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Runtime/Scripts/Timeline/GLTFRecorder.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5c86ab342c27009409e8735873d51306 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Scripts/Timeline/GLTFRecorderBehaviour.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5c90c158375298a4b931f2f013dbf111 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Scripts/Timeline/GLTFRecorderClip.cs: -------------------------------------------------------------------------------- 1 | #if HAVE_TIMELINE 2 | 3 | using UnityEngine; 4 | using UnityEngine.Playables; 5 | using UnityEngine.Timeline; 6 | 7 | namespace UnityGLTF.Timeline 8 | { 9 | [System.ComponentModel.DisplayName("glTF Recorder Clip")] 10 | public class GLTFRecorderClip : PlayableAsset, ITimelineClipAsset 11 | { 12 | public ExposedReference m_exportRoot; 13 | public string m_File = "Assets/Recording.glb"; 14 | public string m_AnimationName = "Recording"; 15 | public int m_CaptureFrameRate = 60; 16 | public bool m_RecordBlendShapes = true; 17 | [Tooltip("Enable the KHR_animation_pointer extension. This allows recording material and script properties, but is not supported in all viewers.")] 18 | public bool m_RecordAnimationPointer = false; 19 | 20 | public override Playable CreatePlayable(PlayableGraph graph, GameObject owner) 21 | { 22 | var ret = ScriptPlayable.Create(graph); 23 | var behaviour = ret.GetBehaviour(); 24 | behaviour.Clip = this; // TOD check if needed 25 | return ret; 26 | } 27 | 28 | public ClipCaps clipCaps { get; } 29 | 30 | public Transform GetExportRoot(PlayableGraph graph) 31 | { 32 | return m_exportRoot.Resolve(graph.GetResolver()); 33 | } 34 | } 35 | } 36 | 37 | #endif 38 | -------------------------------------------------------------------------------- /Runtime/Scripts/Timeline/GLTFRecorderClip.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a7ec2229f5635a54cbc23eec87b45654 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Scripts/Timeline/GLTFRecorderHelper.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fba5af8565ac464587d0d4663f151239 3 | timeCreated: 1646945202 -------------------------------------------------------------------------------- /Runtime/Scripts/Timeline/GLTFRecorderTrack.cs: -------------------------------------------------------------------------------- 1 | #if HAVE_TIMELINE 2 | 3 | using UnityEngine.Timeline; 4 | 5 | namespace UnityGLTF.Timeline 6 | { 7 | [System.Serializable] 8 | [TrackClipType(typeof(GLTFRecorderClip))] 9 | [TrackColor(0.7f, 0.0f, 0.0f)] 10 | public class GLTFRecorderTrack : TrackAsset 11 | { 12 | 13 | } 14 | } 15 | 16 | #endif 17 | -------------------------------------------------------------------------------- /Runtime/Scripts/Timeline/GLTFRecorderTrack.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5f4885dbb1716a34b84ab7851fb37ccd 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Scripts/URIHelper.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7e054efee73873a4b85a7a9180e6fbf2 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Scripts/UniformMaps.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e766804828a966240ab9d312c8abb342 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Runtime/Scripts/UniformMaps/BaseGraphMap.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3453f34a8c4d4d4b86685f873378869c 3 | timeCreated: 1657891795 -------------------------------------------------------------------------------- /Runtime/Scripts/UniformMaps/MetalRough2StandardMap.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 85ac6cc1932e01e4983730c9ffe91e06 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Scripts/UniformMaps/MetalRoughMap.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: eae97d9d46055684097402095ac8fcb6 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Scripts/UniformMaps/PBRGraphMap.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e3702d621b762aa4081cbc83b8349d31 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Scripts/UniformMaps/SpecGloss2StandardMap.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e4ff65c43d5c3774f90e67670d589cd0 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Scripts/UniformMaps/SpecGlossMap.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace UnityGLTF 4 | { 5 | public class SpecGlossMap : SpecGloss2StandardMap 6 | { 7 | public SpecGlossMap(int MaxLOD = 1000) : base("GLTF/PbrSpecularGlossiness", "0ffe2976cdefd434c8fcd886ffa69322", MaxLOD) { } 8 | public SpecGlossMap(string shaderName, int MaxLOD = 1000) : base(shaderName, "0ffe2976cdefd434c8fcd886ffa69322", MaxLOD) { } 9 | protected SpecGlossMap(Material m, int MaxLOD = 1000) : base(m, MaxLOD) { } 10 | 11 | public override int NormalTexCoord 12 | { 13 | get { return 0; } 14 | set { return; } 15 | } 16 | 17 | public override int OcclusionTexCoord 18 | { 19 | get { return 0; } 20 | set { return; } 21 | } 22 | 23 | public override int EmissiveTexCoord 24 | { 25 | get { return 0; } 26 | set { return; } 27 | } 28 | 29 | public override int DiffuseTexCoord 30 | { 31 | get { return 0; } 32 | set { return; } 33 | } 34 | 35 | public override int SpecularGlossinessTexCoord 36 | { 37 | get { return 0; } 38 | set { return; } 39 | } 40 | 41 | public override IUniformMap Clone() 42 | { 43 | var copy = new SpecGlossMap(new Material(_material)); 44 | base.Copy(copy); 45 | return copy; 46 | } 47 | } 48 | } 49 | -------------------------------------------------------------------------------- /Runtime/Scripts/UniformMaps/SpecGlossMap.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0f096c5198ea17245803d827b00f12b8 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Scripts/UniformMaps/StandardMap.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4f9ec0afbd86788428f96c503a122ba6 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Scripts/UniformMaps/UniformMap.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 35a1bb8c3d231b0449dcb049debee71a 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Scripts/UniformMaps/UnlitGraphMap.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace UnityGLTF 4 | { 5 | public class UnlitGraphMap : BaseGraphMap, IUnlitUniformMap 6 | { 7 | internal const string UnlitGraphGuid = "59541e6caf586ca4f96ccf48a4813a51"; 8 | public UnlitGraphMap() : this("UnityGLTF/UnlitGraph") {} 9 | 10 | #if !UNITY_2021_1_OR_NEWER 11 | private const string UnlitGraphTransparentGuid = "83f2caca07949794fb997734c4b0520f"; 12 | private const string UnlitGraphTransparentDoubleGuid = "8a8841b4fb2f63644896f4e2b36bc06d"; 13 | private const string UnlitGraphDoubleGuid = "33ee70a7f505ddb4e80d235c3d70766d"; 14 | 15 | public UnlitGraphMap(bool transparent, bool doubleSided) : base( 16 | "UnityGLTF/UnlitGraph" + (transparent ? "-Transparent" : "") + (doubleSided ? "-Double" : ""), 17 | (transparent && doubleSided ? UnlitGraphTransparentDoubleGuid : transparent ? UnlitGraphTransparentGuid : doubleSided ? UnlitGraphDoubleGuid : UnlitGraphGuid)) { } 18 | #endif 19 | 20 | protected UnlitGraphMap(string shaderName) : base(shaderName, UnlitGraphGuid) { } 21 | 22 | public UnlitGraphMap(Material mat) : base(mat) { } 23 | 24 | public override IUniformMap Clone() 25 | { 26 | var clone = new UnlitGraphMap(new Material(_material)); 27 | clone.Material.shaderKeywords = _material.shaderKeywords; 28 | return clone; 29 | } 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /Runtime/Scripts/UniformMaps/UnlitGraphMap.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a3f20bde7da344549f9b68b6cf264b36 3 | timeCreated: 1657891307 -------------------------------------------------------------------------------- /Runtime/Scripts/UniformMaps/UnlitMap.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6ab9be6bfd7090247a61992f7b8f8adb 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Runtime/Shaders.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d02c75d6fa599b74187404ac51b51391 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Runtime/Shaders/PbrMetallicRoughness.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9836e4430eb58204086d7d1440e16a4f 3 | ShaderImporter: 4 | externalObjects: {} 5 | defaultTextures: [] 6 | nonModifiableTextures: [] 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Runtime/Shaders/PbrSpecularGlossiness.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0ffe2976cdefd434c8fcd886ffa69322 3 | ShaderImporter: 4 | externalObjects: {} 5 | defaultTextures: [] 6 | nonModifiableTextures: [] 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Runtime/Shaders/ShaderGraph.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6e32829a2d4263447b87ba7c367e5410 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Runtime/Shaders/ShaderGraph/2020-Legacy.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 036670886f7d6664b84a5053642f0ad0 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Runtime/Shaders/ShaderGraph/2020-Legacy/PBRGraph-Double.override-graph: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prefrontalcortex/UnityGLTF/f958bf71824fb36c5b55bf0b52310bc7392e156e/Runtime/Shaders/ShaderGraph/2020-Legacy/PBRGraph-Double.override-graph -------------------------------------------------------------------------------- /Runtime/Shaders/ShaderGraph/2020-Legacy/PBRGraph-Double.override-graph.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8bc739b14fe811644abb82057b363ba8 3 | ScriptedImporter: 4 | internalIDToNameTable: [] 5 | externalObjects: {} 6 | serializedVersion: 2 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | script: {fileID: 11500000, guid: fe431e399c52971408121c6c40cde979, type: 3} 11 | sourceShader: {fileID: -6465566751694194690, guid: 478ce3626be7a5f4ea58d6b13f05a2e4, type: 3} 12 | upgradeShader: {fileID: 4800000, guid: 86f94ec63222e22449b77b92fcf1edc8, type: 3} 13 | forceTransparent: 0 14 | forceDoublesided: 1 15 | hideShader: 1 16 | -------------------------------------------------------------------------------- /Runtime/Shaders/ShaderGraph/2020-Legacy/PBRGraph-Transparent-Double.override-graph: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prefrontalcortex/UnityGLTF/f958bf71824fb36c5b55bf0b52310bc7392e156e/Runtime/Shaders/ShaderGraph/2020-Legacy/PBRGraph-Transparent-Double.override-graph -------------------------------------------------------------------------------- /Runtime/Shaders/ShaderGraph/2020-Legacy/PBRGraph-Transparent-Double.override-graph.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 54352a53405971b41a6587615f947085 3 | ScriptedImporter: 4 | internalIDToNameTable: [] 5 | externalObjects: {} 6 | serializedVersion: 2 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | script: {fileID: 11500000, guid: fe431e399c52971408121c6c40cde979, type: 3} 11 | sourceShader: {fileID: -6465566751694194690, guid: 478ce3626be7a5f4ea58d6b13f05a2e4, type: 3} 12 | upgradeShader: {fileID: 4800000, guid: 86f94ec63222e22449b77b92fcf1edc8, type: 3} 13 | forceTransparent: 1 14 | forceDoublesided: 1 15 | hideShader: 1 16 | -------------------------------------------------------------------------------- /Runtime/Shaders/ShaderGraph/2020-Legacy/PBRGraph-Transparent.override-graph: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prefrontalcortex/UnityGLTF/f958bf71824fb36c5b55bf0b52310bc7392e156e/Runtime/Shaders/ShaderGraph/2020-Legacy/PBRGraph-Transparent.override-graph -------------------------------------------------------------------------------- /Runtime/Shaders/ShaderGraph/2020-Legacy/PBRGraph-Transparent.override-graph.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0a931320a74ca574b91d2d7d4557dcf1 3 | ScriptedImporter: 4 | internalIDToNameTable: [] 5 | externalObjects: {} 6 | serializedVersion: 2 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | script: {fileID: 11500000, guid: fe431e399c52971408121c6c40cde979, type: 3} 11 | sourceShader: {fileID: -6465566751694194690, guid: 478ce3626be7a5f4ea58d6b13f05a2e4, type: 3} 12 | upgradeShader: {fileID: 4800000, guid: 86f94ec63222e22449b77b92fcf1edc8, type: 3} 13 | forceTransparent: 1 14 | forceDoublesided: 0 15 | hideShader: 1 16 | -------------------------------------------------------------------------------- /Runtime/Shaders/ShaderGraph/2020-Legacy/UnlitGraph-Double.override-graph: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prefrontalcortex/UnityGLTF/f958bf71824fb36c5b55bf0b52310bc7392e156e/Runtime/Shaders/ShaderGraph/2020-Legacy/UnlitGraph-Double.override-graph -------------------------------------------------------------------------------- /Runtime/Shaders/ShaderGraph/2020-Legacy/UnlitGraph-Double.override-graph.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 33ee70a7f505ddb4e80d235c3d70766d 3 | ScriptedImporter: 4 | internalIDToNameTable: [] 5 | externalObjects: {} 6 | serializedVersion: 2 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | script: {fileID: 11500000, guid: fe431e399c52971408121c6c40cde979, type: 3} 11 | sourceShader: {fileID: -6465566751694194690, guid: 59541e6caf586ca4f96ccf48a4813a51, type: 3} 12 | upgradeShader: {fileID: 4800000, guid: 86f94ec63222e22449b77b92fcf1edc8, type: 3} 13 | forceTransparent: 0 14 | forceDoublesided: 1 15 | hideShader: 1 16 | -------------------------------------------------------------------------------- /Runtime/Shaders/ShaderGraph/2020-Legacy/UnlitGraph-Transparent-Double.override-graph: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prefrontalcortex/UnityGLTF/f958bf71824fb36c5b55bf0b52310bc7392e156e/Runtime/Shaders/ShaderGraph/2020-Legacy/UnlitGraph-Transparent-Double.override-graph -------------------------------------------------------------------------------- /Runtime/Shaders/ShaderGraph/2020-Legacy/UnlitGraph-Transparent-Double.override-graph.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8a8841b4fb2f63644896f4e2b36bc06d 3 | ScriptedImporter: 4 | internalIDToNameTable: [] 5 | externalObjects: {} 6 | serializedVersion: 2 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | script: {fileID: 11500000, guid: fe431e399c52971408121c6c40cde979, type: 3} 11 | sourceShader: {fileID: -6465566751694194690, guid: 59541e6caf586ca4f96ccf48a4813a51, type: 3} 12 | upgradeShader: {fileID: 4800000, guid: 86f94ec63222e22449b77b92fcf1edc8, type: 3} 13 | forceTransparent: 1 14 | forceDoublesided: 1 15 | hideShader: 1 16 | -------------------------------------------------------------------------------- /Runtime/Shaders/ShaderGraph/2020-Legacy/UnlitGraph-Transparent.override-graph: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prefrontalcortex/UnityGLTF/f958bf71824fb36c5b55bf0b52310bc7392e156e/Runtime/Shaders/ShaderGraph/2020-Legacy/UnlitGraph-Transparent.override-graph -------------------------------------------------------------------------------- /Runtime/Shaders/ShaderGraph/2020-Legacy/UnlitGraph-Transparent.override-graph.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 83f2caca07949794fb997734c4b0520f 3 | ScriptedImporter: 4 | internalIDToNameTable: [] 5 | externalObjects: {} 6 | serializedVersion: 2 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | script: {fileID: 11500000, guid: fe431e399c52971408121c6c40cde979, type: 3} 11 | sourceShader: {fileID: -6465566751694194690, guid: 59541e6caf586ca4f96ccf48a4813a51, type: 3} 12 | upgradeShader: {fileID: 4800000, guid: 86f94ec63222e22449b77b92fcf1edc8, type: 3} 13 | forceTransparent: 1 14 | forceDoublesided: 0 15 | hideShader: 1 16 | -------------------------------------------------------------------------------- /Runtime/Shaders/ShaderGraph/CustomSampleNormalMap.shadersubgraph.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e3a9c28adc9ece042a6141bad8ecc47c 3 | ScriptedImporter: 4 | internalIDToNameTable: [] 5 | externalObjects: {} 6 | serializedVersion: 2 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | script: {fileID: 11500000, guid: 60072b568d64c40a485e0fc55012dc9f, type: 3} 11 | -------------------------------------------------------------------------------- /Runtime/Shaders/ShaderGraph/IORTransmission.shadersubgraph.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 36589661baa026a488fc295f85123e57 3 | ScriptedImporter: 4 | internalIDToNameTable: [] 5 | externalObjects: {} 6 | serializedVersion: 2 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | script: {fileID: 11500000, guid: 60072b568d64c40a485e0fc55012dc9f, type: 3} 11 | -------------------------------------------------------------------------------- /Runtime/Shaders/ShaderGraph/MaterialXColor.shadersubgraph.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ecd8fe7a9dd0c844987e0e6f5dbca66b 3 | ScriptedImporter: 4 | internalIDToNameTable: [] 5 | externalObjects: {} 6 | serializedVersion: 2 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | script: {fileID: 11500000, guid: 60072b568d64c40a485e0fc55012dc9f, type: 3} 11 | -------------------------------------------------------------------------------- /Runtime/Shaders/ShaderGraph/MaterialXFloat.shadersubgraph.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 23cb9569ab894e84991a92e0d19a08f1 3 | ScriptedImporter: 4 | internalIDToNameTable: [] 5 | externalObjects: {} 6 | serializedVersion: 2 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | script: {fileID: 11500000, guid: 60072b568d64c40a485e0fc55012dc9f, type: 3} 11 | -------------------------------------------------------------------------------- /Runtime/Shaders/ShaderGraph/PBRGraph.shadergraph.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 478ce3626be7a5f4ea58d6b13f05a2e4 3 | ScriptedImporter: 4 | internalIDToNameTable: [] 5 | externalObjects: {} 6 | serializedVersion: 2 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | script: {fileID: 11500000, guid: 625f186215c104763be7675aa2d941aa, type: 3} 11 | -------------------------------------------------------------------------------- /Runtime/Shaders/ShaderGraph/PBRHelpers.cginc.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 885a3662fbaba7c47979790356264411 3 | ShaderIncludeImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Runtime/Shaders/ShaderGraph/Sheen.shadersubgraph.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 85ba8322ac6cb6c4aab962530c987fc0 3 | ScriptedImporter: 4 | internalIDToNameTable: [] 5 | externalObjects: {} 6 | serializedVersion: 2 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | script: {fileID: 11500000, guid: 60072b568d64c40a485e0fc55012dc9f, type: 3} 11 | -------------------------------------------------------------------------------- /Runtime/Shaders/ShaderGraph/TextureTransform.shadersubgraph.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8ecb70019a63796448768b1124086ef5 3 | ScriptedImporter: 4 | internalIDToNameTable: [] 5 | externalObjects: {} 6 | serializedVersion: 2 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | script: {fileID: 11500000, guid: 60072b568d64c40a485e0fc55012dc9f, type: 3} 11 | -------------------------------------------------------------------------------- /Runtime/Shaders/ShaderGraph/UnlitGraph.shadergraph.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 59541e6caf586ca4f96ccf48a4813a51 3 | ScriptedImporter: 4 | internalIDToNameTable: [] 5 | externalObjects: {} 6 | serializedVersion: 2 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | script: {fileID: 11500000, guid: 625f186215c104763be7675aa2d941aa, type: 3} 11 | -------------------------------------------------------------------------------- /Runtime/Shaders/UnityStandardInput.cginc.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2e41f417e6564ab40b7c213e7ebe5183 3 | ShaderImporter: 4 | externalObjects: {} 5 | defaultTextures: [] 6 | nonModifiableTextures: [] 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Runtime/Shaders/UnityStandardShadow.cginc.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 186b7b45309a8964e99df9437a41271e 3 | ShaderImporter: 4 | externalObjects: {} 5 | defaultTextures: [] 6 | nonModifiableTextures: [] 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Runtime/Shaders/Unlit.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4d20effaf200f604db8b73f8e6a2e386 3 | ShaderImporter: 4 | externalObjects: {} 5 | defaultTextures: [] 6 | nonModifiableTextures: [] 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Runtime/Shaders/VariantCollections.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 89874c2de1f18446f9d96a3b6ce5acf0 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Runtime/Shaders/VariantCollections/UnityGLTFShaderVariantCollection-BiRP.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 504f02ace8ebc0d4cad8cdd76795eb04 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 20000000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Runtime/Shaders/VariantCollections/UnityGLTFShaderVariantCollection.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 720923435480c9147a45917af5150f7a 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 20000000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Runtime/Shaders/VertexColor.cginc.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a7df7fe42cec8834bbf64612f5d683b0 3 | ShaderImporter: 4 | externalObjects: {} 5 | defaultTextures: [] 6 | nonModifiableTextures: [] 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Runtime/UnityGLTFScripts.asmdef.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 18d18f811ba286c49814567a3cfba688 3 | AssemblyDefinitionImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Samples~/KHR_audio.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e8556c362185a487c92146598a143c7c 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Samples~/KHR_audio/AudioSourceScriptableObject.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace UnityGLTF.Plugins.Experimental 4 | { 5 | [CreateAssetMenu(fileName = "AudioSource", menuName = "UnityGLTF/KHR_audio/AudioSource", order = 1)] 6 | public class AudioSourceScriptableObject : ScriptableObject 7 | { 8 | public AudioClip clip; 9 | public float gain = 1.0f; 10 | public bool autoPlay = true; 11 | public bool loop = true; 12 | } 13 | } -------------------------------------------------------------------------------- /Samples~/KHR_audio/AudioSourceScriptableObject.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e0f78417310647de8dbcfd01ceab5eee 3 | timeCreated: 1703889181 -------------------------------------------------------------------------------- /Samples~/KHR_audio/KHRAudioPlugin.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 664d6e75fec3044eb9274db51fbb70da 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Samples~/KHR_audio/KHRAudioSchemas.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 41f754afffa448e4b451767beb58178e 3 | timeCreated: 1703888738 -------------------------------------------------------------------------------- /Samples~/KHR_audio/KHRGlobalAudioEmitterBehaviour.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | using UnityEngine; 3 | 4 | namespace UnityGLTF.Plugins.Experimental 5 | { 6 | public class KHRGlobalAudioEmitterBehaviour : MonoBehaviour 7 | { 8 | public List sources; 9 | public float gain = 1.0f; 10 | } 11 | } -------------------------------------------------------------------------------- /Samples~/KHR_audio/KHRGlobalAudioEmitterBehaviour.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3b79d559c5804cf9875b0d4a3d6d6b99 3 | timeCreated: 1703889073 -------------------------------------------------------------------------------- /Samples~/KHR_audio/KHRPositionalAudioEmitterBehaviour.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e1ccaea265644ccd83d78bbec6045999 3 | timeCreated: 1703888952 -------------------------------------------------------------------------------- /Samples~/KHR_audio/UnityGLTF.Plugins.KHR_audio.asmdef: -------------------------------------------------------------------------------- 1 | { 2 | "name": "UnityGLTF.Plugins.KHR_audio", 3 | "rootNamespace": "", 4 | "references": [ 5 | "GUID:18d18f811ba286c49814567a3cfba688", 6 | "GUID:40f39bff7bc9be34182ebe488fcf8228" 7 | ], 8 | "includePlatforms": [], 9 | "excludePlatforms": [], 10 | "allowUnsafeCode": false, 11 | "overrideReferences": true, 12 | "precompiledReferences": [ 13 | "Newtonsoft.Json.dll" 14 | ], 15 | "autoReferenced": false, 16 | "defineConstraints": [], 17 | "versionDefines": [], 18 | "noEngineReferences": false 19 | } -------------------------------------------------------------------------------- /Samples~/KHR_audio/UnityGLTF.Plugins.KHR_audio.asmdef.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 76673ba94a1121243b883a319da22cec 3 | AssemblyDefinitionImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Tests.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: efca4065c40d35e42a4f50c987a93318 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Tests/Assets.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5049c2c96b54dd1428aeac63530a41c1 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Tests/Assets/Animation.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a67a809dcd769564dadcf5cfe3474f2f 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Tests/Assets/Animation/AnimationA.anim.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 47f8840699648e9479082ce65db4b87f 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 7400000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Tests/Assets/Animation/AnimationB.anim.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e3f5e34e9e9a96b48bb505926753a220 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 7400000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Tests/Assets/Animation/AnimatorController.controller.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 93f375e40167ad14c81e25858e1f9ac1 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 9100000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Tests/Assets/Animation/SimpleAnimation.glb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/prefrontalcortex/UnityGLTF/f958bf71824fb36c5b55bf0b52310bc7392e156e/Tests/Assets/Animation/SimpleAnimation.glb -------------------------------------------------------------------------------- /Tests/Assets/Animation/SimpleAnimation.glb.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 941ea53b9d7aafa4886b8bdd2c0f2963 3 | importerOverride: UnityGLTFEditor:UnityGLTF:GLTFImporter 4 | ScriptedImporter: 5 | internalIDToNameTable: [] 6 | externalObjects: {} 7 | serializedVersion: 2 8 | userData: 9 | assetBundleName: 10 | assetBundleVariant: 11 | script: {fileID: 11500000, guid: 804e1ce4c496647cfa3f1a1134187c71, type: 3} 12 | _removeEmptyRootObjects: 1 13 | _scaleFactor: 1 14 | _maximumLod: 300 15 | _readWriteEnabled: 1 16 | _generateColliders: 0 17 | _swapUvs: 0 18 | _generateLightmapUVs: 0 19 | _importNormals: 0 20 | _importTangents: 0 21 | _importAnimations: 2 22 | _addAnimatorComponent: 0 23 | _animationLoopTime: 1 24 | _animationLoopPose: 0 25 | _importMaterials: 1 26 | _useSceneNameIdentifier: 1 27 | optimizeGameObjects: 0 28 | materials: 29 | - {fileID: 3297912226980038121, guid: 941ea53b9d7aafa4886b8bdd2c0f2963, type: 3} 30 | textures: [] 31 | hasSceneData: 1 32 | hasAnimationData: 1 33 | hasMaterialData: 1 34 | hasTextureData: 0 35 | animations: [] 36 | _extensions: [] 37 | _textures: [] 38 | _mainAssetIdentifier: scenes/SimpleAnimation 39 | -------------------------------------------------------------------------------- /Tests/Editor.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a668006c4a456da419e032798de345ff 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Tests/Editor/AssetImportTests.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 26ea85d3a06f28440b399cf8fa98cd09 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Tests/Editor/UnityGLTFTests.Editor.asmdef: -------------------------------------------------------------------------------- 1 | { 2 | "name": "UnityGLTFTests.Editor", 3 | "rootNamespace": "", 4 | "references": [ 5 | "UnityGLTFScripts", 6 | "UnityGLTFEditor", 7 | "GLTFSerialization", 8 | "UnityEngine.TestRunner", 9 | "UnityEditor.TestRunner" 10 | ], 11 | "includePlatforms": [ 12 | "Editor" 13 | ], 14 | "excludePlatforms": [], 15 | "allowUnsafeCode": false, 16 | "overrideReferences": true, 17 | "precompiledReferences": [ 18 | "GLTFSerialization.dll", 19 | "Newtonsoft.Json.dll", 20 | "nunit.framework.dll" 21 | ], 22 | "autoReferenced": false, 23 | "defineConstraints": [ 24 | "UNITY_INCLUDE_TESTS", 25 | "UNITY_2019_4_OR_NEWER" 26 | ], 27 | "versionDefines": [ 28 | { 29 | "name": "Select...", 30 | "expression": "0.0.0", 31 | "define": "HAVE_ASSET_GENERATOR" 32 | } 33 | ], 34 | "noEngineReferences": false 35 | } -------------------------------------------------------------------------------- /Tests/Editor/UnityGLTFTests.Editor.asmdef.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7082da890b1266f4f9f1ec41ec6b7d7a 3 | AssemblyDefinitionImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Tests/Runtime.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5783cb7e53a767047b9bbec12c1cd4cf 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Tests/Runtime/GLTFRootTests.cs: -------------------------------------------------------------------------------- 1 | using System.IO; 2 | using System.Text; 3 | using GLTF; 4 | using NUnit.Framework; 5 | 6 | public class GLTFRootTest { 7 | 8 | [Test] 9 | public void TestMinimumGLTF() 10 | { 11 | var testStr = @" 12 | { 13 | ""asset"": { 14 | ""version"": ""2.0"" 15 | } 16 | } 17 | "; 18 | 19 | var stream = new MemoryStream(Encoding.UTF8.GetBytes(testStr)); 20 | GLTFParser.ParseJson(stream, out var testRoot); 21 | 22 | Assert.AreEqual(testRoot.Asset.Version, "2.0"); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /Tests/Runtime/GLTFRootTests.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f73e82e58f239dc4d8f038ef675e616f 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Tests/Runtime/UnityGLTFTests.asmdef: -------------------------------------------------------------------------------- 1 | { 2 | "name": "UnityGLTFTests", 3 | "rootNamespace": "", 4 | "references": [ 5 | "UnityGLTFScripts", 6 | "UnityGLTFEditor", 7 | "GLTFSerialization", 8 | "UnityEngine.TestRunner", 9 | "UnityEditor.TestRunner" 10 | ], 11 | "includePlatforms": [], 12 | "excludePlatforms": [], 13 | "allowUnsafeCode": false, 14 | "overrideReferences": true, 15 | "precompiledReferences": [ 16 | "GLTFSerialization.dll", 17 | "Newtonsoft.Json.dll", 18 | "nunit.framework.dll" 19 | ], 20 | "autoReferenced": false, 21 | "defineConstraints": [ 22 | "UNITY_INCLUDE_TESTS" 23 | ], 24 | "versionDefines": [ 25 | { 26 | "name": "Select...", 27 | "expression": "0.0.0", 28 | "define": "HAVE_ASSET_GENERATOR" 29 | }, 30 | { 31 | "name": "com.unity.modules.unitywebrequest", 32 | "expression": "0.0.0", 33 | "define": "UNITY_WEBREQUEST" 34 | } 35 | ], 36 | "noEngineReferences": false 37 | } -------------------------------------------------------------------------------- /Tests/Runtime/UnityGLTFTests.asmdef.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e5407060e0b39404cacbd1741581df2b 3 | AssemblyDefinitionImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Tests/Runtime/legacy~/GLTFAssetGeneratorTests.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 78b9693cc98cd7c499ba626d4b1e619e 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Tests/Runtime/legacy~/GLTFBenchmark.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2978836e0eec3a64c96abe7acbc0e0fb 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Tests/Runtime/legacy~/GLTFExporterIntegrationTest.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace UnityGLTF.Tests.Integration 4 | { 5 | #if UNITY_5 6 | public class GLTFExporterIntegrationTest : MonoBehaviour 7 | { 8 | public string RetrieveTexturePath(UnityEngine.Texture texture) 9 | { 10 | return texture.name; 11 | } 12 | 13 | void Start() 14 | { 15 | var exporter = new GLTFSceneExporter(new[] {transform}, RetrieveTexturePath); 16 | exporter.SaveGLTFandBin("tempDir", "test"); 17 | var root = exporter.GetRoot(); 18 | 19 | var scene = root.GetDefaultScene(); 20 | 21 | IntegrationTest.Assert(scene.Name == gameObject.name); 22 | 23 | 24 | IntegrationTest.Assert(root.Materials[0].AlphaMode == GLTF.Schema.AlphaMode.BLEND); 25 | 26 | IntegrationTest.Pass(); 27 | } 28 | } 29 | #endif 30 | } 31 | -------------------------------------------------------------------------------- /Tests/Runtime/legacy~/GLTFExporterIntegrationTest.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d6c6912b4cb77e644993c38d1006345f 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Tests/Runtime/legacy~/GLTFTestComponent.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections; 3 | using UnityEngine; 4 | using UnityGLTF.Loader; 5 | 6 | namespace UnityGLTF.Tests.Integration 7 | { 8 | public class GLTFTestComponent : MonoBehaviour 9 | { 10 | public string Url; 11 | public bool Multithreaded = true; 12 | 13 | #if UNITY_5 14 | IEnumerator Start() 15 | { 16 | ILoader loader = new WebRequestLoader(URIHelper.GetDirectoryName(Url)); 17 | var sceneImporter = new GLTFSceneImporter( 18 | URIHelper.GetFileFromUri(new Uri(Url)), 19 | loader 20 | ); 21 | 22 | sceneImporter.SceneParent = gameObject.transform; 23 | sceneImporter.isMultithreaded = Multithreaded; 24 | yield return sceneImporter.LoadScene(-1); 25 | IntegrationTest.Pass(); 26 | } 27 | 28 | #endif 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /Tests/Runtime/legacy~/GLTFTestComponent.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 41bd8a5daef51444a8f243c2b8ba42f8 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Tests/Runtime/legacy~/GLTFTestComponent.prefab: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!1 &1000013333174952 4 | GameObject: 5 | m_ObjectHideFlags: 0 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | serializedVersion: 6 10 | m_Component: 11 | - component: {fileID: 4000010219582968} 12 | m_Layer: 0 13 | m_Name: GLTFTestComponent 14 | m_TagString: Untagged 15 | m_Icon: {fileID: 0} 16 | m_NavMeshLayer: 0 17 | m_StaticEditorFlags: 0 18 | m_IsActive: 1 19 | --- !u!4 &4000010219582968 20 | Transform: 21 | m_ObjectHideFlags: 0 22 | m_CorrespondingSourceObject: {fileID: 0} 23 | m_PrefabInstance: {fileID: 0} 24 | m_PrefabAsset: {fileID: 0} 25 | m_GameObject: {fileID: 1000013333174952} 26 | m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} 27 | m_LocalPosition: {x: 0, y: 0, z: 0} 28 | m_LocalScale: {x: 1, y: 1, z: 1} 29 | m_Children: [] 30 | m_Father: {fileID: 0} 31 | m_RootOrder: 0 32 | m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} 33 | -------------------------------------------------------------------------------- /Tests/Runtime/legacy~/GLTFTestComponent.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fe30bc25c134b01428a2a92566d2fc37 3 | PrefabImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Tests/Runtime/legacy~/Manifest.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | 3 | namespace UnityGLTF.AssetGenerator 4 | { 5 | internal class Manifest 6 | { 7 | public string Folder = string.Empty; 8 | public List Models = new List(); 9 | 10 | // Model group, to be listed in the manifest as the folder name 11 | public Manifest() 12 | { 13 | 14 | } 15 | 16 | // Model properties to be listed in the manifest 17 | public class Model 18 | { 19 | public string FileName = string.Empty; 20 | [Newtonsoft.Json.JsonProperty( NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore )] 21 | public string SampleImageName = string.Empty; 22 | public Camera Camera = null; 23 | 24 | public Model() 25 | { 26 | 27 | } 28 | } 29 | 30 | // Camera properties 31 | public class Camera 32 | { 33 | public float[] Translation = new float[3]; 34 | 35 | public Camera() 36 | { 37 | //cameratranslation.CopyTo(Translation); 38 | } 39 | } 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /Tests/Runtime/legacy~/Manifest.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f497690c79fd2254ba489e34e32a330b 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Tests/Runtime/legacy~/SceneSettingsLoader.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace UnityGLTFTests 4 | { 5 | [RequireComponent(typeof(Skybox))] 6 | public class SceneSettingsLoader : MonoBehaviour 7 | { 8 | public void Awake() 9 | { 10 | // Apply provided settings to the entire scene 11 | RenderSettings.skybox = GetComponent().material; 12 | DynamicGI.UpdateEnvironment(); 13 | } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /Tests/Runtime/legacy~/SceneSettingsLoader.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a18b6c11896ab5f449d61ef13337f3db 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "org.khronos.unitygltf", 3 | "displayName": "UnityGLTF", 4 | "version": "2.15.0", 5 | "unity": "2021.3", 6 | "description": "Import and export glTF 2.0 assets, both in the editor and at runtime. Excellent support for animations, materials, extensions. Can be extended with plugins for both import and export use cases.", 7 | "repository": { 8 | "url": "https://github.com/KhronosGroup/UnityGLTF.git" 9 | }, 10 | "keywords": [ 11 | "gltf", 12 | "khronos", 13 | "runtime", 14 | "loader", 15 | "import", 16 | "export" 17 | ], 18 | "author": "Khronos Group", 19 | "dependencies": { 20 | "com.unity.nuget.newtonsoft-json": "2.0.0", 21 | "com.unity.modules.imageconversion": "1.0.0", 22 | "com.unity.shadergraph": "10.0.0", 23 | "com.unity.mathematics": "1.0.0" 24 | }, 25 | "samples": [ 26 | { 27 | "displayName": "KHR_audio Plugin", 28 | "description": "Experimental plugin adding KHR_audio support.", 29 | "path": "Samples~/KHR_audio" 30 | } 31 | ] 32 | } 33 | -------------------------------------------------------------------------------- /package.json.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5d230786f392e6a49bce07ef5f1fcfff 3 | TextScriptImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | --------------------------------------------------------------------------------