Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions Assets/XLua/Doc/Configure_EN.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,9 @@ public static List<List<string>> BlackList = new List<List<string>>() {
//new List<string>(){ typeof(UnityEngine.GameObject).FullName, "networkView"},
new List<string>(){"System.IO.FileInfo", "GetAccessControl", "System.Security.AccessControl.AccessControlSections"},
//new List<string>(){ typeof(System.IO.FileInfo).FullName, "GetAccessControl",typeof(System.Security.AccessControl.AccessControlSections).FullName },

// If you want to blacklist all methods with specific name, use "All" as first parameter type:
new List<string>() { "UnityEngine.Debug", "Log", "All" },
};
~~~

Expand Down
2 changes: 2 additions & 0 deletions Assets/XLua/Src/Editor/Generator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -566,6 +566,8 @@ static bool isMethodInBlackList(MethodBase mb)
{
if (mb.DeclaringType.ToString() == exclude[0] && mb.Name == exclude[1])
{
if(exclude.Count == 3 && string.Equals(exclude[2], "All")
return true; // Blacklist all methods with this name;
var parameters = mb.GetParameters();
if (parameters.Length != exclude.Count - 2)
{
Expand Down