update CCK to 3.10, fixing unity 2021 crash :)
This commit is contained in:
parent
48a978fa2a
commit
d11e0fb3a9
492 changed files with 2165204 additions and 437687 deletions
24
Assets/ABI.CCK/Scripts/Editor/ShaderProcessing/StripAndroidShaders.cs
Executable file
24
Assets/ABI.CCK/Scripts/Editor/ShaderProcessing/StripAndroidShaders.cs
Executable file
|
@ -0,0 +1,24 @@
|
|||
using System.Collections.Generic;
|
||||
using UnityEditor;
|
||||
using UnityEngine;
|
||||
using UnityEditor.Build;
|
||||
using UnityEditor.Rendering;
|
||||
|
||||
namespace ABI.CCK.Scripts.Editor.ShaderProcessing
|
||||
{
|
||||
public class StripAndroidShaders : IPreprocessShaders
|
||||
{
|
||||
public int callbackOrder => 0;
|
||||
|
||||
public void OnProcessShader(Shader shader, ShaderSnippetData snippet, IList<ShaderCompilerData> data)
|
||||
{
|
||||
// TODO: Differentiate when building specifically for a CCK upload
|
||||
if (EditorUserBuildSettings.activeBuildTarget != BuildTarget.Android)
|
||||
return;
|
||||
|
||||
// if shader is not mobile, nuke it
|
||||
// if (!shader.name.Contains("Mobile"))
|
||||
// data.Clear();
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,3 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 7845473312dd4056bca70badf95e4e9e
|
||||
timeCreated: 1702352331
|
24
Assets/ABI.CCK/Scripts/Editor/ShaderProcessing/StripPostProcessingShaders.cs
Executable file
24
Assets/ABI.CCK/Scripts/Editor/ShaderProcessing/StripPostProcessingShaders.cs
Executable file
|
@ -0,0 +1,24 @@
|
|||
using System.Collections.Generic;
|
||||
using UnityEditor;
|
||||
using UnityEngine;
|
||||
using UnityEditor.Build;
|
||||
using UnityEditor.Rendering;
|
||||
|
||||
namespace ABI.CCK.Scripts.Editor.ShaderProcessing
|
||||
{
|
||||
public class StripPostProcessingShaders : IPreprocessShaders
|
||||
{
|
||||
public int callbackOrder => 0;
|
||||
|
||||
public void OnProcessShader(Shader shader, ShaderSnippetData snippet, IList<ShaderCompilerData> data)
|
||||
{
|
||||
// TODO: Differentiate when building specifically for a CCK upload
|
||||
if (EditorUserBuildSettings.activeBuildTarget != BuildTarget.Android)
|
||||
return;
|
||||
|
||||
// nuke post processing shaders
|
||||
if (shader.name.StartsWith("Hidden/PostProcessing"))
|
||||
data.Clear();
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: cf702ff99b6dbea4bbf5f846b082d6fd
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
Loading…
Add table
Add a link
Reference in a new issue