This commit is contained in:
wsh
2025-06-11 16:50:56 +09:00
parent fc1be3b301
commit 99a685a30f
631 changed files with 102634 additions and 3158 deletions

View File

@@ -1,5 +1,4 @@
using TriLibCore.General;
using TriLibCore.Mappers;
using UnityEditor;
using UnityEngine;
@@ -49,76 +48,137 @@ namespace TriLibCore.Editor
{
case 0:
GUILayout.Label(new GUIContent("Scene", "Scene import settings"), "BoldLabel");
EditorGUILayout.PropertyField(serializedObject.FindProperty("ScaleFactor"), new GUIContent("Scale Factor", "Model scale multiplier."));
EditorGUILayout.PropertyField(serializedObject.FindProperty("UseFileScale"), new GUIContent("Use File Scale", "Turn on this flag to use the file original scale."));
EditorGUILayout.PropertyField(serializedObject.FindProperty("ImportVisibility"), new GUIContent("Import Visibility", "Turn on this field to apply the visibility property to Mesh Renderers/Skinned Mesh Renderers."));
EditorGUILayout.PropertyField(serializedObject.FindProperty("ImportCameras"), new GUIContent("Import Cameras", "Turn on this field to enable Cameras importing."));
EditorGUILayout.PropertyField(serializedObject.FindProperty("ImportLights"), new GUIContent("Import Lights", "Turn on this field to enable Lights importing."));
EditorGUILayout.PropertyField(serializedObject.FindProperty("Static"), new GUIContent("Import as Static", "Turn on this field to import the Model as a static Game Object."));
EditorGUILayout.PropertyField(serializedObject.FindProperty("SortHierarchyByName"), new GUIContent("Sort Hierarchy by Name", "Turn on this field to sort the Model hierarchy by name."));
EditorGUILayout.PropertyField(serializedObject.FindProperty("AddAssetUnloader"), new GUIContent("Add Asset Unloader", "Turn on this field to add the Asset Unloader Component to the loaded Game Object."));
EditorGUILayout.PropertyField(serializedObject.FindProperty("ShowLoadingWarnings"), new GUIContent("Show Loading Warnings", "Turn on this field to display Model loading warnings on the Console."));
EditorGUILayout.PropertyField(serializedObject.FindProperty("CloseStreamAutomatically"), new GUIContent("Close Stream Automatically", "Turn on this field to close the Model loading Stream automatically."));
EditorGUILayout.PropertyField(serializedObject.FindProperty("DestroyOnError"), new GUIContent("Destroy on Error", "Turn on this field to destroy the loaded Game Object automatically when there is any loading error."));
EditorGUILayout.PropertyField(serializedObject.FindProperty("PivotPosition"), new GUIContent("Pivot Position", "Use this field to realign the Model pivot based on the given value."));
EditorGUILayout.PropertyField(serializedObject.FindProperty("DisableObjectsRenaming"), new GUIContent("Disable Objects Renaming", "Turn on this field to disable objects renaming."));
EditorGUILayout.PropertyField(serializedObject.FindProperty("MergeSingleChild"), new GUIContent("Merge Single Child", "Turn on this field to merge single child models into a single GameObject."));
EditorGUILayout.PropertyField(serializedObject.FindProperty("ScaleFactor"),
new GUIContent("Scale Factor", "Model scale multiplier."));
EditorGUILayout.PropertyField(serializedObject.FindProperty("UseFileScale"),
new GUIContent("Use File Scale", "Turn on this flag to use the file's original scale."));
EditorGUILayout.PropertyField(serializedObject.FindProperty("ImportVisibility"),
new GUIContent("Import Visibility", "Turn on this field to apply the visibility property to Mesh Renderers/Skinned Mesh Renderers."));
EditorGUILayout.PropertyField(serializedObject.FindProperty("ImportCameras"),
new GUIContent("Import Cameras", "Turn on this field to enable camera importing."));
EditorGUILayout.PropertyField(serializedObject.FindProperty("ImportLights"),
new GUIContent("Import Lights", "Turn on this field to enable light importing."));
EditorGUILayout.PropertyField(serializedObject.FindProperty("Static"),
new GUIContent("Import as Static", "Turn on this field to import the Model as a static Game Object."));
EditorGUILayout.PropertyField(serializedObject.FindProperty("SortHierarchyByName"),
new GUIContent("Sort Hierarchy by Name", "Turn on this field to sort the Model hierarchy by name."));
EditorGUILayout.PropertyField(serializedObject.FindProperty("AddAssetUnloader"),
new GUIContent("Add Asset Unloader", "Turn on this field to add the Asset Unloader Component to the loaded Game Object."));
EditorGUILayout.PropertyField(serializedObject.FindProperty("CloseStreamAutomatically"),
new GUIContent("Close Stream Automatically", "Turn on this field to close the Model loading Stream automatically."));
EditorGUILayout.PropertyField(serializedObject.FindProperty("DestroyOnError"),
new GUIContent("Destroy on Error", "Turn on this field to destroy the loaded Game Object automatically when there is any loading error."));
EditorGUILayout.PropertyField(serializedObject.FindProperty("PivotPosition"),
new GUIContent("Pivot Position", "Use this field to realign the Model pivot based on the given value."));
var disableObjectsRenamingProperty = serializedObject.FindProperty("DisableObjectsRenaming");
EditorGUILayout.PropertyField(disableObjectsRenamingProperty,
new GUIContent("Disable Object Renaming", "Turn on this field to disable object renaming."));
if (!disableObjectsRenamingProperty.boolValue)
{
EditorGUILayout.PropertyField(serializedObject.FindProperty("MaxObjectsToRename"),
new GUIContent("Max Objects to Rename",
"Use this field to set the maximum number of objects TriLib can rename. Renaming is an expensive process, so it's advised to keep this value low."));
}
EditorGUILayout.PropertyField(serializedObject.FindProperty("MergeSingleChild"),
new GUIContent("Merge Single Child", "Turn on this field to merge single-child models into a single GameObject."));
EditorGUILayout.Space();
GUILayout.Label(new GUIContent("Meshes", "Global settings for generated meshes"), "BoldLabel");
var importMeshesProperty = serializedObject.FindProperty("ImportMeshes");
EditorGUILayout.PropertyField(importMeshesProperty, new GUIContent("Import Meshes", "Turn on this field to import Model Meshes."));
EditorGUILayout.PropertyField(importMeshesProperty,
new GUIContent("Import Meshes", "Turn on this field to import Model Meshes."));
if (importMeshesProperty.boolValue)
{
EditorGUILayout.PropertyField(serializedObject.FindProperty("MarkMeshesAsDynamic"), new GUIContent("Mark Meshes as Dynamic", "Turn on this field to mark created meshes as dynamic."));
EditorGUILayout.PropertyField(serializedObject.FindProperty("MarkMeshesAsDynamic"),
new GUIContent("Mark Meshes as Dynamic", "Turn on this field to mark created meshes as dynamic."));
var generateCollidersProperty = serializedObject.FindProperty("GenerateColliders");
EditorGUILayout.PropertyField(generateCollidersProperty, new GUIContent("Generate Colliders", "Turn on this field to generate Colliders for imported Meshes."));
EditorGUILayout.PropertyField(generateCollidersProperty,
new GUIContent("Generate Colliders", "Turn on this field to generate Colliders for imported Meshes."));
if (generateCollidersProperty.boolValue)
{
EditorGUILayout.PropertyField(serializedObject.FindProperty("ConvexColliders"), new GUIContent("Convex Colliders", "Turn on this field to generate convex Colliders when the GenerateColliders field is enabled."));
EditorGUILayout.PropertyField(serializedObject.FindProperty("ConvexColliders"),
new GUIContent("Convex Colliders", "Turn on this field to generate convex Colliders when GenerateColliders is enabled."));
}
EditorGUILayout.PropertyField(serializedObject.FindProperty("IndexFormat"), new GUIContent("Index Format", "Mesh index format (16 or 32 bits)."));
EditorGUILayout.PropertyField(serializedObject.FindProperty("KeepQuads"), new GUIContent("Keep Quads", "Turn on this field to mantain Mesh quads (Useful for DX11 tesselation)."));
EditorGUILayout.PropertyField(serializedObject.FindProperty("MergeVertices"), new GUIContent("Merge Vertices", "Turn on this field to merge model duplicated vertices where possible."));
EditorGUILayout.PropertyField(serializedObject.FindProperty("IndexFormat"),
new GUIContent("Index Format", "Mesh index format (16 or 32 bits)."));
EditorGUILayout.PropertyField(serializedObject.FindProperty("KeepQuads"),
new GUIContent("Keep Quads", "Turn on this field to maintain Mesh quads (useful for DX11 tessellation)."));
EditorGUILayout.PropertyField(serializedObject.FindProperty("MergeVertices"),
new GUIContent("Merge Vertices", "Turn on this field to merge model duplicated vertices where possible."));
var importNormalsProperty = serializedObject.FindProperty("ImportNormals");
EditorGUILayout.PropertyField(importNormalsProperty, new GUIContent("Import Normals", "Turn on this field to import Mesh normals. If not enabled, normals will be calculated instead."));
EditorGUILayout.PropertyField(importNormalsProperty,
new GUIContent("Import Normals", "Turn on this field to import Mesh normals. If disabled, normals will be calculated instead."));
EditorGUILayout.PropertyField(serializedObject.FindProperty("BakeAxisConversion"),
new GUIContent("Bake Axis Conversion", "Turn on this field to bake the model transform into models and animations (Experimental)."));
var generateNormalsProperty = serializedObject.FindProperty("GenerateNormals");
if (generateNormalsProperty.boolValue)
{
EditorGUILayout.PropertyField(generateNormalsProperty, new GUIContent("Generate Normals", "Turn off this field to disable Mesh normals generation."));
EditorGUILayout.PropertyField(generateNormalsProperty,
new GUIContent("Generate Normals", "Turn off this field to disable Mesh normals generation."));
var useUnityNativeNormalCalculatorProperty = serializedObject.FindProperty("UseUnityNativeNormalCalculator");
EditorGUILayout.PropertyField(useUnityNativeNormalCalculatorProperty, new GUIContent("Use Unity Native Normal Calculator", "Turn on this field to use the builtin Unity normal calculator."));
EditorGUILayout.PropertyField(useUnityNativeNormalCalculatorProperty,
new GUIContent("Use Unity Native Normal Calculator", "Turn on this field to use the built-in Unity normal calculator."));
if (!useUnityNativeNormalCalculatorProperty.boolValue)
{
EditorGUILayout.Slider(serializedObject.FindProperty("SmoothingAngle"), 0f, 180f, new GUIContent("Smoothing Angle", "Normals calculation smoothing angle."));
EditorGUILayout.Slider(serializedObject.FindProperty("SmoothingAngle"), 0f, 180f,
new GUIContent("Smoothing Angle", "Normals calculation smoothing angle."));
}
}
var importBlendShapesProperty = serializedObject.FindProperty("ImportBlendShapes");
EditorGUILayout.PropertyField(importBlendShapesProperty, new GUIContent("Import Blend Shapes", "Turn on this field to import Mesh Blend Shapes."));
EditorGUILayout.PropertyField(importBlendShapesProperty,
new GUIContent("Import Blend Shapes", "Turn on this field to import Mesh Blend Shapes."));
if (importBlendShapesProperty.boolValue)
{
EditorGUILayout.PropertyField(serializedObject.FindProperty("ImportBlendShapeNormals"), new GUIContent("Import Blend Shape Normals", "Turn on this field to import Mesh Blend Shape normals."));
EditorGUILayout.PropertyField(serializedObject.FindProperty("CalculateBlendShapeNormals"), new GUIContent("Calculate Blend Shape Normals", "Turn on this field to calculate Mesh Blend Shape normals when none can be imported."));
EditorGUILayout.PropertyField(serializedObject.FindProperty("ImportBlendShapeNormals"),
new GUIContent("Import Blend Shape Normals", "Turn on this field to import Mesh Blend Shape normals."));
EditorGUILayout.PropertyField(serializedObject.FindProperty("CalculateBlendShapeNormals"),
new GUIContent("Calculate Blend Shape Normals",
"Turn on this field to calculate Mesh Blend Shape normals when none are available in the file."));
EditorGUILayout.PropertyField(serializedObject.FindProperty("BlendShapeMapper"),
new GUIContent("Blend Shape Mapper",
"Use this field to set a BlendShapeMapper to use with the loaded model. BlendShapeMappers can replace the Unity built-in blend shape playback system."));
}
EditorGUILayout.PropertyField(serializedObject.FindProperty("ImportColors"), new GUIContent("Import Colors", "Turn on this field to import Mesh Colors."));
EditorGUILayout.PropertyField(serializedObject.FindProperty("ImportColors"),
new GUIContent("Import Colors", "Turn on this field to import Mesh colors."));
var importTangentsProperty = serializedObject.FindProperty("ImportTangents");
EditorGUILayout.PropertyField(importTangentsProperty, new GUIContent("Import Tangents", "Turn on this field to import Mesh tangents. If not enabled, tangents will be calculated instead."));
EditorGUILayout.PropertyField(serializedObject.FindProperty("GenerateTangents"), new GUIContent("Generate Tangents", "Turn off this field to disable Mesh tangents generation."));
EditorGUILayout.PropertyField(serializedObject.FindProperty("SwapUVs"), new GUIContent("Swap UVs", "Turn on this field to swap Mesh UVs. (uv1 into uv2)"));
EditorGUILayout.PropertyField(serializedObject.FindProperty("LODScreenRelativeTransitionHeightBase"), new GUIContent("LOD Screen Relative Transition Height Base", "Defines the initial screen relative transition height when creating LOD Groups."));
EditorGUILayout.PropertyField(serializedObject.FindProperty("ReadEnabled"), new GUIContent("Read Enabled", "Turn on this field to make mesh CPU data readable."));
EditorGUILayout.PropertyField(serializedObject.FindProperty("DisableTesselation"), new GUIContent("Disable Tesselation", "Turn on this field to disable polygon tesselation."));
EditorGUILayout.PropertyField(importTangentsProperty,
new GUIContent("Import Tangents",
"Turn on this field to import Mesh tangents. If disabled, tangents will be calculated instead."));
EditorGUILayout.PropertyField(serializedObject.FindProperty("GenerateTangents"),
new GUIContent("Generate Tangents", "Turn off this field to disable Mesh tangents generation."));
EditorGUILayout.PropertyField(serializedObject.FindProperty("SwapUVs"),
new GUIContent("Swap UVs", "Turn on this field to swap Mesh UVs (uv1 into uv2)."));
EditorGUILayout.PropertyField(serializedObject.FindProperty("LODScreenRelativeTransitionHeightBase"),
new GUIContent("LOD Screen Relative Transition Height Base",
"Defines the initial screen relative transition height when creating LOD Groups."));
EditorGUILayout.PropertyField(serializedObject.FindProperty("ReadEnabled"),
new GUIContent("Read Enabled", "Turn on this field to make mesh CPU data readable."));
EditorGUILayout.PropertyField(serializedObject.FindProperty("DisableTesselation"),
new GUIContent("Disable Tessellation", "Turn on this field to disable polygon tessellation."));
EditorGUILayout.PropertyField(serializedObject.FindProperty("UseSharedMeshes"),
new GUIContent("Use Shared Meshes",
"Turn off this field to use the mesh filter's \"mesh\" property instead of the \"sharedMesh\" property."));
EditorGUILayout.PropertyField(serializedObject.FindProperty("MeshWorldTransform"),
new GUIContent("Mesh World Transform",
"Use this field to define a transformation applied in world space to all mesh vertices."));
EditorGUILayout.PropertyField(serializedObject.FindProperty("UpdateSkinnedMeshRendererWhenOffscreen"),
new GUIContent("Update Skinned Mesh Renderer when Offscreen",
"Turn on this field to update SkinnedMeshRenderers when they're offscreen."));
}
var loadPointCloudsProperty = serializedObject.FindProperty("LoadPointClouds");
EditorGUILayout.PropertyField(loadPointCloudsProperty, new GUIContent("Load Point Clouds", "TTurn on this field to load the model as a Point Cloud (PLY and OBJ only)"));
EditorGUILayout.PropertyField(loadPointCloudsProperty,
new GUIContent("Load Point Clouds",
"Turn on this field to load the model as a point cloud (PLY and OBJ only)."));
if (!loadPointCloudsProperty.boolValue)
{
EditorGUILayout.PropertyField(serializedObject.FindProperty("OptimizeMeshes"), new GUIContent("Optimize Meshes", "Turn on this field to optimize imported Meshes for GPU access."));
EditorGUILayout.PropertyField(serializedObject.FindProperty("OptimizeMeshes"),
new GUIContent("Optimize Meshes", "Turn on this field to optimize imported Meshes for GPU access."));
}
break;
case 1:
var animationTypeProperty = serializedObject.FindProperty("AnimationType");
EditorGUILayout.PropertyField(animationTypeProperty, new GUIContent("Animation Type", "Model rigging type."));
EditorGUILayout.PropertyField(animationTypeProperty,
new GUIContent("Animation Type", "Model rigging type."));
var animationType = (AnimationType)animationTypeProperty.intValue;
switch (animationType)
{
@@ -126,98 +186,181 @@ namespace TriLibCore.Editor
case AnimationType.Humanoid:
var avatarDefinitionTypeProperty = serializedObject.FindProperty("AvatarDefinition");
EditorGUILayout.PropertyField(avatarDefinitionTypeProperty, new GUIContent("Avatar Definition", "Type of avatar creation for the Model."));
EditorGUILayout.PropertyField(avatarDefinitionTypeProperty,
new GUIContent("Avatar Definition", "Type of avatar creation for the Model."));
var avatarDefinitionType = (AvatarDefinitionType)avatarDefinitionTypeProperty.intValue;
switch (avatarDefinitionType)
{
case AvatarDefinitionType.CreateFromThisModel:
if (animationType == AnimationType.Humanoid)
{
EditorGUILayout.PropertyField(serializedObject.FindProperty("HumanDescription"), new GUIContent("Human Description", "Human Description used to create the humanoid Avatar, when the humanoid rigging type is selected."));
EditorGUILayout.PropertyField(serializedObject.FindProperty("SampleBindPose"), new GUIContent("Sample Bind Pose", "Turn on this field to enforce the loaded Model to the bind-pose when rigging."));
EditorGUILayout.PropertyField(serializedObject.FindProperty("EnforceTPose"), new GUIContent("Enforce T-Pose", "Turn on this field to enforce the loaded Model to the t-pose when rigging."));
EditorGUILayout.PropertyField(serializedObject.FindProperty("HumanoidAvatarMapper"), new GUIContent("Humanoid Avatar Mapper", "Mapper used to map the humanoid Avatar, when the humanoid rigging type is selected."));
EditorGUILayout.PropertyField(serializedObject.FindProperty("HumanDescription"),
new GUIContent("Human Description",
"Human Description used to create the humanoid Avatar, when the humanoid rigging type is selected."));
EditorGUILayout.PropertyField(serializedObject.FindProperty("SampleBindPose"),
new GUIContent("Sample Bind Pose",
"Turn on this field to enforce the loaded Model to the bind-pose when rigging."));
EditorGUILayout.PropertyField(serializedObject.FindProperty("EnforceTPose"),
new GUIContent("Enforce T-Pose",
"Turn on this field to enforce the loaded Model to a T-pose when rigging."));
EditorGUILayout.PropertyField(serializedObject.FindProperty("HumanoidAvatarMapper"),
new GUIContent("Humanoid Avatar Mapper",
"Mapper used to map the humanoid Avatar when the humanoid rigging type is selected."));
EditorGUILayout.PropertyField(serializedObject.FindProperty("ApplyAvatarHipsCompensation"),
new GUIContent("Apply Avatar Hips Compensation",
"Turn off this field if your avatars seem to hover over the ground. This disables avatar hips height compensation."));
}
break;
case AvatarDefinitionType.CopyFromOtherAvatar:
EditorGUILayout.PropertyField(serializedObject.FindProperty("Avatar"), new GUIContent("Source", "Source Avatar to use when copying from other Avatar."));
EditorGUILayout.PropertyField(serializedObject.FindProperty("Avatar"),
new GUIContent("Source", "Source Avatar to use when copying from another Avatar."));
break;
}
break;
case AnimationType.Legacy:
EditorGUILayout.PropertyField(serializedObject.FindProperty("AutomaticallyPlayLegacyAnimations"), new GUIContent("Play Legacy Animations Automatically", "Turn on this field to play Legacy Animation Clips automatically (The first available Clip will be played)."));
EditorGUILayout.PropertyField(serializedObject.FindProperty("EnforceAnimatorWithLegacyAnimations"), new GUIContent("Enforce Animator with Legacy Animations", "Turn on this field to add an Animator when the AnimationType is set to Legacy."));
EditorGUILayout.PropertyField(serializedObject.FindProperty("AutomaticallyPlayLegacyAnimations"),
new GUIContent("Play Legacy Animations Automatically",
"Turn on this field to play Legacy Animation Clips automatically (The first available Clip will be played)."));
EditorGUILayout.PropertyField(serializedObject.FindProperty("EnforceAnimatorWithLegacyAnimations"),
new GUIContent("Enforce Animator with Legacy Animations",
"Turn on this field to add an Animator when the AnimationType is set to Legacy."));
break;
}
if (animationType != AnimationType.None)
{
EditorGUILayout.PropertyField(serializedObject.FindProperty("RootBoneMapper"), new GUIContent("Root Bone Mapper", "Mapper used to find the Model root bone."));
EditorGUILayout.PropertyField(serializedObject.FindProperty("RootBoneMapper"),
new GUIContent("Root Bone Mapper", "Mapper used to find the Model root bone."));
}
break;
case 2:
animationTypeProperty = serializedObject.FindProperty("AnimationType");
animationType = (AnimationType)animationTypeProperty.intValue;
//todo: add constraints
if (animationType != AnimationType.None)
{
EditorGUILayout.PropertyField(serializedObject.FindProperty("EnsureQuaternionContinuity"), new GUIContent("Ensure Quaternion Continuity", "Turn on this field to realign quaternion keys to ensure shortest interpolation paths."));
EditorGUILayout.PropertyField(serializedObject.FindProperty("ResampleFrequency"), new GUIContent("Resample Frequency", "Defines the FBX Rotation Animation Curve resampling frequency. (1 = every frame, 2 = every 2 frames, 3 = every 3 frames and so on)"));
//todo: add keyframe reduction
EditorGUILayout.PropertyField(serializedObject.FindProperty("AnimationWrapMode"), new GUIContent("Wrap Mode", "Default wrap-mode to apply to Animations."));
EditorGUILayout.PropertyField(serializedObject.FindProperty("AnimationClipMappers"), new GUIContent("Animation Clip Mappers", "Mappers used to process Animation Clips."));
EditorGUILayout.PropertyField(serializedObject.FindProperty("AddAllBonesToSkinnedMeshRenderers"), new GUIContent("Add all Bones to Skinned Mesh Renderers", "Turn on this field to add all available bones to every created SkinnedMeshRenderer."));
EditorGUILayout.PropertyField(serializedObject.FindProperty("EnsureQuaternionContinuity"),
new GUIContent("Ensure Quaternion Continuity",
"Turn on this field to realign quaternion keys to ensure the shortest interpolation paths."));
EditorGUILayout.PropertyField(serializedObject.FindProperty("ResampleFrequency"),
new GUIContent("Resample Frequency",
"Defines the FBX Rotation Animation Curve resampling frequency. (1 = every frame, 2 = every 2 frames, etc.)"));
EditorGUILayout.PropertyField(serializedObject.FindProperty("AnimationWrapMode"),
new GUIContent("Wrap Mode", "Default wrap-mode to apply to Animations."));
EditorGUILayout.PropertyField(serializedObject.FindProperty("AnimationClipMappers"),
new GUIContent("Animation Clip Mappers", "Mappers used to process Animation Clips."));
EditorGUILayout.PropertyField(serializedObject.FindProperty("AddAllBonesToSkinnedMeshRenderers"),
new GUIContent("Add All Bones to Skinned Mesh Renderers",
"Turn on this field to add all available bones to every created SkinnedMeshRenderer."));
}
break;
case 3:
var importMaterialsProperty = serializedObject.FindProperty("ImportMaterials");
EditorGUILayout.PropertyField(importMaterialsProperty, new GUIContent("Import Materials", "Turn on this field to import Materials."));
EditorGUILayout.PropertyField(importMaterialsProperty,
new GUIContent("Import Materials", "Turn on this field to import Materials."));
if (importMaterialsProperty.boolValue)
{
EditorGUILayout.PropertyField(serializedObject.FindProperty("UseMaterialKeywords"), new GUIContent("Use Material Keywords", "Turn on this field to enable/disable created Material Keywords based on the source native Materials."));
EditorGUILayout.PropertyField(serializedObject.FindProperty("AlphaMaterialMode"), new GUIContent("Alpha Material Mode", "Chooses the way TriLib creates alpha materials."));
EditorGUILayout.PropertyField(serializedObject.FindProperty("MaterialMappers"), new GUIContent("Material Mappers", "Mappers used to create suitable Unity Materials from original Materials."));
EditorGUILayout.PropertyField(serializedObject.FindProperty("DoubleSidedMaterials"), new GUIContent("Double Sided Materials", "Turn on this field to create double-sided Materials (TriLib does that by duplicating the original Meshes)."));
EditorGUILayout.PropertyField(serializedObject.FindProperty("SetUnusedTexturePropertiesToNull"), new GUIContent("Set unused Texture Properties to Null", "Turn on this field to set the unused Material Texture Properties to null."));
EditorGUILayout.PropertyField(serializedObject.FindProperty("CreateMaterialsForAllModels"), new GUIContent("Create Materials for all Models", "Turn on this field to make TriLib create materials for every loaded model, even models without an original material."));
EditorGUILayout.PropertyField(serializedObject.FindProperty("UseMaterialKeywords"),
new GUIContent("Use Material Keywords",
"Turn on this field to enable/disable created Material keywords based on the source native materials."));
EditorGUILayout.PropertyField(serializedObject.FindProperty("AlphaMaterialMode"),
new GUIContent("Alpha Material Mode", "Chooses the way TriLib creates alpha materials."));
EditorGUILayout.PropertyField(serializedObject.FindProperty("MaterialMappers"),
new GUIContent("Material Mappers", "Mappers used to create suitable Unity Materials from original Materials."));
EditorGUILayout.PropertyField(serializedObject.FindProperty("DoubleSidedMaterials"),
new GUIContent("Double-Sided Materials",
"Turn on this field to create double-sided Materials (TriLib does that by duplicating the original Meshes)."));
EditorGUILayout.PropertyField(serializedObject.FindProperty("SetUnusedTexturePropertiesToNull"),
new GUIContent("Set Unused Texture Properties to Null",
"Turn on this field to set unused Material Texture Properties to null."));
EditorGUILayout.PropertyField(serializedObject.FindProperty("UseSharedMaterials"),
new GUIContent("Use Shared Materials",
"Turn on this field to use the renderers' \"sharedMaterials\" property instead of \"materials\"."));
EditorGUILayout.PropertyField(serializedObject.FindProperty("DoPBRConversion"),
new GUIContent("Do PBR Conversion",
"Turn off this field to disable Phong to PBR conversion."));
EditorGUILayout.PropertyField(serializedObject.FindProperty("ApplyGammaCurveToMaterialColors"),
new GUIContent("Apply Gamma Curve to Material Colors",
"When this field is on, TriLib will also apply the gamma curve to the material colors."));
}
break;
case 4:
var importTexturesProperty = serializedObject.FindProperty("ImportTextures");
EditorGUILayout.PropertyField(importTexturesProperty, new GUIContent("Import Textures", "Turn on this field to import Textures."));
EditorGUILayout.PropertyField(importTexturesProperty,
new GUIContent("Import Textures", "Turn on this field to import Textures."));
if (importTexturesProperty.boolValue)
{
EditorGUILayout.PropertyField(serializedObject.FindProperty("TextureMappers"), new GUIContent("Texture Mappers", "Mappers used to find native Texture Streams from custom sources."));
EditorGUILayout.PropertyField(serializedObject.FindProperty("TextureCompressionQuality"), new GUIContent("Texture Compression Quality", "Texture compression to apply on loaded Textures."));
EditorGUILayout.PropertyField(serializedObject.FindProperty("GenerateMipmaps"), new GUIContent("Generate Mipmaps", "Turn on this field to enable Textures mip-map generation."));
EditorGUILayout.PropertyField(serializedObject.FindProperty("FixNormalMaps"), new GUIContent("Fix Normal Maps", "Turn on this field to change normal map channels order to ABBR instead of RGBA."));
EditorGUILayout.PropertyField(serializedObject.FindProperty("EnforceAlphaChannelTextures"), new GUIContent("Enforce Alpha Channel Textures", "Turn on this field to enforce alpha channel on textures creation."));
EditorGUILayout.PropertyField(serializedObject.FindProperty("TextureMappers"),
new GUIContent("Texture Mappers", "Mappers used to find native Texture Streams from custom sources."));
EditorGUILayout.PropertyField(serializedObject.FindProperty("TextureCompressionQuality"),
new GUIContent("Texture Compression Quality",
"Texture compression to apply on loaded Textures."));
EditorGUILayout.PropertyField(serializedObject.FindProperty("GenerateMipmaps"),
new GUIContent("Generate Mipmaps", "Turn on this field to enable Texture mipmap generation."));
EditorGUILayout.PropertyField(serializedObject.FindProperty("FixNormalMaps"),
new GUIContent("Fix Normal Maps",
"Turn on this field to change the normal map channel order to ABBR instead of RGBA."));
EditorGUILayout.PropertyField(serializedObject.FindProperty("EnforceAlphaChannelTextures"),
new GUIContent("Enforce Alpha Channel Textures",
"Turn on this field to enforce an alpha channel on texture creation."));
var alphaMaterialModeProperty = serializedObject.FindProperty("AlphaMaterialMode");
if (alphaMaterialModeProperty.enumValueIndex > 0)
{
EditorGUILayout.PropertyField(serializedObject.FindProperty("ScanForAlphaPixels"), new GUIContent("Scan for Alpha Pixels", "Turn on this field to scan Textures for alpha-blended pixels in order to generate transparent Materials."));
EditorGUILayout.PropertyField(serializedObject.FindProperty("ScanForAlphaPixels"),
new GUIContent("Scan for Alpha Pixels",
"Turn on this field to scan textures for alpha-blended pixels to generate transparent Materials."));
}
EditorGUILayout.PropertyField(serializedObject.FindProperty("LoadTexturesAsSRGB"), new GUIContent("Load Textures as sRGB", "Turn off this field to load textures as linear, instead of sRGB."));
EditorGUILayout.PropertyField(serializedObject.FindProperty("ApplyGammaCurveToMaterialColors"), new GUIContent("Apply Gamma Curve to Material Colors", "When this field is on, TriLib will also apply the gamma curve to the material colors."));
EditorGUILayout.PropertyField(serializedObject.FindProperty("ApplyTexturesOffsetAndScaling"), new GUIContent("Apply Textures Offset and Scaling", "Turn on this field to apply Textures offset and scaling."));
EditorGUILayout.PropertyField(serializedObject.FindProperty("DiscardUnusedTextures"), new GUIContent("Discard Unused Textures", "Turn off this field to keep unused Textures."));
EditorGUILayout.PropertyField(serializedObject.FindProperty("ForcePowerOfTwoTextures"), new GUIContent("Force Power of Two Textures", "Turn on this field to enforce power of two resolution when loading textures (needed for texture compression and in some platforms)."));
EditorGUILayout.PropertyField(serializedObject.FindProperty("UseUnityNativeTextureLoader"), new GUIContent("Use Unity Native Texture Loader", "Turn on this field to use Unity builtin Texture loader instead of stb_image."));
EditorGUILayout.PropertyField(serializedObject.FindProperty("MaxTexturesResolution"), new GUIContent("Max Textures Resolution", "Use this field to limit textures resolution. Textures with resolutions higher than this value (when the value is not zero) will not be loaded."));
EditorGUILayout.PropertyField(serializedObject.FindProperty("ConvertMaterialTexturesUsingHalfRes"), new GUIContent("Convert Material Textures using Half Res", "Turn off this field to generate the \"Metallic/Smoothness/Specular/Roughness\" textures with the full original resolution."));
EditorGUILayout.PropertyField(serializedObject.FindProperty("LoadTexturesAsSRGB"),
new GUIContent("Load Textures as sRGB",
"Turn off this field to load textures as linear instead of sRGB."));
EditorGUILayout.PropertyField(serializedObject.FindProperty("ApplyTexturesOffsetAndScaling"),
new GUIContent("Apply Textures Offset and Scaling",
"Turn on this field to apply texture offset and scaling."));
EditorGUILayout.PropertyField(serializedObject.FindProperty("DiscardUnusedTextures"),
new GUIContent("Discard Unused Textures",
"Turn off this field to keep unused Textures."));
EditorGUILayout.PropertyField(serializedObject.FindProperty("ForcePowerOfTwoTextures"),
new GUIContent("Force Power of Two Textures",
"Turn on this field to enforce power-of-two resolution when loading textures (needed for compression on some platforms)."));
EditorGUILayout.PropertyField(serializedObject.FindProperty("UseUnityNativeTextureLoader"),
new GUIContent("Use Unity Native Texture Loader",
"Turn on this field to use the Unity built-in Texture loader instead of stb_image."));
EditorGUILayout.PropertyField(serializedObject.FindProperty("MaxTexturesResolution"),
new GUIContent("Max Textures Resolution",
"Use this field to limit texture resolution. Textures with resolutions higher than this value (when not zero) will not be loaded."));
EditorGUILayout.PropertyField(serializedObject.FindProperty("ConvertMaterialTexturesUsingHalfRes"),
new GUIContent("Convert Material Textures Using Half Res",
"Turn off this field to generate the \"Metallic/Smoothness/Specular/Roughness\" textures at their full original resolution."));
EditorGUILayout.PropertyField(serializedObject.FindProperty("LoadDisplacementTextures"),
new GUIContent("Load Displacement Textures",
"Turn on this field to load displacement textures."));
EditorGUILayout.PropertyField(serializedObject.FindProperty("LoadTexturesViaWebRequest"),
new GUIContent("Load Textures via Web Request",
"Turn on this field to load textures using the UnityWebRequest class (experimental). " +
"UnityWebRequest is the fastest way to load PNG/JPG textures but uses more memory."));
EditorGUILayout.PropertyField(serializedObject.FindProperty("ConvertTexturesAs2D"),
new GUIContent("Convert Textures as 2D",
"Turn off this field to keep processed/composed textures as RenderTextures."));
EditorGUILayout.PropertyField(serializedObject.FindProperty("ApplyTransparencyTexture"),
new GUIContent("Apply Transparency Texture",
"Turn off this field to disable composing the Albedo texture using the original material's transparency texture."));
}
break;
case 5:
EditorGUILayout.PropertyField(serializedObject.FindProperty("ExternalDataMapper"), new GUIContent("External Data Mapper", "Mapper used to find data Streams on external sources."));
EditorGUILayout.PropertyField(serializedObject.FindProperty("UserPropertiesMapper"), new GUIContent("User Properties Mapper", " Mapper used to process User Properties from Models."));
EditorGUILayout.PropertyField(serializedObject.FindProperty("LipSyncMappers"), new GUIContent("Lip Sync Mappers", "Mappers used to configure Lip-Sync Blend Shapes."));
EditorGUILayout.PropertyField(serializedObject.FindProperty("NameMapper"), new GUIContent("Name Mapper", "This class can be inherited and used to generate Game Object naming based on file-format model specific data."));
EditorGUILayout.PropertyField(serializedObject.FindProperty("ExternalDataMapper"),
new GUIContent("External Data Mapper", "Mapper used to find data Streams on external sources."));
EditorGUILayout.PropertyField(serializedObject.FindProperty("UserPropertiesMapper"),
new GUIContent("User Properties Mapper", "Mapper used to process User Properties from Models."));
EditorGUILayout.PropertyField(serializedObject.FindProperty("LipSyncMappers"),
new GUIContent("Lip Sync Mappers", "Mappers used to configure Lip-Sync Blend Shapes."));
EditorGUILayout.PropertyField(serializedObject.FindProperty("NameMapper"),
new GUIContent("Name Mapper",
"This class can be inherited and used to generate GameObject naming based on file-format model-specific data."));
break;
}
EditorGUILayout.EndVertical();
serializedObject.ApplyModifiedProperties();
}
}
}

View File

@@ -1,3 +1,10 @@
fileFormatVersion: 2
guid: e964c5e158b24dc6ad03b0a14c2ef811
timeCreated: 1573053965
timeCreated: 1573053965
AssetOrigin:
serializedVersion: 1
productId: 157548
packageName: TriLib 2 - Model Loading Package
packageVersion: 2.5.5
assetPath: Assets/Editor/TriLibCore/Scripts/AssetLoaderOptionsEditor.cs
uploadId: 752923

View File

@@ -1,15 +1,13 @@
using System;
using UnityEditor;
using UnityEditor;
using UnityEditor.Build;
using UnityEditor.Build.Reporting;
using UnityEngine;
using Debug = UnityEngine.Debug;
namespace TriLibCore.Editor
{
public class BuildProcessor : IPreprocessBuildWithReport
{
public int callbackOrder => -1000;
public int callbackOrder => 0;
public void OnPreprocessBuild(BuildReport report)
{
@@ -18,44 +16,17 @@ namespace TriLibCore.Editor
#else
PlayerSettings.WebGL.threadsSupport = false;
#endif
if (!Application.isBatchMode)
{
#if UNITY_WSA
if (!Application.isBatchMode && !PlayerSettings.WSA.GetCapability(PlayerSettings.WSACapability.RemovableStorage) && EditorUtility.DisplayDialog(
"TriLib", "TriLib cache system needs the [RemovableStorage] WSA Capacity enabled. Do you want to enable it?", "Yes", "No"))
if (!PlayerSettings.WSA.GetCapability(PlayerSettings.WSACapability.RemovableStorage) && EditorUtility.DisplayDialog(
"TriLib", "TriLib cache system needs the [RemovableStorage] WSA Capacity enabled. Do you want to enable it now?", "Yes", "No"))
{
PlayerSettings.WSA.SetCapability(PlayerSettings.WSACapability.RemovableStorage, true);
}
#endif
var waitingMappers = false;
string materialMapper = null;
var arguments = Environment.GetCommandLineArgs();
for (var i = 0; i < arguments.Length; i++)
{
var argument = arguments[i];
if (waitingMappers)
{
materialMapper = argument;
continue;
}
switch (argument)
{
case "-trilib_mappers":
{
waitingMappers = true;
break;
}
}
}
if (materialMapper is object)
{
Debug.Log($"Using the given material mapper:{materialMapper}.");
CheckMappers.SelectMapper(materialMapper);
}
else
{
CheckMappers.Initialize();
}
CheckMappers.EnableCompatibleMaterialMapperIfNeeded();
}
}
}

View File

@@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: d556beac2d22e38459a0060666d79950
guid: 48732532528e378478a056f14449aa64
MonoImporter:
externalObjects: {}
serializedVersion: 2
@@ -9,3 +9,10 @@ MonoImporter:
userData:
assetBundleName:
assetBundleVariant:
AssetOrigin:
serializedVersion: 1
productId: 157548
packageName: TriLib 2 - Model Loading Package
packageVersion: 2.5.5
assetPath: Assets/Editor/TriLibCore/Scripts/BuildProcessor.cs
uploadId: 752923

View File

@@ -0,0 +1,41 @@
using System;
using TriLibCore.General;
using TriLibCore.Mappers;
using UnityEditor;
using UnityEngine;
namespace TriLibCore.Editor
{
[CustomEditor(typeof(ByNameHumanoidAvatarMapper))]
public class ByNameHumanoidAvatarMapperEditor : UnityEditor.Editor
{
private bool[] _folded = new bool[2];
public override void OnInspectorGUI()
{
_folded[0] = EditorGUILayout.BeginFoldoutHeaderGroup(_folded[0], "String Comparison");
if (_folded[0])
{
EditorGUILayout.PropertyField(serializedObject.FindProperty("stringComparisonMode"));
EditorGUILayout.PropertyField(serializedObject.FindProperty("CaseInsensitive"));
}
EditorGUILayout.EndFoldoutHeaderGroup();
_folded[1] = EditorGUILayout.BeginFoldoutHeaderGroup(_folded[1], "Bones Mapping");
EditorGUILayout.EndFoldoutHeaderGroup();
if (_folded[1])
{
var bonesMapping = serializedObject.FindProperty("BonesMapping");
for (var i = 0; i < bonesMapping.arraySize; i++)
{
var boneMapping = bonesMapping.GetArrayElementAtIndex(i);
var humanBone = boneMapping.FindPropertyRelative("HumanBone");
var enumDisplayNames = humanBone.enumDisplayNames;
var boneNames = boneMapping.FindPropertyRelative("BoneNames");
EditorGUILayout.PropertyField(boneNames, new GUIContent(enumDisplayNames[humanBone.enumValueIndex]));
}
}
serializedObject.ApplyModifiedProperties();
}
}
}

View File

@@ -0,0 +1,18 @@
fileFormatVersion: 2
guid: ae81488757bd60e4db304d3c72f0cfde
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
AssetOrigin:
serializedVersion: 1
productId: 157548
packageName: TriLib 2 - Model Loading Package
packageVersion: 2.5.5
assetPath: Assets/Editor/TriLibCore/Scripts/ByNameHumanoidAvatarMapperEditor.cs
uploadId: 752923

View File

@@ -5,71 +5,72 @@ using UnityEngine;
namespace TriLibCore.Editor
{
/// <summary>
/// Represents a series of Material Mapper utility methods.
/// </summary>
[InitializeOnLoad]
public static class CheckMappers
{
[InitializeOnEnterPlayMode]
[InitializeOnLoadMethod]
public static void Initialize()
[MenuItem("Tools/TriLib/Select Material Mappers based on Rendering Pipeline")]
private static void AutoSelect()
{
var hasAnyMapper = false;
string materialMapperName;
for (var i = 0; i < MaterialMapper.RegisteredMappers.Count; i++)
{
materialMapperName = MaterialMapper.RegisteredMappers[i];
TriLibSettings.SetBool(materialMapperName, false);
}
materialMapperName = AssetLoader.GetCompatibleMaterialMapperName();
SelectMapper(materialMapperName);
}
/// <summary>
/// Enables a compatible Material Mapper if none is found.
/// </summary>
public static void EnableCompatibleMaterialMapperIfNeeded()
{
string materialMapperName;
for (var i = 0; i < MaterialMapper.RegisteredMappers.Count; i++)
{
materialMapperName = MaterialMapper.RegisteredMappers[i];
if (TriLibSettings.GetBool(materialMapperName, false))
{
return;
}
}
EnableCompatibleMaterialMapper();
}
/// <summary>
/// Tries to find the best Material Mapper depending on the Rendering Pipeline.
/// </summary>
public static void EnableCompatibleMaterialMapper()
{
var usingMaterialMapper = false;
for (var i = 0; i < MaterialMapper.RegisteredMappers.Count; i++)
{
var materialMapperName = MaterialMapper.RegisteredMappers[i];
if (TriLibSettings.GetBool(materialMapperName))
{
hasAnyMapper = true;
usingMaterialMapper = true;
break;
}
}
if (!hasAnyMapper)
if (!usingMaterialMapper)
{
string materialMapper;
if (GraphicsSettingsUtils.IsUsingHDRPPipeline)
{
materialMapper = "HDRPMaterialMapper";
}
else if (GraphicsSettingsUtils.IsUsingUniversalPipeline)
{
materialMapper = "UniversalRPMaterialMapper";
}
else
{
materialMapper = "StandardMaterialMapper";
}
Debug.Log($"TriLib is configured to use the '{materialMapper}' Material Mapper. If you want to use different Material Mappers, you can change this setting on the Project Settings/TriLib area.");
TriLibSettings.SetBool(materialMapper, true);
var materialMapperName = AssetLoader.GetCompatibleMaterialMapperName();
SelectMapper(materialMapperName);
}
}
[MenuItem("Tools/TriLib/Select Material Mappers based on Rendering Pipeline")]
public static void AutoSelect()
static CheckMappers()
{
for (var i = 0; i < MaterialMapper.RegisteredMappers.Count; i++)
{
var materialMapperName = MaterialMapper.RegisteredMappers[i];
TriLibSettings.SetBool(materialMapperName, false);
}
string materialMapper;
if (GraphicsSettingsUtils.IsUsingHDRPPipeline)
{
materialMapper = "HDRPMaterialMapper";
}
else if (GraphicsSettingsUtils.IsUsingUniversalPipeline)
{
materialMapper = "UniversalRPMaterialMapper";
}
else
{
materialMapper = "StandardMaterialMapper";
}
SelectMapper(materialMapper);
EnableCompatibleMaterialMapperIfNeeded();
}
public static void SelectMapper(string materialMapper)
{
Debug.Log($"TriLib is configured to use the '{materialMapper}' Material Mapper. If you want to use different Material Mappers, you can change this setting on the Project Settings/TriLib area.");
Debug.Log($"TriLib is configured to use the '{materialMapper}' Material Mapper. If you want to use different Material Mappers, you can change this setting on the 'Edit->Project Settings->TriLib' menu.");
TriLibSettings.SetBool(materialMapper, true);
}
}

View File

@@ -9,3 +9,10 @@ MonoImporter:
userData:
assetBundleName:
assetBundleVariant:
AssetOrigin:
serializedVersion: 1
productId: 157548
packageName: TriLib 2 - Model Loading Package
packageVersion: 2.5.5
assetPath: Assets/Editor/TriLibCore/Scripts/CheckMappers.cs
uploadId: 752923

View File

@@ -1,3 +1,10 @@
fileFormatVersion: 2
guid: c201497c49b244e8a7ae0152eb5ad027
timeCreated: 1573070165
timeCreated: 1573070165
AssetOrigin:
serializedVersion: 1
productId: 157548
packageName: TriLib 2 - Model Loading Package
packageVersion: 2.5.5
assetPath: Assets/Editor/TriLibCore/Scripts/ImporterOption.cs
uploadId: 752923

View File

@@ -9,3 +9,10 @@ MonoImporter:
userData:
assetBundleName:
assetBundleVariant:
AssetOrigin:
serializedVersion: 1
productId: 157548
packageName: TriLib 2 - Model Loading Package
packageVersion: 2.5.5
assetPath: Assets/Editor/TriLibCore/Scripts/LipSyncMappingEditor.cs
uploadId: 752923

View File

@@ -9,3 +9,10 @@ MonoImporter:
userData:
assetBundleName:
assetBundleVariant:
AssetOrigin:
serializedVersion: 1
productId: 157548
packageName: TriLib 2 - Model Loading Package
packageVersion: 2.5.5
assetPath: Assets/Editor/TriLibCore/Scripts/MapperContextActions.cs
uploadId: 752923

View File

@@ -9,3 +9,10 @@ MonoImporter:
userData:
assetBundleName:
assetBundleVariant:
AssetOrigin:
serializedVersion: 1
productId: 157548
packageName: TriLib 2 - Model Loading Package
packageVersion: 2.5.5
assetPath: Assets/Editor/TriLibCore/Scripts/PreBuiltResources.cs
uploadId: 752923

View File

@@ -0,0 +1,52 @@
using UnityEditor;
using UnityEngine;
namespace TriLibCore.Editor
{
/// <summary>
/// Represents a class with Shader Variant Collection utility methods.
/// </summary>
public static class ShaderVariantCollectionUtils
{
/// <summary>
/// Adds the given Shader Variant Collection to the Graphic Settings preloaded shaders.
/// </summary>
/// <param name="shaderVariantCollection">The Shader Variant Collection to add.</param>
public static void AddShaderVariantCollectionToGraphicSettings(ShaderVariantCollection shaderVariantCollection)
{
var graphicSettingAssets = AssetDatabase.LoadAllAssetsAtPath("ProjectSettings/GraphicsSettings.asset");
if (graphicSettingAssets != null && graphicSettingAssets.Length > 0)
{
var graphicsSettings = new SerializedObject(graphicSettingAssets[0]);
var preloadedShaders = graphicsSettings.FindProperty("m_PreloadedShaders");
preloadedShaders.InsertArrayElementAtIndex(preloadedShaders.arraySize);
preloadedShaders.GetArrayElementAtIndex(preloadedShaders.arraySize - 1).objectReferenceValue = shaderVariantCollection;
graphicsSettings.ApplyModifiedProperties();
}
}
/// <summary>
/// Returns whether the given Shader Variant Collection exists on the Graphic Settings preloaded shaders.
/// </summary>
/// <param name="shaderVariantCollection">The Shader Variant Collection to check for.</param>
/// <returns>Whether the Shader Variant Collection exists on the Graphic Settings preloaded shaders.</returns>
public static bool IsShaderVariantCollectionPreloaded(ShaderVariantCollection shaderVariantCollection)
{
var graphicSettingAssets = AssetDatabase.LoadAllAssetsAtPath("ProjectSettings/GraphicsSettings.asset");
if (graphicSettingAssets != null && graphicSettingAssets.Length > 0)
{
var graphicsSettings = new SerializedObject(graphicSettingAssets[0]);
var preloadedShaders = graphicsSettings.FindProperty("m_PreloadedShaders");
for (var i = 0; i < preloadedShaders.arraySize; i++)
{
if (preloadedShaders.GetArrayElementAtIndex(i).objectReferenceValue == shaderVariantCollection)
{
return true;
}
}
return false;
}
return true;
}
}
}

View File

@@ -0,0 +1,18 @@
fileFormatVersion: 2
guid: 9d608c222bc0e864cbc3769c06a760e0
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
AssetOrigin:
serializedVersion: 1
productId: 157548
packageName: TriLib 2 - Model Loading Package
packageVersion: 2.5.5
assetPath: Assets/Editor/TriLibCore/Scripts/ShaderVariantCollectionUtils.cs
uploadId: 752923

View File

@@ -1,3 +1,10 @@
fileFormatVersion: 2
guid: f2d92827e4bc43d68ac3a39cbdee0da3
timeCreated: 1589229113
timeCreated: 1589229113
AssetOrigin:
serializedVersion: 1
productId: 157548
packageName: TriLib 2 - Model Loading Package
packageVersion: 2.5.5
assetPath: Assets/Editor/TriLibCore/Scripts/SimpleAnimationPlayerEditor.cs
uploadId: 752923

View File

@@ -2,7 +2,11 @@
using System;
using UnityEditor;
using Object = UnityEngine.Object;
#if UNITY_2020_2_OR_NEWER
using UnityEditor.AssetImporters;
#else
using UnityEditor.Experimental.AssetImporters;
#endif
namespace TriLibCore.Editor
{
#if !TRILIB_DISABLE_EDITOR_3MF_IMPORT

View File

@@ -9,3 +9,10 @@ MonoImporter:
userData:
assetBundleName:
assetBundleVariant:
AssetOrigin:
serializedVersion: 1
productId: 157548
packageName: TriLib 2 - Model Loading Package
packageVersion: 2.5.5
assetPath: Assets/Editor/TriLibCore/Scripts/TriLib3MFScriptedImporter.cs
uploadId: 752923

View File

@@ -7,9 +7,13 @@ namespace TriLibCore.Editor
{
public static bool IsSymbolDefined(string targetDefineSymbol)
{
var targetGroup = NamedBuildTarget.FromBuildTargetGroup(EditorUserBuildSettings.selectedBuildTargetGroup);
//var defineSymbols = PlayerSettings.GetScriptingDefineSymbolsForGroup(EditorUserBuildSettings.selectedBuildTargetGroup);
var defineSymbols = PlayerSettings.GetScriptingDefineSymbols(targetGroup);
#if UNITY_2020_3_OR_NEWER
var buildTargetGroup = EditorUserBuildSettings.selectedBuildTargetGroup;
var namedBuildTarget = NamedBuildTarget.FromBuildTargetGroup(buildTargetGroup);
var defineSymbols = PlayerSettings.GetScriptingDefineSymbols(namedBuildTarget);
#else
var defineSymbols = PlayerSettings.GetScriptingDefineSymbolsForGroup(EditorUserBuildSettings.selectedBuildTargetGroup);
#endif
var defineSymbolsArray = defineSymbols.Split(';');
for (var i = 0; i < defineSymbolsArray.Length; i++)
{
@@ -20,15 +24,18 @@ namespace TriLibCore.Editor
return true;
}
}
return false;
}
public static void UpdateSymbol(string targetDefineSymbol, bool value)
{
var targetGroup = NamedBuildTarget.FromBuildTargetGroup(EditorUserBuildSettings.selectedBuildTargetGroup);
var defineSymbols = PlayerSettings.GetScriptingDefineSymbols(targetGroup);
//var defineSymbols = PlayerSettings.GetScriptingDefineSymbolsForGroup(EditorUserBuildSettings.selectedBuildTargetGroup);
#if UNITY_2020_3_OR_NEWER
var buildTargetGroup = EditorUserBuildSettings.selectedBuildTargetGroup;
var namedBuildTarget = NamedBuildTarget.FromBuildTargetGroup(buildTargetGroup);
var defineSymbols = PlayerSettings.GetScriptingDefineSymbols(namedBuildTarget);
#else
var defineSymbols = PlayerSettings.GetScriptingDefineSymbolsForGroup(EditorUserBuildSettings.selectedBuildTargetGroup);
#endif
var defineSymbolsArray = defineSymbols.Split(';');
var newDefineSymbols = string.Empty;
var isDefined = false;
@@ -42,10 +49,8 @@ namespace TriLibCore.Editor
{
continue;
}
isDefined = true;
}
newDefineSymbols += string.Format("{0};", trimmedDefineSymbol);
}
@@ -53,8 +58,11 @@ namespace TriLibCore.Editor
{
newDefineSymbols += string.Format("{0};", targetDefineSymbol);
}
PlayerSettings.SetScriptingDefineSymbols(targetGroup, newDefineSymbols);
//PlayerSettings.SetScriptingDefineSymbolsForGroup(EditorUserBuildSettings.selectedBuildTargetGroup, newDefineSymbols);
#if UNITY_2020_3_OR_NEWER
PlayerSettings.SetScriptingDefineSymbols(namedBuildTarget, newDefineSymbols);
#else
PlayerSettings.SetScriptingDefineSymbolsForGroup(EditorUserBuildSettings.selectedBuildTargetGroup, newDefineSymbols);
#endif
}
}
}

View File

@@ -9,3 +9,10 @@ MonoImporter:
userData:
assetBundleName:
assetBundleVariant:
AssetOrigin:
serializedVersion: 1
productId: 157548
packageName: TriLib 2 - Model Loading Package
packageVersion: 2.5.5
assetPath: Assets/Editor/TriLibCore/Scripts/TriLibDefineSymbolsHelper.cs
uploadId: 752923

View File

@@ -9,3 +9,10 @@ MonoImporter:
userData:
assetBundleName:
assetBundleVariant:
AssetOrigin:
serializedVersion: 1
productId: 157548
packageName: TriLib 2 - Model Loading Package
packageVersion: 2.5.5
assetPath: Assets/Editor/TriLibCore/Scripts/TriLibDeprecationWarnings.cs
uploadId: 752923

View File

@@ -2,7 +2,11 @@
using System;
using UnityEditor;
using Object = UnityEngine.Object;
#if UNITY_2020_2_OR_NEWER
using UnityEditor.AssetImporters;
#else
using UnityEditor.Experimental.AssetImporters;
#endif
namespace TriLibCore.Editor
{
#if !TRILIB_DISABLE_EDITOR_GLTF_IMPORT

View File

@@ -9,3 +9,10 @@ MonoImporter:
userData:
assetBundleName:
assetBundleVariant:
AssetOrigin:
serializedVersion: 1
productId: 157548
packageName: TriLib 2 - Model Loading Package
packageVersion: 2.5.5
assetPath: Assets/Editor/TriLibCore/Scripts/TriLibGLTFScriptedImporter.cs
uploadId: 752923

View File

@@ -2,7 +2,11 @@
using System;
using UnityEditor;
using Object = UnityEngine.Object;
#if UNITY_2020_2_OR_NEWER
using UnityEditor.AssetImporters;
#else
using UnityEditor.Experimental.AssetImporters;
#endif
namespace TriLibCore.Editor
{
#if !TRILIB_DISABLE_EDITOR_PLY_IMPORT

View File

@@ -9,3 +9,10 @@ MonoImporter:
userData:
assetBundleName:
assetBundleVariant:
AssetOrigin:
serializedVersion: 1
productId: 157548
packageName: TriLib 2 - Model Loading Package
packageVersion: 2.5.5
assetPath: Assets/Editor/TriLibCore/Scripts/TriLibPLYScriptedImporter.cs
uploadId: 752923

View File

@@ -2,7 +2,11 @@
using System;
using UnityEditor;
using Object = UnityEngine.Object;
#if UNITY_2020_2_OR_NEWER
using UnityEditor.AssetImporters;
#else
using UnityEditor.Experimental.AssetImporters;
#endif
namespace TriLibCore.Editor
{
#if !TRILIB_DISABLE_EDITOR_STL_IMPORT

View File

@@ -9,3 +9,10 @@ MonoImporter:
userData:
assetBundleName:
assetBundleVariant:
AssetOrigin:
serializedVersion: 1
productId: 157548
packageName: TriLib 2 - Model Loading Package
packageVersion: 2.5.5
assetPath: Assets/Editor/TriLibCore/Scripts/TriLibSTLScriptedImporter.cs
uploadId: 752923

View File

@@ -1,4 +1,5 @@
#pragma warning disable CS0105
#pragma warning disable CS0618
using UnityEngine;
using TriLibCore.Interfaces;
using UnityEditor;
@@ -19,6 +20,8 @@ namespace TriLibCore.Editor
}
//Editor coroutines are not allowed
assetLoaderOptions.UseCoroutines = false;
//Asset Unloader is not suitable for editor loading
assetLoaderOptions.AddAssetUnloader = false;
return assetLoaderOptions;
}
set => userData = EditorJsonUtility.ToJson(value);

View File

@@ -9,3 +9,10 @@ MonoImporter:
userData:
assetBundleName:
assetBundleVariant:
AssetOrigin:
serializedVersion: 1
productId: 157548
packageName: TriLib 2 - Model Loading Package
packageVersion: 2.5.5
assetPath: Assets/Editor/TriLibCore/Scripts/TriLibScriptedImporter.cs
uploadId: 752923

View File

@@ -39,7 +39,7 @@ namespace TriLibCore.Editor
GUILayout.Label("You can disable runtime file-formats importing here");
EditorGUILayout.Space();
ShowConditionalToggle("Disable runtime FBX importing", "TRILIB_DISABLE_FBX_IMPORT");
ShowConditionalToggle("Disable runtime gLTF2 importing", "TRILIB_DISABLE_GLTF_IMPORT");
ShowConditionalToggle("Disable runtime glTF2 importing", "TRILIB_DISABLE_GLTF_IMPORT");
ShowConditionalToggle("Disable runtime OBJ importing", "TRILIB_DISABLE_OBJ_IMPORT");
ShowConditionalToggle("Disable runtime STL importing", "TRILIB_DISABLE_STL_IMPORT");
ShowConditionalToggle("Disable runtime PLY importing", "TRILIB_DISABLE_PLY_IMPORT");
@@ -51,7 +51,7 @@ namespace TriLibCore.Editor
EditorPrefs.SetInt("TriLibTimeout", EditorGUILayout.IntField("Loading timeout", EditorPrefs.GetInt("TriLibTimeout", 180)));
GUILayout.Label("You can disable in editor file-formats importing to avoid conflicts with other editor importers");
EditorGUILayout.Space();
ShowConditionalToggle("Disable in editor gLTF2 importing", "TRILIB_DISABLE_EDITOR_GLTF_IMPORT");
ShowConditionalToggle("Disable in editor glTF2 importing", "TRILIB_DISABLE_EDITOR_GLTF_IMPORT");
ShowConditionalToggle("Disable in editor PLY importing", "TRILIB_DISABLE_EDITOR_PLY_IMPORT");
ShowConditionalToggle("Disable in editor 3MF importing", "TRILIB_DISABLE_EDITOR_3MF_IMPORT");
ShowConditionalToggle("Disable in editor STL importing", "TRILIB_DISABLE_EDITOR_STL_IMPORT");
@@ -75,10 +75,8 @@ namespace TriLibCore.Editor
GUILayout.Label("Misc Options", EditorStyles.boldLabel);
GUILayout.Label("Advanced and experimental options");
EditorGUILayout.Space();
//todo: fbx sdk will be included in a future update
//ShowConditionalToggle("Use FBX SDK (Experimental)", "TRILIB_USE_FBXSDK");
ShowConditionalToggle("Enable UWP threaded loading (Experimental)", "TRILIB_ENABLE_UWP_THREADS");
ShowConditionalToggle("Enable gLTF2 Draco decompression (Experimental)", "TRILIB_DRACO");
ShowConditionalToggle("Enable glTF2 Draco decompression (Experimental)", "TRILIB_DRACO");
ShowConditionalToggle("Force synchronous loading", "TRILIB_FORCE_SYNC");
ShowConditionalToggle("Change thread names (Debug purposes only)", "TRILIB_USE_THREAD_NAMES");
ShowConditionalToggle("Disable asset loader options validations", "TRILIB_DISABLE_VALIDATIONS");
@@ -98,13 +96,16 @@ namespace TriLibCore.Editor
{
Application.OpenURL("https://ricardoreis.net/trilibwiki/index.php");
}
if (GUILayout.Button("Discord Server"))
{
Application.OpenURL("https://discord.gg/FV6tqCxY2U");
}
if (GUILayout.Button("Support"))
{
Application.OpenURL("https://ricardoreis.net/contact/");
}
GUILayout.EndHorizontal();
GUILayout.EndVertical();
CheckMappers.Initialize();
base.OnGUI(searchContext);
}

View File

@@ -1,3 +1,10 @@
fileFormatVersion: 2
guid: a5b653e1047e419fb6dc0d9b9d4d2c46
timeCreated: 1573055735
timeCreated: 1573055735
AssetOrigin:
serializedVersion: 1
productId: 157548
packageName: TriLib 2 - Model Loading Package
packageVersion: 2.5.5
assetPath: Assets/Editor/TriLibCore/Scripts/TriLibSettingsProvider.cs
uploadId: 752923

View File

@@ -9,3 +9,10 @@ MonoImporter:
userData:
assetBundleName:
assetBundleVariant:
AssetOrigin:
serializedVersion: 1
productId: 157548
packageName: TriLib 2 - Model Loading Package
packageVersion: 2.5.5
assetPath: Assets/Editor/TriLibCore/Scripts/TriLibSplashScreen.cs
uploadId: 752923

View File

@@ -9,3 +9,10 @@ MonoImporter:
userData:
assetBundleName:
assetBundleVariant:
AssetOrigin:
serializedVersion: 1
productId: 157548
packageName: TriLib 2 - Model Loading Package
packageVersion: 2.5.5
assetPath: Assets/Editor/TriLibCore/Scripts/TriLibVersionInfo.cs
uploadId: 752923

View File

@@ -1,6 +1,9 @@
using System.IO;
using System;
using System.IO;
using System.Text.RegularExpressions;
using UnityEditor;
using UnityEngine;
using UnityEngine.Windows;
namespace TriLibCore.Editor
{
@@ -8,8 +11,6 @@ namespace TriLibCore.Editor
{
private class Styles
{
public const float WindowWidth = 0.75f;
public const float WindowHeight = 0.5f;
public static readonly GUIStyle HeaderStyle = new GUIStyle("label") { fontSize = 19, fontStyle = FontStyle.Bold, margin = new RectOffset(10, 10, 5, 5) };
public static readonly GUIStyle SubHeaderStyle = new GUIStyle("label") { margin = new RectOffset(10, 10, 5, 5), fontStyle = FontStyle.Bold };
public static readonly GUIStyle TextStyle = new GUIStyle("label") { margin = new RectOffset(20, 20, 5, 5) };
@@ -19,8 +20,12 @@ namespace TriLibCore.Editor
private string _text;
private bool _loaded;
private Vector2 _changeLogScrollPosition;
private Vector2 _notesScrollPosition;
private Vector2 _scrollPosition;
private static readonly string ChangelogPattern = @"(?<=Changelog:)(.*?)(?=(Version Notes:|$))";
private static readonly string VersionNotesPattern = @"(?<=Version Notes:)(.*)";
private static readonly string Pattern = @"(https?://[^\s]+)";
private static readonly Regex URIRegex = new Regex(@"^https?://");
private static TriLibVersionNotes Instance
{
@@ -28,7 +33,6 @@ namespace TriLibCore.Editor
{
var window = GetWindow<TriLibVersionNotes>();
window.titleContent = new GUIContent("TriLib Version Notes");
window.minSize = new Vector2(Styles.WindowWidth * Screen.width, Styles.WindowHeight * Screen.height);
return window;
}
}
@@ -72,61 +76,46 @@ namespace TriLibCore.Editor
}
_loaded = true;
}
EditorGUILayout.BeginVertical();
using (var stringReader = new StringReader(_text))
_scrollPosition = EditorGUILayout.BeginScrollView(_scrollPosition);
var changelogMatch = Regex.Match(_text, ChangelogPattern, RegexOptions.Singleline);
var changelogSection = changelogMatch.Success ? changelogMatch.Value.Trim() : "No changelog found";
var versionNotesMatch = Regex.Match(_text, VersionNotesPattern, RegexOptions.Singleline);
var versionNotesSection = versionNotesMatch.Success ? versionNotesMatch.Value.Trim() : "No version notes found";
GUILayout.Label("Version Notes", Styles.SubHeaderStyle);
var groups = Regex.Split(versionNotesSection, Pattern);
foreach (var group in groups)
{
var changeLogOpen = false;
var version = stringReader.ReadLine();
GUILayout.Label($"TriLib {version}", Styles.HeaderStyle);
for (; ; )
if (!string.IsNullOrEmpty(group))
{
var line = stringReader.ReadLine();
if (line == null)
if (URIRegex.IsMatch(group))
{
break;
}
if (line.ToLowerInvariant() == "changelog:")
{
EditorGUILayout.Space();
GUILayout.Label("Changelog", Styles.SubHeaderStyle);
_changeLogScrollPosition = GUILayout.BeginScrollView(_changeLogScrollPosition, GUILayout.Height(260f));
changeLogOpen = true;
}
else if (line.ToLowerInvariant() == "version notes:")
{
if (changeLogOpen)
GUILayout.BeginHorizontal();
GUILayout.Space(20);
if (EditorGUILayout.LinkButton(group))
{
GUILayout.EndScrollView();
changeLogOpen = false;
Application.OpenURL(group);
}
EditorGUILayout.Space();
GUILayout.Label("Version Notes", Styles.SubHeaderStyle);
var versionInfo = stringReader.ReadToEnd();
_notesScrollPosition = EditorGUILayout.BeginScrollView(_notesScrollPosition);
EditorGUILayout.TextArea(versionInfo, Styles.TextAreaStyle);
EditorGUILayout.EndScrollView();
break;
GUILayout.EndHorizontal();
}
else
{
GUILayout.Label(line, Styles.TextStyle);
EditorGUILayout.TextArea(group, Styles.TextAreaStyle);
}
}
if (changeLogOpen)
{
GUILayout.EndScrollView();
}
EditorGUILayout.EndVertical();
EditorGUILayout.Space();
GUILayout.Label("You can show this window on the Project Settings/TriLib area", Styles.SubHeaderStyle);
EditorGUILayout.BeginHorizontal();
GUILayout.FlexibleSpace();
if (GUILayout.Button("Close", Styles.ButtonStyle))
{
Close();
}
EditorGUILayout.EndHorizontal();
}
EditorGUILayout.Space();
GUILayout.Label("Changelog", Styles.SubHeaderStyle);
EditorGUILayout.TextArea(changelogSection, Styles.TextAreaStyle);
EditorGUILayout.EndScrollView();
EditorGUILayout.Space();
GUILayout.Label("You can show this window on the Project Settings/TriLib area", Styles.SubHeaderStyle);
EditorGUILayout.BeginHorizontal();
GUILayout.FlexibleSpace();
if (GUILayout.Button("Close", Styles.ButtonStyle))
{
Close();
}
EditorGUILayout.EndHorizontal();
}
}
}

View File

@@ -9,3 +9,10 @@ MonoImporter:
userData:
assetBundleName:
assetBundleVariant:
AssetOrigin:
serializedVersion: 1
productId: 157548
packageName: TriLib 2 - Model Loading Package
packageVersion: 2.5.5
assetPath: Assets/Editor/TriLibCore/Scripts/TriLibVersionNotes.cs
uploadId: 752923

View File

@@ -0,0 +1,40 @@
fileFormatVersion: 2
guid: 1677d96caecc54a479a901472beec0e7
PluginImporter:
externalObjects: {}
serializedVersion: 2
iconMap: {}
executionOrder: {}
defineConstraints: []
isPreloaded: 0
isOverridable: 0
isExplicitlyReferenced: 0
validateReferences: 1
platformData:
- first:
Any:
second:
enabled: 1
settings: {}
- first:
Editor: Editor
second:
enabled: 0
settings:
DefaultValueInitialized: true
- first:
Windows Store Apps: WindowsStoreApps
second:
enabled: 0
settings:
CPU: AnyCPU
userData:
assetBundleName:
assetBundleVariant:
AssetOrigin:
serializedVersion: 1
productId: 157548
packageName: TriLib 2 - Model Loading Package
packageVersion: 2.5.5
assetPath: Assets/Plugins/TriLib/Debug/ICSharpCode.SharpZipLib.dll
uploadId: 752923

Binary file not shown.

View File

@@ -0,0 +1,40 @@
fileFormatVersion: 2
guid: 8be21df24d4fae54784eb25606dbfa07
PluginImporter:
externalObjects: {}
serializedVersion: 2
iconMap: {}
executionOrder: {}
defineConstraints: []
isPreloaded: 0
isOverridable: 0
isExplicitlyReferenced: 0
validateReferences: 1
platformData:
- first:
Any:
second:
enabled: 1
settings: {}
- first:
Editor: Editor
second:
enabled: 0
settings:
DefaultValueInitialized: true
- first:
Windows Store Apps: WindowsStoreApps
second:
enabled: 0
settings:
CPU: AnyCPU
userData:
assetBundleName:
assetBundleVariant:
AssetOrigin:
serializedVersion: 1
productId: 157548
packageName: TriLib 2 - Model Loading Package
packageVersion: 2.5.5
assetPath: Assets/Plugins/TriLib/Debug/IxMilia.ThreeMf.dll
uploadId: 752923

Binary file not shown.

View File

@@ -0,0 +1,40 @@
fileFormatVersion: 2
guid: 8185ce2036dadcd4d9ef9fcdf2cbd3e4
PluginImporter:
externalObjects: {}
serializedVersion: 2
iconMap: {}
executionOrder: {}
defineConstraints: []
isPreloaded: 0
isOverridable: 0
isExplicitlyReferenced: 0
validateReferences: 1
platformData:
- first:
Any:
second:
enabled: 1
settings: {}
- first:
Editor: Editor
second:
enabled: 0
settings:
DefaultValueInitialized: true
- first:
Windows Store Apps: WindowsStoreApps
second:
enabled: 0
settings:
CPU: AnyCPU
userData:
assetBundleName:
assetBundleVariant:
AssetOrigin:
serializedVersion: 1
productId: 157548
packageName: TriLib 2 - Model Loading Package
packageVersion: 2.5.5
assetPath: Assets/Plugins/TriLib/Debug/LibTessDotNet.dll
uploadId: 752923

Binary file not shown.

View File

@@ -0,0 +1,40 @@
fileFormatVersion: 2
guid: 34ae3d9f2f4574f4eae07b11e2303010
PluginImporter:
externalObjects: {}
serializedVersion: 2
iconMap: {}
executionOrder: {}
defineConstraints: []
isPreloaded: 0
isOverridable: 0
isExplicitlyReferenced: 0
validateReferences: 1
platformData:
- first:
Any:
second:
enabled: 1
settings: {}
- first:
Editor: Editor
second:
enabled: 0
settings:
DefaultValueInitialized: true
- first:
Windows Store Apps: WindowsStoreApps
second:
enabled: 0
settings:
CPU: AnyCPU
userData:
assetBundleName:
assetBundleVariant:
AssetOrigin:
serializedVersion: 1
productId: 157548
packageName: TriLib 2 - Model Loading Package
packageVersion: 2.5.5
assetPath: Assets/Plugins/TriLib/Debug/StbImageSharp.dll
uploadId: 752923

View File

@@ -5,32 +5,12 @@ PluginImporter:
serializedVersion: 2
iconMap: {}
executionOrder: {}
defineConstraints:
- UNITY_EDITOR || DEVELOPMENT
defineConstraints: []
isPreloaded: 0
isOverridable: 0
isExplicitlyReferenced: 0
validateReferences: 1
platformData:
- first:
: Any
second:
enabled: 0
settings:
Exclude Android: 0
Exclude Editor: 0
Exclude Linux64: 0
Exclude OSXUniversal: 0
Exclude WebGL: 0
Exclude Win: 0
Exclude Win64: 0
Exclude WindowsStoreApps: 0
Exclude iOS: 0
- first:
Android: Android
second:
enabled: 1
settings: {}
- first:
Any:
second:
@@ -39,45 +19,22 @@ PluginImporter:
- first:
Editor: Editor
second:
enabled: 1
enabled: 0
settings:
DefaultValueInitialized: true
- first:
Standalone: Linux64
second:
enabled: 1
settings: {}
- first:
Standalone: OSXUniversal
second:
enabled: 1
settings: {}
- first:
Standalone: Win
second:
enabled: 1
settings: {}
- first:
Standalone: Win64
second:
enabled: 1
settings: {}
- first:
WebGL: WebGL
second:
enabled: 1
settings: {}
- first:
Windows Store Apps: WindowsStoreApps
second:
enabled: 1
enabled: 0
settings:
CPU: AnyCPU
- first:
iPhone: iOS
second:
enabled: 1
settings: {}
userData:
assetBundleName:
assetBundleVariant:
AssetOrigin:
serializedVersion: 1
productId: 157548
packageName: TriLib 2 - Model Loading Package
packageVersion: 2.5.5
assetPath: Assets/Plugins/TriLib/Debug/TriLibCore.Dae.dll
uploadId: 752923

View File

@@ -5,32 +5,12 @@ PluginImporter:
serializedVersion: 2
iconMap: {}
executionOrder: {}
defineConstraints:
- UNITY_EDITOR || DEVELOPMENT
defineConstraints: []
isPreloaded: 0
isOverridable: 0
isExplicitlyReferenced: 0
validateReferences: 1
platformData:
- first:
: Any
second:
enabled: 0
settings:
Exclude Android: 0
Exclude Editor: 0
Exclude Linux64: 0
Exclude OSXUniversal: 0
Exclude WebGL: 0
Exclude Win: 0
Exclude Win64: 0
Exclude WindowsStoreApps: 0
Exclude iOS: 0
- first:
Android: Android
second:
enabled: 1
settings: {}
- first:
Any:
second:
@@ -39,45 +19,22 @@ PluginImporter:
- first:
Editor: Editor
second:
enabled: 1
enabled: 0
settings:
DefaultValueInitialized: true
- first:
Standalone: Linux64
second:
enabled: 1
settings: {}
- first:
Standalone: OSXUniversal
second:
enabled: 1
settings: {}
- first:
Standalone: Win
second:
enabled: 1
settings: {}
- first:
Standalone: Win64
second:
enabled: 1
settings: {}
- first:
WebGL: WebGL
second:
enabled: 1
settings: {}
- first:
Windows Store Apps: WindowsStoreApps
second:
enabled: 1
enabled: 0
settings:
CPU: AnyCPU
- first:
iPhone: iOS
second:
enabled: 1
settings: {}
userData:
assetBundleName:
assetBundleVariant:
AssetOrigin:
serializedVersion: 1
productId: 157548
packageName: TriLib 2 - Model Loading Package
packageVersion: 2.5.5
assetPath: Assets/Plugins/TriLib/Debug/TriLibCore.Fbx.dll
uploadId: 752923

View File

@@ -5,32 +5,12 @@ PluginImporter:
serializedVersion: 2
iconMap: {}
executionOrder: {}
defineConstraints:
- UNITY_EDITOR || DEVELOPMENT
defineConstraints: []
isPreloaded: 0
isOverridable: 0
isExplicitlyReferenced: 0
validateReferences: 1
platformData:
- first:
: Any
second:
enabled: 0
settings:
Exclude Android: 0
Exclude Editor: 0
Exclude Linux64: 0
Exclude OSXUniversal: 0
Exclude WebGL: 0
Exclude Win: 0
Exclude Win64: 0
Exclude WindowsStoreApps: 0
Exclude iOS: 0
- first:
Android: Android
second:
enabled: 1
settings: {}
- first:
Any:
second:
@@ -39,45 +19,22 @@ PluginImporter:
- first:
Editor: Editor
second:
enabled: 1
enabled: 0
settings:
DefaultValueInitialized: true
- first:
Standalone: Linux64
second:
enabled: 1
settings: {}
- first:
Standalone: OSXUniversal
second:
enabled: 1
settings: {}
- first:
Standalone: Win
second:
enabled: 1
settings: {}
- first:
Standalone: Win64
second:
enabled: 1
settings: {}
- first:
WebGL: WebGL
second:
enabled: 1
settings: {}
- first:
Windows Store Apps: WindowsStoreApps
second:
enabled: 1
enabled: 0
settings:
CPU: AnyCPU
- first:
iPhone: iOS
second:
enabled: 1
settings: {}
userData:
assetBundleName:
assetBundleVariant:
AssetOrigin:
serializedVersion: 1
productId: 157548
packageName: TriLib 2 - Model Loading Package
packageVersion: 2.5.5
assetPath: Assets/Plugins/TriLib/Debug/TriLibCore.Gltf.Draco.dll
uploadId: 752923

View File

@@ -5,32 +5,12 @@ PluginImporter:
serializedVersion: 2
iconMap: {}
executionOrder: {}
defineConstraints:
- UNITY_EDITOR || DEVELOPMENT
defineConstraints: []
isPreloaded: 0
isOverridable: 0
isExplicitlyReferenced: 0
validateReferences: 1
platformData:
- first:
: Any
second:
enabled: 0
settings:
Exclude Android: 0
Exclude Editor: 0
Exclude Linux64: 0
Exclude OSXUniversal: 0
Exclude WebGL: 0
Exclude Win: 0
Exclude Win64: 0
Exclude WindowsStoreApps: 0
Exclude iOS: 0
- first:
Android: Android
second:
enabled: 1
settings: {}
- first:
Any:
second:
@@ -39,45 +19,22 @@ PluginImporter:
- first:
Editor: Editor
second:
enabled: 1
enabled: 0
settings:
DefaultValueInitialized: true
- first:
Standalone: Linux64
second:
enabled: 1
settings: {}
- first:
Standalone: OSXUniversal
second:
enabled: 1
settings: {}
- first:
Standalone: Win
second:
enabled: 1
settings: {}
- first:
Standalone: Win64
second:
enabled: 1
settings: {}
- first:
WebGL: WebGL
second:
enabled: 1
settings: {}
- first:
Windows Store Apps: WindowsStoreApps
second:
enabled: 1
enabled: 0
settings:
CPU: AnyCPU
- first:
iPhone: iOS
second:
enabled: 1
settings: {}
userData:
assetBundleName:
assetBundleVariant:
AssetOrigin:
serializedVersion: 1
productId: 157548
packageName: TriLib 2 - Model Loading Package
packageVersion: 2.5.5
assetPath: Assets/Plugins/TriLib/Debug/TriLibCore.Gltf.dll
uploadId: 752923

View File

@@ -5,32 +5,12 @@ PluginImporter:
serializedVersion: 2
iconMap: {}
executionOrder: {}
defineConstraints:
- UNITY_EDITOR || DEVELOPMENT
defineConstraints: []
isPreloaded: 0
isOverridable: 0
isExplicitlyReferenced: 0
validateReferences: 1
platformData:
- first:
: Any
second:
enabled: 0
settings:
Exclude Android: 0
Exclude Editor: 0
Exclude Linux64: 0
Exclude OSXUniversal: 0
Exclude WebGL: 0
Exclude Win: 0
Exclude Win64: 0
Exclude WindowsStoreApps: 0
Exclude iOS: 0
- first:
Android: Android
second:
enabled: 1
settings: {}
- first:
Any:
second:
@@ -39,45 +19,22 @@ PluginImporter:
- first:
Editor: Editor
second:
enabled: 1
enabled: 0
settings:
DefaultValueInitialized: true
- first:
Standalone: Linux64
second:
enabled: 1
settings: {}
- first:
Standalone: OSXUniversal
second:
enabled: 1
settings: {}
- first:
Standalone: Win
second:
enabled: 1
settings: {}
- first:
Standalone: Win64
second:
enabled: 1
settings: {}
- first:
WebGL: WebGL
second:
enabled: 1
settings: {}
- first:
Windows Store Apps: WindowsStoreApps
second:
enabled: 1
enabled: 0
settings:
CPU: AnyCPU
- first:
iPhone: iOS
second:
enabled: 1
settings: {}
userData:
assetBundleName:
assetBundleVariant:
AssetOrigin:
serializedVersion: 1
productId: 157548
packageName: TriLib 2 - Model Loading Package
packageVersion: 2.5.5
assetPath: Assets/Plugins/TriLib/Debug/TriLibCore.HDRLoader.dll
uploadId: 752923

View File

@@ -5,32 +5,12 @@ PluginImporter:
serializedVersion: 2
iconMap: {}
executionOrder: {}
defineConstraints:
- UNITY_EDITOR || DEVELOPMENT
defineConstraints: []
isPreloaded: 0
isOverridable: 0
isExplicitlyReferenced: 0
validateReferences: 1
platformData:
- first:
: Any
second:
enabled: 0
settings:
Exclude Android: 0
Exclude Editor: 0
Exclude Linux64: 0
Exclude OSXUniversal: 0
Exclude WebGL: 0
Exclude Win: 0
Exclude Win64: 0
Exclude WindowsStoreApps: 0
Exclude iOS: 0
- first:
Android: Android
second:
enabled: 1
settings: {}
- first:
Any:
second:
@@ -39,45 +19,22 @@ PluginImporter:
- first:
Editor: Editor
second:
enabled: 1
enabled: 0
settings:
DefaultValueInitialized: true
- first:
Standalone: Linux64
second:
enabled: 1
settings: {}
- first:
Standalone: OSXUniversal
second:
enabled: 1
settings: {}
- first:
Standalone: Win
second:
enabled: 1
settings: {}
- first:
Standalone: Win64
second:
enabled: 1
settings: {}
- first:
WebGL: WebGL
second:
enabled: 1
settings: {}
- first:
Windows Store Apps: WindowsStoreApps
second:
enabled: 1
enabled: 0
settings:
CPU: AnyCPU
- first:
iPhone: iOS
second:
enabled: 1
settings: {}
userData:
assetBundleName:
assetBundleVariant:
AssetOrigin:
serializedVersion: 1
productId: 157548
packageName: TriLib 2 - Model Loading Package
packageVersion: 2.5.5
assetPath: Assets/Plugins/TriLib/Debug/TriLibCore.Obj.dll
uploadId: 752923

View File

@@ -5,33 +5,12 @@ PluginImporter:
serializedVersion: 2
iconMap: {}
executionOrder: {}
defineConstraints:
- UNITY_EDITOR || DEVELOPMENT
defineConstraints: []
isPreloaded: 0
isOverridable: 0
isExplicitlyReferenced: 0
validateReferences: 1
platformData:
- first:
: Any
second:
enabled: 0
settings:
Exclude Android: 0
Exclude Editor: 0
Exclude Linux64: 0
Exclude OSXUniversal: 0
Exclude WebGL: 0
Exclude Win: 0
Exclude Win64: 0
Exclude WindowsStoreApps: 0
Exclude iOS: 0
- first:
Android: Android
second:
enabled: 1
settings:
CPU: ARMv7
- first:
Any:
second:
@@ -40,59 +19,22 @@ PluginImporter:
- first:
Editor: Editor
second:
enabled: 1
enabled: 0
settings:
CPU: AnyCPU
DefaultValueInitialized: true
OS: AnyOS
- first:
Standalone: Linux64
second:
enabled: 1
settings:
CPU: AnyCPU
- first:
Standalone: OSXUniversal
second:
enabled: 1
settings:
CPU: x86_64
- first:
Standalone: Win
second:
enabled: 1
settings:
CPU: x86
- first:
Standalone: Win64
second:
enabled: 1
settings:
CPU: x86_64
- first:
WebGL: WebGL
second:
enabled: 1
settings: {}
- first:
Windows Store Apps: WindowsStoreApps
second:
enabled: 1
enabled: 0
settings:
CPU: AnyCPU
DontProcess: false
PlaceholderPath:
SDK: AnySDK
ScriptingBackend: AnyScriptingBackend
- first:
iPhone: iOS
second:
enabled: 1
settings:
AddToEmbeddedBinaries: false
CPU: AnyCPU
CompileFlags:
FrameworkDependencies:
userData:
assetBundleName:
assetBundleVariant:
AssetOrigin:
serializedVersion: 1
productId: 157548
packageName: TriLib 2 - Model Loading Package
packageVersion: 2.5.5
assetPath: Assets/Plugins/TriLib/Debug/TriLibCore.Ply.dll
uploadId: 752923

View File

@@ -5,32 +5,12 @@ PluginImporter:
serializedVersion: 2
iconMap: {}
executionOrder: {}
defineConstraints:
- UNITY_EDITOR || DEVELOPMENT
defineConstraints: []
isPreloaded: 0
isOverridable: 0
isExplicitlyReferenced: 0
validateReferences: 1
platformData:
- first:
: Any
second:
enabled: 0
settings:
Exclude Android: 0
Exclude Editor: 0
Exclude Linux64: 0
Exclude OSXUniversal: 0
Exclude WebGL: 0
Exclude Win: 0
Exclude Win64: 0
Exclude WindowsStoreApps: 0
Exclude iOS: 0
- first:
Android: Android
second:
enabled: 1
settings: {}
- first:
Any:
second:
@@ -39,45 +19,22 @@ PluginImporter:
- first:
Editor: Editor
second:
enabled: 1
enabled: 0
settings:
DefaultValueInitialized: true
- first:
Standalone: Linux64
second:
enabled: 1
settings: {}
- first:
Standalone: OSXUniversal
second:
enabled: 1
settings: {}
- first:
Standalone: Win
second:
enabled: 1
settings: {}
- first:
Standalone: Win64
second:
enabled: 1
settings: {}
- first:
WebGL: WebGL
second:
enabled: 1
settings: {}
- first:
Windows Store Apps: WindowsStoreApps
second:
enabled: 1
enabled: 0
settings:
CPU: AnyCPU
- first:
iPhone: iOS
second:
enabled: 1
settings: {}
userData:
assetBundleName:
assetBundleVariant:
AssetOrigin:
serializedVersion: 1
productId: 157548
packageName: TriLib 2 - Model Loading Package
packageVersion: 2.5.5
assetPath: Assets/Plugins/TriLib/Debug/TriLibCore.Stl.dll
uploadId: 752923

View File

@@ -5,32 +5,12 @@ PluginImporter:
serializedVersion: 2
iconMap: {}
executionOrder: {}
defineConstraints:
- UNITY_EDITOR || DEVELOPMENT
defineConstraints: []
isPreloaded: 0
isOverridable: 0
isExplicitlyReferenced: 0
validateReferences: 1
platformData:
- first:
: Any
second:
enabled: 0
settings:
Exclude Android: 0
Exclude Editor: 0
Exclude Linux64: 0
Exclude OSXUniversal: 0
Exclude WebGL: 0
Exclude Win: 0
Exclude Win64: 0
Exclude WindowsStoreApps: 0
Exclude iOS: 0
- first:
Android: Android
second:
enabled: 1
settings: {}
- first:
Any:
second:
@@ -39,45 +19,22 @@ PluginImporter:
- first:
Editor: Editor
second:
enabled: 1
enabled: 0
settings:
DefaultValueInitialized: true
- first:
Standalone: Linux64
second:
enabled: 1
settings: {}
- first:
Standalone: OSXUniversal
second:
enabled: 1
settings: {}
- first:
Standalone: Win
second:
enabled: 1
settings: {}
- first:
Standalone: Win64
second:
enabled: 1
settings: {}
- first:
WebGL: WebGL
second:
enabled: 1
settings: {}
- first:
Windows Store Apps: WindowsStoreApps
second:
enabled: 1
enabled: 0
settings:
CPU: AnyCPU
- first:
iPhone: iOS
second:
enabled: 1
settings: {}
userData:
assetBundleName:
assetBundleVariant:
AssetOrigin:
serializedVersion: 1
productId: 157548
packageName: TriLib 2 - Model Loading Package
packageVersion: 2.5.5
assetPath: Assets/Plugins/TriLib/Debug/TriLibCore.ThreeMf.dll
uploadId: 752923

View File

@@ -5,33 +5,12 @@ PluginImporter:
serializedVersion: 2
iconMap: {}
executionOrder: {}
defineConstraints:
- UNITY_EDITOR || DEVELOPMENT
defineConstraints: []
isPreloaded: 0
isOverridable: 0
isExplicitlyReferenced: 0
validateReferences: 0
validateReferences: 1
platformData:
- first:
: Any
second:
enabled: 0
settings:
Exclude Android: 0
Exclude Editor: 0
Exclude Linux64: 0
Exclude OSXUniversal: 0
Exclude WebGL: 0
Exclude Win: 0
Exclude Win64: 0
Exclude WindowsStoreApps: 0
Exclude iOS: 0
- first:
Android: Android
second:
enabled: 1
settings:
CPU: ARMv7
- first:
Any:
second:
@@ -40,59 +19,22 @@ PluginImporter:
- first:
Editor: Editor
second:
enabled: 1
enabled: 0
settings:
CPU: AnyCPU
DefaultValueInitialized: true
OS: AnyOS
- first:
Standalone: Linux64
second:
enabled: 1
settings:
CPU: AnyCPU
- first:
Standalone: OSXUniversal
second:
enabled: 1
settings:
CPU: x86_64
- first:
Standalone: Win
second:
enabled: 1
settings:
CPU: x86
- first:
Standalone: Win64
second:
enabled: 1
settings:
CPU: x86_64
- first:
WebGL: WebGL
second:
enabled: 1
settings: {}
- first:
Windows Store Apps: WindowsStoreApps
second:
enabled: 1
enabled: 0
settings:
CPU: AnyCPU
DontProcess: false
PlaceholderPath:
SDK: AnySDK
ScriptingBackend: AnyScriptingBackend
- first:
iPhone: iOS
second:
enabled: 1
settings:
AddToEmbeddedBinaries: false
CPU: AnyCPU
CompileFlags:
FrameworkDependencies:
userData:
assetBundleName:
assetBundleVariant:
AssetOrigin:
serializedVersion: 1
productId: 157548
packageName: TriLib 2 - Model Loading Package
packageVersion: 2.5.5
assetPath: Assets/Plugins/TriLib/Debug/TriLibCore.dll
uploadId: 752923

View File

@@ -80,3 +80,10 @@ PluginImporter:
userData:
assetBundleName:
assetBundleVariant:
AssetOrigin:
serializedVersion: 1
productId: 157548
packageName: TriLib 2 - Model Loading Package
packageVersion: 2.5.5
assetPath: Assets/Plugins/TriLibGltfDraco/Android/arm64-v8a/libdracodec_unity.so
uploadId: 752923

View File

@@ -80,3 +80,10 @@ PluginImporter:
userData:
assetBundleName:
assetBundleVariant:
AssetOrigin:
serializedVersion: 1
productId: 157548
packageName: TriLib 2 - Model Loading Package
packageVersion: 2.5.5
assetPath: Assets/Plugins/TriLibGltfDraco/Android/armeabi-v7a/libdracodec_unity.so
uploadId: 752923

View File

@@ -0,0 +1,93 @@
fileFormatVersion: 2
guid: b54d30c9662afcb448f24f1d94ab3b61
folderAsset: yes
PluginImporter:
externalObjects: {}
serializedVersion: 2
iconMap: {}
executionOrder: {}
defineConstraints: []
isPreloaded: 0
isOverridable: 0
isExplicitlyReferenced: 0
validateReferences: 1
platformData:
- first:
: Any
second:
enabled: 0
settings:
Exclude Android: 1
Exclude Editor: 1
Exclude Linux64: 1
Exclude OSXUniversal: 0
Exclude WebGL: 1
Exclude Win: 1
Exclude Win64: 1
Exclude WindowsStoreApps: 1
Exclude iOS: 1
- first:
Android: Android
second:
enabled: 0
settings:
CPU: ARMv7
- first:
Any:
second:
enabled: 0
settings: {}
- first:
Editor: Editor
second:
enabled: 0
settings:
CPU: AnyCPU
DefaultValueInitialized: true
OS: OSX
- first:
Standalone: Linux64
second:
enabled: 0
settings:
CPU: AnyCPU
- first:
Standalone: OSXUniversal
second:
enabled: 1
settings:
CPU: x86_64
- first:
Standalone: Win
second:
enabled: 0
settings:
CPU: x86
- first:
Standalone: Win64
second:
enabled: 0
settings:
CPU: x86_64
- first:
Windows Store Apps: WindowsStoreApps
second:
enabled: 0
settings:
CPU: AnyCPU
DontProcess: false
PlaceholderPath:
SDK: AnySDK
ScriptingBackend: AnyScriptingBackend
- first:
iPhone: iOS
second:
enabled: 0
settings:
AddToEmbeddedBinaries: false
CPU: AnyCPU
CompileFlags:
FrameworkDependencies:
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 9a4f882777573f74d8f3a36bb62d40e1
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,46 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>BuildMachineOSBuild</key>
<string>21F79</string>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleExecutable</key>
<string>dracodec_unity</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleLongVersionString</key>
<string></string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleSupportedPlatforms</key>
<array>
<string>MacOSX</string>
</array>
<key>CSResourcesFileMapped</key>
<true/>
<key>DTCompiler</key>
<string>com.apple.compilers.llvm.clang.1_0</string>
<key>DTPlatformBuild</key>
<string>13A1030d</string>
<key>DTPlatformName</key>
<string>macosx</string>
<key>DTPlatformVersion</key>
<string>12.0</string>
<key>DTSDKBuild</key>
<string>21A344</string>
<key>DTSDKName</key>
<string>macosx12.0</string>
<key>DTXcode</key>
<string>1310</string>
<key>DTXcodeBuild</key>
<string>13A1030d</string>
<key>LSMinimumSystemVersion</key>
<string>12.0</string>
<key>NSHumanReadableCopyright</key>
<string></string>
</dict>
</plist>

View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 66060e14a0254fc4aa00d1d421846768
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: e1af676f8d590c141851b6211afb7050
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -0,0 +1,115 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>files</key>
<dict/>
<key>files2</key>
<dict/>
<key>rules</key>
<dict>
<key>^Resources/</key>
<true/>
<key>^Resources/.*\.lproj/</key>
<dict>
<key>optional</key>
<true/>
<key>weight</key>
<real>1000</real>
</dict>
<key>^Resources/.*\.lproj/locversion.plist$</key>
<dict>
<key>omit</key>
<true/>
<key>weight</key>
<real>1100</real>
</dict>
<key>^Resources/Base\.lproj/</key>
<dict>
<key>weight</key>
<real>1010</real>
</dict>
<key>^version.plist$</key>
<true/>
</dict>
<key>rules2</key>
<dict>
<key>.*\.dSYM($|/)</key>
<dict>
<key>weight</key>
<real>11</real>
</dict>
<key>^(.*/)?\.DS_Store$</key>
<dict>
<key>omit</key>
<true/>
<key>weight</key>
<real>2000</real>
</dict>
<key>^(Frameworks|SharedFrameworks|PlugIns|Plug-ins|XPCServices|Helpers|MacOS|Library/(Automator|Spotlight|LoginItems))/</key>
<dict>
<key>nested</key>
<true/>
<key>weight</key>
<real>10</real>
</dict>
<key>^.*</key>
<true/>
<key>^Info\.plist$</key>
<dict>
<key>omit</key>
<true/>
<key>weight</key>
<real>20</real>
</dict>
<key>^PkgInfo$</key>
<dict>
<key>omit</key>
<true/>
<key>weight</key>
<real>20</real>
</dict>
<key>^Resources/</key>
<dict>
<key>weight</key>
<real>20</real>
</dict>
<key>^Resources/.*\.lproj/</key>
<dict>
<key>optional</key>
<true/>
<key>weight</key>
<real>1000</real>
</dict>
<key>^Resources/.*\.lproj/locversion.plist$</key>
<dict>
<key>omit</key>
<true/>
<key>weight</key>
<real>1100</real>
</dict>
<key>^Resources/Base\.lproj/</key>
<dict>
<key>weight</key>
<real>1010</real>
</dict>
<key>^[^/]+$</key>
<dict>
<key>nested</key>
<true/>
<key>weight</key>
<real>10</real>
</dict>
<key>^embedded\.provisionprofile$</key>
<dict>
<key>weight</key>
<real>20</real>
</dict>
<key>^version\.plist$</key>
<dict>
<key>weight</key>
<real>20</real>
</dict>
</dict>
</dict>
</plist>

View File

@@ -0,0 +1,99 @@
fileFormatVersion: 2
guid: 5ab3e0421ff09b545a490c0d1dc3c348
PluginImporter:
externalObjects: {}
serializedVersion: 2
iconMap: {}
executionOrder: {}
defineConstraints: []
isPreloaded: 1
isOverridable: 0
isExplicitlyReferenced: 0
validateReferences: 1
platformData:
- first:
: Any
second:
enabled: 0
settings:
Exclude Android: 1
Exclude Editor: 0
Exclude Linux64: 1
Exclude OSXUniversal: 1
Exclude WebGL: 1
Exclude Win: 0
Exclude Win64: 0
Exclude WindowsStoreApps: 1
Exclude iOS: 1
- first:
Android: Android
second:
enabled: 0
settings:
CPU: ARMv7
- first:
Any:
second:
enabled: 0
settings: {}
- first:
Editor: Editor
second:
enabled: 1
settings:
CPU: x86_64
DefaultValueInitialized: true
OS: Windows
- first:
Standalone: Linux64
second:
enabled: 0
settings:
CPU: None
- first:
Standalone: OSXUniversal
second:
enabled: 0
settings:
CPU: None
- first:
Standalone: Win
second:
enabled: 1
settings:
CPU: x86
- first:
Standalone: Win64
second:
enabled: 1
settings:
CPU: x86_64
- first:
Windows Store Apps: WindowsStoreApps
second:
enabled: 0
settings:
CPU: X86
DontProcess: false
PlaceholderPath:
SDK: AnySDK
ScriptingBackend: AnyScriptingBackend
- first:
iPhone: iOS
second:
enabled: 0
settings:
AddToEmbeddedBinaries: false
CPU: AnyCPU
CompileFlags:
FrameworkDependencies:
userData:
assetBundleName:
assetBundleVariant:
AssetOrigin:
serializedVersion: 1
productId: 157548
packageName: TriLib 2 - Model Loading Package
packageVersion: 2.5.5
assetPath: Assets/Plugins/TriLibGltfDraco/Windows/dracodec_unity.dll
uploadId: 752923

View File

@@ -90,3 +90,10 @@ PluginImporter:
userData:
assetBundleName:
assetBundleVariant:
AssetOrigin:
serializedVersion: 1
productId: 157548
packageName: TriLib 2 - Model Loading Package
packageVersion: 2.5.5
assetPath: Assets/Plugins/TriLibGltfDraco/iOS/libdraco.a
uploadId: 752923

View File

@@ -90,3 +90,10 @@ PluginImporter:
userData:
assetBundleName:
assetBundleVariant:
AssetOrigin:
serializedVersion: 1
productId: 157548
packageName: TriLib 2 - Model Loading Package
packageVersion: 2.5.5
assetPath: Assets/Plugins/TriLibGltfDraco/iOS/libdracodec_unity.a
uploadId: 752923

View File

@@ -30,3 +30,10 @@ PluginImporter:
userData:
assetBundleName:
assetBundleVariant:
AssetOrigin:
serializedVersion: 1
productId: 157548
packageName: TriLib 2 - Model Loading Package
packageVersion: 2.5.5
assetPath: Assets/Plugins/TriLibStandaloneFileBrowser/Android/StandaloneFileBrowser.java
uploadId: 752923

View File

@@ -30,3 +30,10 @@ PluginImporter:
userData:
assetBundleName:
assetBundleVariant:
AssetOrigin:
serializedVersion: 1
productId: 157548
packageName: TriLib 2 - Model Loading Package
packageVersion: 2.5.5
assetPath: Assets/Plugins/TriLibStandaloneFileBrowser/Android/StandaloneFileBrowserAndroidListener.java
uploadId: 752923

View File

@@ -30,3 +30,10 @@ PluginImporter:
userData:
assetBundleName:
assetBundleVariant:
AssetOrigin:
serializedVersion: 1
productId: 157548
packageName: TriLib 2 - Model Loading Package
packageVersion: 2.5.5
assetPath: Assets/Plugins/TriLibStandaloneFileBrowser/Android/StandaloneFileBrowserFragment.java
uploadId: 752923

View File

@@ -136,3 +136,10 @@ PluginImporter:
userData:
assetBundleName:
assetBundleVariant:
AssetOrigin:
serializedVersion: 1
productId: 157548
packageName: TriLib 2 - Model Loading Package
packageVersion: 2.5.5
assetPath: Assets/Plugins/TriLibStandaloneFileBrowser/Linux/x86_64/libStandaloneFileBrowser.so
uploadId: 752923

View File

@@ -50,16 +50,16 @@ PluginImporter:
second:
enabled: 0
settings:
CPU: x86_64
CPU: AnyCPU
- first:
Standalone: OSXIntel
second:
enabled: 1
enabled: 0
settings: {}
- first:
Standalone: OSXIntel64
second:
enabled: 1
enabled: 0
settings: {}
- first:
Standalone: OSXUniversal

View File

@@ -7,8 +7,9 @@ var TriLibStandaloneFileBrowserWebGLPlugin = {
// Match all video files: "video/*"
// Match all audio files: "audio/*"
// Custom: ".plist, .xml, .yaml"
// multiselect: Allows multiple file selection
UploadFile: function(gameObjectNamePtr, methodNamePtr, filterPtr, multiselect) {
// multiselect: Allows multiple file selection.
// selectDirectory: Allows selecting a directory and all its files.
UploadFile: function(gameObjectNamePtr, methodNamePtr, filterPtr, multiselect, selectDirectory) {
var gameObjectName = UTF8ToString(gameObjectNamePtr);
var methodName = UTF8ToString(methodNamePtr);
var filter = UTF8ToString(filterPtr);
@@ -20,18 +21,22 @@ var TriLibStandaloneFileBrowserWebGLPlugin = {
fileInput.setAttribute('id', gameObjectName);
fileInput.setAttribute('type', 'file');
fileInput.setAttribute('class', 'standalone-file-picker');
if (multiselect) {
fileInput.setAttribute('multiple', 'multiple');
}
if (filter) {
fileInput.setAttribute('accept', filter);
if (selectDirectory) {
fileInput.setAttribute('webkitdirectory', 'webkitdirectory');
} else {
if (multiselect) {
fileInput.setAttribute('multiple', 'multiple');
}
if (filter) {
fileInput.setAttribute('accept', filter);
}
}
fileInput.onclick = function(event) {
event.stopPropagation();
event.stopPropagation();
this.value = null;
};
fileInput.onchange = function(event) {
event.stopPropagation();
event.stopPropagation();
var urls = [];
for (var i = 0; i < event.target.files.length; i++) {
urls.push({
@@ -42,16 +47,20 @@ var TriLibStandaloneFileBrowserWebGLPlugin = {
SendMessage(gameObjectName, methodName, JSON.stringify(urls));
document.body.removeChild(fileInput);
};
fileInput.oncancel = function(event) {
event.stopPropagation();
document.body.removeChild(fileInput);
};
document.body.appendChild(fileInput);
fileInput.focus();
fileInput.focus();
fileInput.click();
this.oldGameObjectName = gameObjectName;
},
// DownloadFile method does not open SaveFileDialog like standalone builds, its just allows user to download file
// DownloadFile method does not open SaveFileDialog like standalone builds, its just allows user to download files.
// gameObjectNamePtr: Unique GameObject name. Required for calling back unity with SendMessage.
// methodNamePtr: Callback method name on given GameObject.
// filenamePtr: Filename with extension
// filenamePtr: Filename with extension.
// byteArray: byte[]
// byteArraySize: byte[].Length
DownloadFile: function(gameObjectNamePtr, methodNamePtr, filenamePtr, byteArray, byteArraySize) {

View File

@@ -97,3 +97,10 @@ PluginImporter:
userData:
assetBundleName:
assetBundleVariant:
AssetOrigin:
serializedVersion: 1
productId: 157548
packageName: TriLib 2 - Model Loading Package
packageVersion: 2.5.5
assetPath: Assets/Plugins/TriLibStandaloneFileBrowser/StandaloneFileBrowser.jslib
uploadId: 752923

View File

@@ -96,3 +96,10 @@ PluginImporter:
userData:
assetBundleName:
assetBundleVariant:
AssetOrigin:
serializedVersion: 1
productId: 157548
packageName: TriLib 2 - Model Loading Package
packageVersion: 2.5.5
assetPath: Assets/Plugins/TriLibStandaloneFileBrowser/Windows/x64/StandaloneFileBrowser.dll
uploadId: 752923

View File

@@ -96,3 +96,10 @@ PluginImporter:
userData:
assetBundleName:
assetBundleVariant:
AssetOrigin:
serializedVersion: 1
productId: 157548
packageName: TriLib 2 - Model Loading Package
packageVersion: 2.5.5
assetPath: Assets/Plugins/TriLibStandaloneFileBrowser/Windows/x86/StandaloneFileBrowser.dll
uploadId: 752923

View File

@@ -95,3 +95,10 @@ PluginImporter:
userData:
assetBundleName:
assetBundleVariant:
AssetOrigin:
serializedVersion: 1
productId: 157548
packageName: TriLib 2 - Model Loading Package
packageVersion: 2.5.5
assetPath: Assets/Plugins/TriLibStandaloneFileBrowser/iOS/StandaloneFileBrowser.mm
uploadId: 752923

View File

@@ -1,46 +0,0 @@
fileFormatVersion: 2
guid: 9ad2e6fcfec6626429b52e881c7016ab
PluginImporter:
externalObjects: {}
serializedVersion: 3
iconMap: {}
executionOrder: {}
defineConstraints: []
isPreloaded: 1
isOverridable: 0
isExplicitlyReferenced: 0
validateReferences: 1
platformData:
Any:
enabled: 1
settings:
Exclude Editor: 0
Exclude Linux64: 0
Exclude OSXUniversal: 0
Exclude Win: 0
Exclude Win64: 0
Editor:
enabled: 1
settings:
CPU: AnyCPU
DefaultValueInitialized: true
OS: AnyOS
Linux64:
enabled: 1
settings:
CPU: x86_64
OSXUniversal:
enabled: 1
settings:
CPU: None
Win:
enabled: 1
settings:
CPU: x86
Win64:
enabled: 1
settings:
CPU: None
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -24,8 +24,9 @@ MonoBehaviour:
probeSamplingDebugMesh: {fileID: 0}
probeSamplingDebugTexture: {fileID: 0}
probeVolumeBlendStatesCS: {fileID: 0}
m_RendererFeatures: []
m_RendererFeatureMap:
m_RendererFeatures:
- {fileID: 203358797822649256}
m_RendererFeatureMap: a8632bcabf79d202
m_UseNativeRenderPass: 0
xrSystemData: {fileID: 0}
postProcessData: {fileID: 11400000, guid: 41439944d30ece34e96484bdb6645b55, type: 2}
@@ -51,3 +52,20 @@ MonoBehaviour:
m_DepthTextureFormat: 0
m_AccurateGbufferNormals: 0
m_IntermediateTextureMode: 1
--- !u!114 &203358797822649256
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: c96e8c42a07c7dd498c6973ddaa9dd1d, type: 3}
m_Name: EdgeDetection
m_EditorClassIdentifier:
m_Active: 1
settings:
renderPassEvent: 500
outlineThickness: 3
outlineColor: {r: 0, g: 0, b: 0, a: 1}

View File

@@ -0,0 +1,10 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!200 &20000000
ShaderVariantCollection:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: HDRPVariantCollection
m_Shaders: {}

View File

@@ -0,0 +1,15 @@
fileFormatVersion: 2
guid: 5f4d89098d9e5bc41bdb8924c2eaf314
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 20000000
userData:
assetBundleName:
assetBundleVariant:
AssetOrigin:
serializedVersion: 1
productId: 157548
packageName: TriLib 2 - Model Loading Package
packageVersion: 2.5.5
assetPath: Assets/Resources/Materials/TriLib/HDRP/HDRPVariantCollection.shadervariants
uploadId: 752923

View File

@@ -12,18 +12,28 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: da692e001514ec24dbc4cca1949ff7e8, type: 3}
m_Name:
m_EditorClassIdentifier:
version: 11
version: 13
hdPluginSubTargetMaterialVersions:
m_Keys: []
m_Values:
--- !u!21 &2100000
Material:
serializedVersion: 6
serializedVersion: 8
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: TriLibHDRP
m_Shader: {fileID: 4800000, guid: 6e4ae4064600d784cac1e41a9e6f2e59, type: 3}
m_ShaderKeywords: _DISABLE_SSR_TRANSPARENT _EMISSIVE_COLOR_MAP _MASKMAP _NORMALMAP
_NORMALMAP_TANGENT_SPACE
m_Parent: {fileID: 0}
m_ModifiedSerializedProperties: 0
m_ValidKeywords:
- _DISABLE_SSR_TRANSPARENT
- _EMISSIVE_COLOR_MAP
- _MASKMAP
- _NORMALMAP
- _NORMALMAP_TANGENT_SPACE
m_InvalidKeywords: []
m_LightmapFlags: 1
m_EnableInstancingVariants: 0
m_DoubleSidedGI: 0
@@ -36,6 +46,7 @@ Material:
- TransparentDepthPostpass
- TransparentBackface
- RayTracingPrepass
m_LockedProperties:
m_SavedProperties:
serializedVersion: 3
m_TexEnvs:
@@ -155,6 +166,10 @@ Material:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _TransmissionMaskMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _TransmittanceColorMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
@@ -171,6 +186,7 @@ Material:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Ints: []
m_Floats:
- _AORemapMax: 1
- _AORemapMin: 0
@@ -183,6 +199,8 @@ Material:
- _AlphaCutoffPrepass: 0.5
- _AlphaCutoffShadow: 0.5
- _AlphaDstBlend: 0
- _AlphaRemapMax: 1
- _AlphaRemapMin: 0
- _AlphaSrcBlend: 1
- _AlphaToMask: 0
- _AlphaToMaskInspectorValue: 0
@@ -218,6 +236,7 @@ Material:
- _DistortionVectorBias: -1
- _DistortionVectorScale: 2
- _DoubleSidedEnable: 0
- _DoubleSidedGIMode: 0
- _DoubleSidedNormalMode: 1
- _DstBlend: 0
- _EmissiveColorMode: 1
@@ -253,6 +272,8 @@ Material:
- _Mode: 0
- _NormalMapSpace: 0
- _NormalScale: 1
- _ObjectSpaceUVMapping: 0
- _ObjectSpaceUVMappingEmissive: 0
- _OcclusionStrength: 1
- _OpaqueCullMode: 2
- _PPDLodThreshold: 5
@@ -281,10 +302,10 @@ Material:
- _StencilRefGBuffer: 10
- _StencilRefMV: 40
- _StencilWriteMask: 6
- _StencilWriteMaskDepth: 8
- _StencilWriteMaskDepth: 9
- _StencilWriteMaskDistortionVec: 4
- _StencilWriteMaskGBuffer: 14
- _StencilWriteMaskMV: 40
- _StencilWriteMaskGBuffer: 15
- _StencilWriteMaskMV: 41
- _SubsurfaceMask: 1
- _SupportDecals: 1
- _SurfaceType: 0
@@ -292,6 +313,7 @@ Material:
- _TexWorldScaleEmissive: 1
- _Thickness: 1
- _TransmissionEnable: 1
- _TransmissionMask: 1
- _TransparentBackfaceEnable: 0
- _TransparentCullMode: 2
- _TransparentDepthPostpassEnable: 0

View File

@@ -6,3 +6,10 @@ NativeFormatImporter:
userData:
assetBundleName:
assetBundleVariant:
AssetOrigin:
serializedVersion: 1
productId: 157548
packageName: TriLib 2 - Model Loading Package
packageVersion: 2.5.5
assetPath: Assets/Resources/Materials/TriLib/HDRP/TriLibHDRP.mat
uploadId: 752923

View File

@@ -12,18 +12,31 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: da692e001514ec24dbc4cca1949ff7e8, type: 3}
m_Name:
m_EditorClassIdentifier:
version: 11
version: 13
hdPluginSubTargetMaterialVersions:
m_Keys: []
m_Values:
--- !u!21 &2100000
Material:
serializedVersion: 6
serializedVersion: 8
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: TriLibHDRPAlpha
m_Shader: {fileID: 4800000, guid: 6e4ae4064600d784cac1e41a9e6f2e59, type: 3}
m_ShaderKeywords: _DISABLE_SSR_TRANSPARENT _DOUBLESIDED_ON _EMISSIVE_COLOR_MAP
_ENABLE_FOG_ON_TRANSPARENT _MASKMAP _NORMALMAP _NORMALMAP_TANGENT_SPACE _SURFACE_TYPE_TRANSPARENT
m_Parent: {fileID: 0}
m_ModifiedSerializedProperties: 0
m_ValidKeywords:
- _DISABLE_SSR_TRANSPARENT
- _DOUBLESIDED_ON
- _EMISSIVE_COLOR_MAP
- _ENABLE_FOG_ON_TRANSPARENT
- _MASKMAP
- _NORMALMAP
- _NORMALMAP_TANGENT_SPACE
- _SURFACE_TYPE_TRANSPARENT
m_InvalidKeywords: []
m_LightmapFlags: 1
m_EnableInstancingVariants: 0
m_DoubleSidedGI: 1
@@ -37,6 +50,7 @@ Material:
- TransparentDepthPostpass
- TransparentBackface
- RayTracingPrepass
m_LockedProperties:
m_SavedProperties:
serializedVersion: 3
m_TexEnvs:
@@ -152,6 +166,10 @@ Material:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _TransmissionMaskMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _TransmittanceColorMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
@@ -168,6 +186,7 @@ Material:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Ints: []
m_Floats:
- _AORemapMax: 1
- _AORemapMin: 0
@@ -180,6 +199,8 @@ Material:
- _AlphaCutoffPrepass: 0.5
- _AlphaCutoffShadow: 0.5
- _AlphaDstBlend: 10
- _AlphaRemapMax: 1
- _AlphaRemapMin: 0
- _AlphaSrcBlend: 1
- _AlphaToMask: 0
- _AlphaToMaskInspectorValue: 0
@@ -216,6 +237,7 @@ Material:
- _DistortionVectorBias: -1
- _DistortionVectorScale: 2
- _DoubleSidedEnable: 1
- _DoubleSidedGIMode: 0
- _DoubleSidedNormalMode: 1
- _DstBlend: 10
- _EmissiveColorMode: 1
@@ -251,6 +273,8 @@ Material:
- _Mode: 2
- _NormalMapSpace: 0
- _NormalScale: 1
- _ObjectSpaceUVMapping: 0
- _ObjectSpaceUVMappingEmissive: 0
- _OcclusionStrength: 1
- _OpaqueCullMode: 2
- _PPDLodThreshold: 5
@@ -281,10 +305,10 @@ Material:
- _StencilRefGBuffer: 2
- _StencilRefMV: 32
- _StencilWriteMask: 6
- _StencilWriteMaskDepth: 8
- _StencilWriteMaskDepth: 9
- _StencilWriteMaskDistortionVec: 4
- _StencilWriteMaskGBuffer: 14
- _StencilWriteMaskMV: 40
- _StencilWriteMaskGBuffer: 15
- _StencilWriteMaskMV: 41
- _SubsurfaceMask: 1
- _SupportDecals: 1
- _SurfaceType: 1
@@ -294,6 +318,7 @@ Material:
- _TexWorldScaleEmissive: 1
- _Thickness: 1
- _TransmissionEnable: 1
- _TransmissionMask: 1
- _TransparentBackfaceEnable: 0
- _TransparentCullMode: 2
- _TransparentDepthPostpassEnable: 0

View File

@@ -6,3 +6,10 @@ NativeFormatImporter:
userData:
assetBundleName:
assetBundleVariant:
AssetOrigin:
serializedVersion: 1
productId: 157548
packageName: TriLib 2 - Model Loading Package
packageVersion: 2.5.5
assetPath: Assets/Resources/Materials/TriLib/HDRP/TriLibHDRPAlpha.mat
uploadId: 752923

View File

@@ -12,18 +12,30 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: da692e001514ec24dbc4cca1949ff7e8, type: 3}
m_Name:
m_EditorClassIdentifier:
version: 11
version: 13
hdPluginSubTargetMaterialVersions:
m_Keys: []
m_Values:
--- !u!21 &2100000
Material:
serializedVersion: 6
serializedVersion: 8
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: TriLibHDRPAlphaCutout
m_Shader: {fileID: 4800000, guid: 6e4ae4064600d784cac1e41a9e6f2e59, type: 3}
m_ShaderKeywords: _ALPHATEST_ON _DISABLE_SSR_TRANSPARENT _DOUBLESIDED_ON _EMISSIVE_COLOR_MAP
_MASKMAP _NORMALMAP _NORMALMAP_TANGENT_SPACE
m_Parent: {fileID: 0}
m_ModifiedSerializedProperties: 0
m_ValidKeywords:
- _ALPHATEST_ON
- _DISABLE_SSR_TRANSPARENT
- _DOUBLESIDED_ON
- _EMISSIVE_COLOR_MAP
- _MASKMAP
- _NORMALMAP
- _NORMALMAP_TANGENT_SPACE
m_InvalidKeywords: []
m_LightmapFlags: 1
m_EnableInstancingVariants: 0
m_DoubleSidedGI: 1
@@ -37,6 +49,7 @@ Material:
- TransparentDepthPostpass
- TransparentBackface
- RayTracingPrepass
m_LockedProperties:
m_SavedProperties:
serializedVersion: 3
m_TexEnvs:
@@ -152,6 +165,10 @@ Material:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _TransmissionMaskMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _TransmittanceColorMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
@@ -168,6 +185,7 @@ Material:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Ints: []
m_Floats:
- _AORemapMax: 1
- _AORemapMin: 0
@@ -180,6 +198,8 @@ Material:
- _AlphaCutoffPrepass: 0.5
- _AlphaCutoffShadow: 0.5
- _AlphaDstBlend: 0
- _AlphaRemapMax: 1
- _AlphaRemapMin: 0
- _AlphaSrcBlend: 1
- _AlphaToMask: 0
- _AlphaToMaskInspectorValue: 0
@@ -215,6 +235,7 @@ Material:
- _DistortionVectorBias: -1
- _DistortionVectorScale: 2
- _DoubleSidedEnable: 1
- _DoubleSidedGIMode: 0
- _DoubleSidedNormalMode: 1
- _DstBlend: 0
- _EmissiveColorMode: 1
@@ -250,6 +271,8 @@ Material:
- _Mode: 1
- _NormalMapSpace: 0
- _NormalScale: 1
- _ObjectSpaceUVMapping: 0
- _ObjectSpaceUVMappingEmissive: 0
- _OcclusionStrength: 1
- _OpaqueCullMode: 2
- _PPDLodThreshold: 5
@@ -278,10 +301,10 @@ Material:
- _StencilRefGBuffer: 10
- _StencilRefMV: 40
- _StencilWriteMask: 6
- _StencilWriteMaskDepth: 8
- _StencilWriteMaskDepth: 9
- _StencilWriteMaskDistortionVec: 4
- _StencilWriteMaskGBuffer: 14
- _StencilWriteMaskMV: 40
- _StencilWriteMaskGBuffer: 15
- _StencilWriteMaskMV: 41
- _SubsurfaceMask: 1
- _SupportDecals: 1
- _SurfaceType: 0
@@ -289,6 +312,7 @@ Material:
- _TexWorldScaleEmissive: 1
- _Thickness: 1
- _TransmissionEnable: 1
- _TransmissionMask: 1
- _TransparentBackfaceEnable: 0
- _TransparentCullMode: 2
- _TransparentDepthPostpassEnable: 0

View File

@@ -6,3 +6,10 @@ NativeFormatImporter:
userData:
assetBundleName:
assetBundleVariant:
AssetOrigin:
serializedVersion: 1
productId: 157548
packageName: TriLib 2 - Model Loading Package
packageVersion: 2.5.5
assetPath: Assets/Resources/Materials/TriLib/HDRP/TriLibHDRPAlphaCutout.mat
uploadId: 752923

View File

@@ -2,15 +2,22 @@
%TAG !u! tag:unity3d.com,2011:
--- !u!21 &2100000
Material:
serializedVersion: 6
serializedVersion: 8
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: TriLibHDRPLoading
m_Shader: {fileID: 4800000, guid: 6e4ae4064600d784cac1e41a9e6f2e59, type: 3}
m_ShaderKeywords: _DISABLE_SSR_TRANSPARENT _EMISSIVE_COLOR_MAP _MASKMAP _NORMALMAP
_NORMALMAP_TANGENT_SPACE
m_Parent: {fileID: 0}
m_ModifiedSerializedProperties: 0
m_ValidKeywords:
- _DISABLE_SSR_TRANSPARENT
- _EMISSIVE_COLOR_MAP
- _MASKMAP
- _NORMALMAP
- _NORMALMAP_TANGENT_SPACE
m_InvalidKeywords: []
m_LightmapFlags: 4
m_EnableInstancingVariants: 0
m_DoubleSidedGI: 0
@@ -23,6 +30,7 @@ Material:
- TransparentDepthPostpass
- TransparentBackface
- RayTracingPrepass
m_LockedProperties:
m_SavedProperties:
serializedVersion: 3
m_TexEnvs:
@@ -138,6 +146,10 @@ Material:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _TransmissionMaskMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _TransmittanceColorMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
@@ -154,6 +166,7 @@ Material:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Ints: []
m_Floats:
- _AORemapMax: 1
- _AORemapMin: 0
@@ -166,6 +179,8 @@ Material:
- _AlphaCutoffPrepass: 0.5
- _AlphaCutoffShadow: 0.5
- _AlphaDstBlend: 0
- _AlphaRemapMax: 1
- _AlphaRemapMin: 0
- _AlphaSrcBlend: 1
- _AlphaToMask: 0
- _AlphaToMaskInspectorValue: 0
@@ -201,6 +216,7 @@ Material:
- _DistortionVectorBias: -1
- _DistortionVectorScale: 2
- _DoubleSidedEnable: 0
- _DoubleSidedGIMode: 0
- _DoubleSidedNormalMode: 1
- _DstBlend: 0
- _EmissiveColorMode: 1
@@ -236,6 +252,8 @@ Material:
- _Mode: 0
- _NormalMapSpace: 0
- _NormalScale: 1
- _ObjectSpaceUVMapping: 0
- _ObjectSpaceUVMappingEmissive: 0
- _OcclusionStrength: 1
- _OpaqueCullMode: 2
- _PPDLodThreshold: 5
@@ -264,10 +282,10 @@ Material:
- _StencilRefGBuffer: 10
- _StencilRefMV: 40
- _StencilWriteMask: 6
- _StencilWriteMaskDepth: 8
- _StencilWriteMaskDepth: 9
- _StencilWriteMaskDistortionVec: 4
- _StencilWriteMaskGBuffer: 14
- _StencilWriteMaskMV: 40
- _StencilWriteMaskGBuffer: 15
- _StencilWriteMaskMV: 41
- _SubsurfaceMask: 1
- _SupportDecals: 1
- _SurfaceType: 0
@@ -275,6 +293,7 @@ Material:
- _TexWorldScaleEmissive: 1
- _Thickness: 1
- _TransmissionEnable: 1
- _TransmissionMask: 1
- _TransparentBackfaceEnable: 0
- _TransparentCullMode: 2
- _TransparentDepthPostpassEnable: 0
@@ -323,4 +342,7 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: da692e001514ec24dbc4cca1949ff7e8, type: 3}
m_Name:
m_EditorClassIdentifier:
version: 11
version: 13
hdPluginSubTargetMaterialVersions:
m_Keys: []
m_Values:

View File

@@ -6,3 +6,10 @@ NativeFormatImporter:
userData:
assetBundleName:
assetBundleVariant:
AssetOrigin:
serializedVersion: 1
productId: 157548
packageName: TriLib 2 - Model Loading Package
packageVersion: 2.5.5
assetPath: Assets/Resources/Materials/TriLib/HDRP/TriLibHDRPLoading.mat
uploadId: 752923

View File

@@ -2,37 +2,23 @@
%TAG !u! tag:unity3d.com,2011:
--- !u!21 &2100000
Material:
serializedVersion: 8
serializedVersion: 6
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: TriLibStandard
m_Shader: {fileID: 4800000, guid: 933532a4fcc9baf4fa0491de14d08ed7, type: 3}
m_Parent: {fileID: 0}
m_ModifiedSerializedProperties: 0
m_ValidKeywords:
- _EMISSION
- _METALLICSPECGLOSSMAP
- _NORMALMAP
- _OCCLUSIONMAP
m_InvalidKeywords: []
m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
m_ShaderKeywords: _EMISSION _METALLICGLOSSMAP _NORMALMAP _SPECGLOSSMAP
m_LightmapFlags: 1
m_EnableInstancingVariants: 0
m_DoubleSidedGI: 0
m_CustomRenderQueue: -1
stringTagMap:
RenderType: Opaque
disabledShaderPasses:
- MOTIONVECTORS
m_LockedProperties:
stringTagMap: {}
disabledShaderPasses: []
m_SavedProperties:
serializedVersion: 3
m_TexEnvs:
- _BaseMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _BumpMap:
m_Texture: {fileID: 2800000, guid: 14eeb87a1b34eaa4db60b71bcf17bdad, type: 3}
m_Scale: {x: 1, y: 1}
@@ -54,7 +40,7 @@ Material:
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MainTex:
m_Texture: {fileID: 0}
m_Texture: {fileID: 2800000, guid: e6e4bc18e57a0c042905df7fed60433c, type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MetallicGlossMap:
@@ -73,35 +59,11 @@ Material:
m_Texture: {fileID: 2800000, guid: d1597ba5656dbe14998ca5a123fc8c77, type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- unity_Lightmaps:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- unity_LightmapsInd:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- unity_ShadowMasks:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Ints: []
m_Floats:
- _AddPrecomputedVelocity: 0
- _AlphaClip: 0
- _AlphaToMask: 0
- _Blend: 0
- _BlendModePreserveSpecular: 1
- _BumpScale: 1
- _ClearCoatMask: 0
- _ClearCoatSmoothness: 0
- _Cull: 2
- _Cutoff: 0.5
- _DetailAlbedoMapScale: 1
- _DetailNormalMapScale: 1
- _DstBlend: 0
- _DstBlendAlpha: 0
- _EnvironmentReflections: 1
- _GlossMapScale: 0
- _Glossiness: 0.5
- _GlossyReflections: 1
@@ -109,34 +71,12 @@ Material:
- _Mode: 0
- _OcclusionStrength: 1
- _Parallax: 0.02
- _QueueOffset: 0
- _ReceiveShadows: 1
- _Smoothness: 0.5
- _SmoothnessTextureChannel: 0
- _SpecularHighlights: 1
- _SrcBlend: 1
- _SrcBlendAlpha: 1
- _Surface: 0
- _UVSec: 0
- _WorkflowMode: 1
- _ZWrite: 1
m_Colors:
- _BaseColor: {r: 1, g: 1, b: 1, a: 1}
- _Color: {r: 1, g: 1, b: 1, a: 1}
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
- _SpecColor: {r: 0.2, g: 0.2, b: 0.2, a: 1}
m_BuildTextureStacks: []
m_AllowLocking: 1
--- !u!114 &7489121585098606463
MonoBehaviour:
m_ObjectHideFlags: 11
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: d0353a89b1f911e48b9e16bdc9f2e058, type: 3}
m_Name:
m_EditorClassIdentifier:
version: 9

View File

@@ -1,8 +1,15 @@
fileFormatVersion: 2
guid: f33ead15185d5fe4c812052c58708127
guid: 34299f43105692d4d916d49aaae74148
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 0
userData:
assetBundleName:
assetBundleVariant:
AssetOrigin:
serializedVersion: 1
productId: 157548
packageName: TriLib 2 - Model Loading Package
packageVersion: 2.5.5
assetPath: Assets/Resources/Materials/TriLib/Standard/TriLibStandard.mat
uploadId: 752923

View File

@@ -2,37 +2,25 @@
%TAG !u! tag:unity3d.com,2011:
--- !u!21 &2100000
Material:
serializedVersion: 8
serializedVersion: 6
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: TriLibStandardAlpha
m_Shader: {fileID: 4800000, guid: 933532a4fcc9baf4fa0491de14d08ed7, type: 3}
m_Parent: {fileID: 0}
m_ModifiedSerializedProperties: 0
m_ValidKeywords:
- _EMISSION
- _METALLICSPECGLOSSMAP
- _NORMALMAP
- _OCCLUSIONMAP
m_InvalidKeywords: []
m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
m_ShaderKeywords: _ALPHAPREMULTIPLY_ON _EMISSION _METALLICGLOSSMAP _NORMALMAP _RENDERINGMODE_TRANSPARENT
_TRANSPARENCY_TRANSPARENT
m_LightmapFlags: 1
m_EnableInstancingVariants: 0
m_DoubleSidedGI: 0
m_CustomRenderQueue: -1
m_CustomRenderQueue: 3000
stringTagMap:
RenderType: Opaque
disabledShaderPasses:
- MOTIONVECTORS
m_LockedProperties:
RenderType: Transparent
disabledShaderPasses: []
m_SavedProperties:
serializedVersion: 3
m_TexEnvs:
- _BaseMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _BumpMap:
m_Texture: {fileID: 2800000, guid: 14eeb87a1b34eaa4db60b71bcf17bdad, type: 3}
m_Scale: {x: 1, y: 1}
@@ -54,7 +42,7 @@ Material:
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MainTex:
m_Texture: {fileID: 0}
m_Texture: {fileID: 2800000, guid: e6e4bc18e57a0c042905df7fed60433c, type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MetallicGlossMap:
@@ -73,35 +61,12 @@ Material:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- unity_Lightmaps:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- unity_LightmapsInd:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- unity_ShadowMasks:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Ints: []
m_Floats:
- _AddPrecomputedVelocity: 0
- _AlphaClip: 0
- _AlphaToMask: 0
- _Blend: 1
- _BlendModePreserveSpecular: 1
- _BumpScale: 1
- _ClearCoatMask: 0
- _ClearCoatSmoothness: 0
- _Cull: 2
- _Cutoff: 0.5
- _DetailAlbedoMapScale: 1
- _DetailNormalMapScale: 1
- _DstBlend: 0
- _DstBlendAlpha: 0
- _EnvironmentReflections: 1
- _DstBlend: 10
- _GlossMapScale: 0
- _Glossiness: 0
- _GlossyReflections: 1
@@ -109,40 +74,17 @@ Material:
- _Mode: 3
- _OcclusionStrength: 1
- _Parallax: 0.02
- _QueueOffset: 0
- _ReceiveShadows: 1
- _RenderingMode: 3
- _ShadingMode: 0
- _Smoothness: 0.5
- _SmoothnessTextureChannel: 0
- _SpecularHighlights: 1
- _SrcBlend: 1
- _SrcBlendAlpha: 1
- _Surface: 0
- _TRANSPARENCY: 1
- _TYPE: 0
- _UVSec: 0
- _WorkflowMode: 1
- _ZWrite: 1
- _ZWrite: 0
m_Colors:
- _BaseColor: {r: 1, g: 1, b: 1, a: 1}
- _Color: {r: 1, g: 1, b: 1, a: 1}
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
- _Offset: {r: 0, g: 0, b: 0, a: 0}
- _SpecColor: {r: 0.2, g: 0.2, b: 0.2, a: 1}
- _Tilling: {r: 1, g: 1, b: 0, a: 0}
m_BuildTextureStacks: []
m_AllowLocking: 1
--- !u!114 &2856157590176698782
MonoBehaviour:
m_ObjectHideFlags: 11
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: d0353a89b1f911e48b9e16bdc9f2e058, type: 3}
m_Name:
m_EditorClassIdentifier:
version: 9

Some files were not shown because too many files have changed in this diff Show More