2020年3月

默认 Always Included Shaders 2018.4.6f1

自带Shader 2018.4.6f1

  • GUI/Text Shader                        Library/unity default resources
  • Hidden/FrameDebuggerRenderTargetDisplay            Library/unity default resources
  • AR/TangoARRender                       Resources/unity_builtin_extra
  • Legacy Shaders/Transparent/Bumped Specular           Resources/unity_builtin_extra
  • Legacy Shaders/Transparent/Bumped Diffuse            Resources/unity_builtin_extra
  • Legacy Shaders/Transparent/Diffuse                  Resources/unity_builtin_extra
  • Legacy Shaders/Transparent/Specular                Resources/unity_builtin_extra
  • Legacy Shaders/Transparent/Parallax Diffuse           Resources/unity_builtin_extra
  • Legacy Shaders/Transparent/Parallax Specular           Resources/unity_builtin_extra
  • Legacy Shaders/Transparent/VertexLit               Resources/unity_builtin_extra
  • Legacy Shaders/Transparent/Cutout/Bumped Specular       Resources/unity_builtin_extra
  • Legacy Shaders/Transparent/Cutout/Bumped Diffuse          Resources/unity_builtin_extra
  • Legacy Shaders/Transparent/Cutout/Diffuse            Resources/unity_builtin_extra
  • Legacy Shaders/Transparent/Cutout/Specular            Resources/unity_builtin_extra
  • Legacy Shaders/Transparent/Cutout/Soft Edge Unlit          Resources/unity_builtin_extra
  • Legacy Shaders/Transparent/Cutout/VertexLit            Resources/unity_builtin_extra
  • Autodesk Interactive                        Resources/unity_builtin_extra
  • Hidden/Compositing                        Resources/unity_builtin_extra
  • Hidden/CubeBlend                        Resources/unity_builtin_extra
  • Hidden/CubeBlur                           Resources/unity_builtin_extra
  • Hidden/CubeCopy                         Resources/unity_builtin_extra
  • Legacy Shaders/Decal                        Resources/unity_builtin_extra
  • FX/Flare                            Resources/unity_builtin_extra
  • Hidden/GIDebug/ShowLightMask                    Resources/unity_builtin_extra
  • Hidden/GIDebug/TextureUV                     Resources/unity_builtin_extra
  • Hidden/GIDebug/UV1sAsPositions                  Resources/unity_builtin_extra
  • Legacy Shaders/Self-Illumin/Bumped Sepcular            Resources/unity_builtin_extra
  • Legacy Shaders/Self-Illumin/Bumped Diffuse             Resources/unity_builtin_extra
  • Legacy Shaders/Self-Illumin/Diffuse                 Resources/unity_builtin_extra
  • Legacy Shaders/Self-Illumin/Specular                 Resources/unity_builtin_extra
  • Legacy Shaders/Self-Illumin//Parallax Diffuse             Resources/unity_builtin_extra
  • Legacy Shaders/Self-Illumin/Parallax Specular             Resources/unity_builtin_extra
  • Legacy Shaders/Self-Illumin/VertexLit                 Resources/unity_builtin_extra
  • Legacy Shaders/Lightmapped/Bumped Specular             Resources/unity_builtin_extra
  • Legacy Shaders/Lightmapped/Bumped Diffuse             Resources/unity_builtin_extra
  • Legacy Shaders/Lightmapped/Diffuse                  Resources/unity_builtin_extra
  • Legacy Shaders/Lightmapped/Specular                 Resources/unity_builtin_extra
  • Legacy Shaders/Lightmapped/VertexLit                  Resources/unity_builtin_extra
  • Mobile/Bumped Specular (1 Directional Realtime Light)        Resources/unity_builtin_extra
  • Mobile/Bumped Specular                      Resources/unity_builtin_extra
  • Mobile/Bumped Diffuse                       Resources/unity_builtin_extra
  • Mobile/Diffuse                           Resources/unity_builtin_extra
  • Mobile/Unlit (Supports Lightmap)                  Resources/unity_builtin_extra
  • Mobile/Particle/Additive                       Resources/unity_builtin_extra
  • Mobile/Particle/VertexLit Blended                  Resources/unity_builtin_extra
  • Mobile/Particle/Alpha Blended                    Resources/unity_builtin_extra
  • Mobile/Particle/Multiply                        Resources/unity_builtin_extra
  • Mobile/Skybox                           Resources/unity_builtin_extra
  • Mobile/VertexLit (Only Directional Lights)                Resources/unity_builtin_extra
  • Mobile/VertexLit                           Resources/unity_builtin_extra
  • Nature/Tree Soft Occlusion Bark                   Resources/unity_builtin_extra
  • Nature/Tree Soft Occlusion Leaves                    Resources/unity_builtin_extra
  • Nature/SpeedTree                          Resources/unity_builtin_extra
  • Nature/SpeedTreeB                        Resources/unity_builtin_extra
  • Nature/SpeedTree Billboard                     Resources/unity_builtin_extra
  • Nature/Tree Creator Bark                       Resources/unity_builtin_extra
  • Nature/Tree Creator Leaves                     Resources/unity_builtin_extra
  • Nature/Tree Creator Leaves Fast                  Resources/unity_builtin_extra
  • Legacy Shaders/Bumped Specular                  Resources/unity_builtin_extra
  • Legacy Shaders/Bumped Diffuse                   Resources/unity_builtin_extra
  • Legacy Shaders/Diffuse                       Resources/unity_builtin_extra
  • Legacy Shaders/Diffuse Detail                    Resources/unity_builtin_extra
  • Legacy Shaders/Diffuse Fast                       Resources/unity_builtin_extra
  • Legacy Shaders/Specular                      Resources/unity_builtin_extra
  • Legacy Shaders/Parallax Diffuse                   Resources/unity_builtin_extra
  • Legacy Shaders/Parallax Specular                   Resources/unity_builtin_extra
  • Legacy Shaders/VertexLit                      Resources/unity_builtin_extra
  • Legacy Shaders/Particles/Additive                  Resources/unity_builtin_extra
  • Legacy Shaders/Particles/~Additive-Multiply              Resources/unity_builtin_extra
  • Legacy Shaders/Particles/Additive (Soft)               Resources/unity_builtin_extra
  • Legacy Shaders/Particles/Alpha Blended                 Resources/unity_builtin_extra
  • Legacy Shaders/Particles/Anim Alpha Blended            Resources/unity_builtin_extra
  • Legacy Shaders/Particles/Multiply                  Resources/unity_builtin_extra
  • Legacy Shaders/Particles/Multiply (Double)               Resources/unity_builtin_extra
  • Legacy Shaders/Particles/Alpha Blended Premultiply           Resources/unity_builtin_extra
  • Particles/Standard Surface                     Resources/unity_builtin_extra
  • Particles/Standard Unlit                        Resources/unity_builtin_extra
  • Legacy Shaders/Particles/VertexLit Blended               Resources/unity_builtin_extra
  • Legacy Shaders/Reflective/Bumped Unlit                 Resources/unity_builtin_extra
  • Legacy Shaders/Reflective/Bumped Specular                Resources/unity_builtin_extra
  • Legacy Shaders/Reflective/Bumped VertexLit               Resources/unity_builtin_extra
  • Legacy Shaders/Reflective/Bumped Diffuse                Resources/unity_builtin_extra
  • Legacy Shaders/Reflective/Diffuse                  Resources/unity_builtin_extra
  • Legacy Shaders/Reflective/Specular                 Resources/unity_builtin_extra
  • Legacy Shaders/Reflective/Parallax Diffuse              Resources/unity_builtin_extra
  • Legacy Shaders/Reflective/Parallax Specular             Resources/unity_builtin_extra
  • Legacy Shaders/Reflective/VertexLit                 Resources/unity_builtin_extra
  • Skybox/Cubemap                            Resources/unity_builtin_extra
  • Skybox/Panoramic                         Resources/unity_builtin_extra
  • Skybox/Procedural                           Resources/unity_builtin_extra
  • Skybox/6 Sided                           Resources/unity_builtin_extra
  • Sprites/Default                             Resources/unity_builtin_extra
  • Sprites/Diffuse                             Resources/unity_builtin_extra
  • Sprites/Mask                             Resources/unity_builtin_extra
  • Standard                              Resources/unity_builtin_extra
  • Standard (Specular setup)                       Resources/unity_builtin_extra
  • Nature/Terrain/Diffuse                         Resources/unity_builtin_extra
  • Nature/Terrain/Specular                        Resources/unity_builtin_extra
  • Nature/Terrain/Standard                        Resources/unity_builtin_extra
  • Hidden/UI/CompositeOverdraw                    Resources/unity_builtin_extra
  • UI/Default                               Resources/unity_builtin_extra
  • UI/DefaultETC1                           Resources/unity_builtin_extra
  • UI/Default Font                            Resources/unity_builtin_extra
  • UI/Lit/Bumped                              Resources/unity_builtin_extra
  • UI/Lit/Detail                             Resources/unity_builtin_extra
  • UI/Lit/Refraction                           Resources/unity_builtin_extra
  • UI/Lit/Refraction Detail                         Resources/unity_builtin_extra
  • UI/Lit/Transparent                           Resources/unity_builtin_extra
  • Hidden/UI/Overdraw                          Resources/unity_builtin_extra
  • UI/Unlit/Detail                             Resources/unity_builtin_extra
  • UI/Unlit/Text                             Resources/unity_bultin_extra
  • UI/Unlit/Text Detail                           Resources/unity_builtin_extra
  • UI/Unlit/Transparent                         Resources/unity_builtin_extra
  • Unlit/Transparent                           Resources/unity_builtin_extra
  • Unlit/Transparent Cutout                         Resources/unity_builtin_extra
  • Unlit/Color                              Resources/unity_builtin_extra
  • Unlit/Texture                             Resources/unity_builtin_extra
  • Hidden/VR/BlitTexArraySlice                      Resources/unity_builtin_extra
  • Hidden/VR/BlitTexArraySliceToDepth                   Resources/unity_builtin_extra
  • Hidden/VR/BlitTexArraySliceToDepth_MSAA               Resources/unity_builtin_extra
  • Hidden/VR/ClippingMask                         Resources/unity_builtin_extra
  • Hidden/VR/Interal-VRDistortion                     Resources/unity_builtin_extra
  • VR/SpatialMapping/Occlusion                     Resources/unity_builtin_extra
  • VR/SpatialMapping/WireFrame                     Resources/unity_builtin_extra
  • Hidden/VR/VideoBackground                      Resources/unity_builtin_extra
  • Hidden/VideoDecode                          Resources/unity_builtin_extra
  • Hidden/VideoDecodeAndrodi                      Resources/unity_builtin_extra
  • Hidden/VideoDecodeOSX                        Resources/unity_builtin_extra 

 

AssetDatabase.GetDependencies 不能获取到材质使用的Resources/unity_builtin_extra内的材质

 

NotePad++ 插件 JSON Viewer

 

chmod +x MapFileParser.sh 

 

Strip Engine Code

 

空场景,默认 Always Included Shader 下 Apk 包含的Shader

打包时, Always Included Shaders 至少包含

这种情况下 APK 包含Shader

 

空场景,基本的 Always Included Shaders

    private void FindShaderTest() {
        Debug.Log("FindShaderTest");

        Shader shader = Shader.Find("GUI/Text Shader");
        Debug.Assert(shader != null, "GUI/Text Shader is null");

        shader = Shader.Find("Standard");
        Debug.Assert(shader != null, "Standard is null");
    }

Android

Ios

 

场景里的Cube带有 Standard Shader, APK 里有Standard Shader

Cube Prefab 在Resources文件夹里, APK里有 Standard Shader

Cube Prefab 在非Resources文件夹里, APK里没有 Standard Shader

 

AB包里预制体包含 相关材质, 只打包 预制体,相关 材质和 Shader也会打包进去

APK内的Shader

 android

ios

多个不同的Prefab 使用相同的材质

 

APK内的Shader

 

android

ios

从Assets里打包,读取的 shader表现形式和 内置shader一样,就不截图了. 但是 我们可以选择 把Assets里的Shader打成一个AB包

将UI-Default 添加到 Always Included Shader

 

APK内包含的Shader

 

 

不设置Always Included Shader, 使用Assets 里的Shader, 将Shader打包进一个ab里. 

同时只存在一个Shader, 增加的是 Ref Count

 

 

 

 

 

Profiler内存采样

 

Other->Rendering

Other->SerializedFile

Other->Managers

Other->Profiling

Other->FileSystem

Other->Physics2D Module

Other->MemoryPools

Others->Job System

 

Others->File System

Others->Animation Module

Others->ParticleSystem Module

Others->Terrain Module

Others->Log System

Others->Vehicle Module 

Others->Profiler

Others->Audio Module

Others->ForceFieldManager

Others->CollisionDatabase2D

Others->Animation

Others->Physics Module

Others->Input Module Impl

Others->IMGUI Module

Others->TerrainPhysics Module 

Others->TextRendering Module

Others->Cloth Module 

Others->CaptureScreenshot Module 

Others->Umbra Module

Others->System.ExecutableAndDlls

Others->没名字...

 

 

 

Not Saved->RenderTexture

Not Saved->AssetBundle

Not Saved->Texture2D

Not Saved->Material

Not Saved->Cubemap

Not Saved->Transform

Not Saved->Texture3D

Not Saved->GameObject

Not Saved->MonoBehaviour

Not Saved->CubemapArray

Not Saved->Texture2DArray

 

 

 

 

 

Assets->Mesh->xxxxx

 Assets->MonoScript->SkeletonRenderSeparator 

 Assets->Transform->Bip001 R Thigh

 Assets->GameObject->SceneCamera

 Assets->Avatar->xxxxx-skinAvator

 Assets->Shader->Standard

 Assets->Material->Default-Skybox

 Assets->Cubemap->ReflectionProbe-0

 Assets->ComputeShader->AutoExposure

 Assets->Sprite->startwhite

 Assets->MonoBehaviour->Cinemachine.CinemachineBrain

 Assets->SkinnedMeshRenderer->chiyou_01

 Assets->MeshRenderer->Sphere

 Assets->Animator->003

 Assets->AnimatorController->New Animation Controller 

 Assets->MeshFilter->Sphere

  

 

Scene Memory->Mesh->Combined Mesh

SceneMemory->Transform->Bip001 L Hand

 SceneMemory->Transform->Animator

 SceneMemory->GameObject->UICamera

 SceneMemory->MeshRenderer->xingtian_01 (4)

 SceneMemory->Light->Directional Light

 SceneMemory->Camera->Camera001

SceneMemory->SkinnedMeshRenderer

SceneMemory->MonoBehaviour->UnityEngine.UI.GraphicRaycaster

SceneMemory->MeshFilter->Sphere

SceneMemory->RectTransform->UIRoot

 

posted on 2020-03-01 09:00  void87  阅读(675)  评论(0编辑  收藏  举报

导航