Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Y
YGOProUnity_V2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
YGOProUnity_V2
Commits
009a00e8
Commit
009a00e8
authored
Oct 24, 2022
by
mercury233
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix GetTexture2D (field picture)
parent
3f55e113
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
Assets/SibylSystem/MonoHelpers/UIHelper.cs
Assets/SibylSystem/MonoHelpers/UIHelper.cs
+5
-1
No files found.
Assets/SibylSystem/MonoHelpers/UIHelper.cs
View file @
009a00e8
...
...
@@ -735,6 +735,10 @@ public static class UIHelper
public
static
Texture2D
GetTexture2D
(
string
path
)
{
if
(!
File
.
Exists
(
path
))
{
return
null
;
}
var
pic
=
new
Texture2D
(
0
,
0
);
pic
.
LoadImage
(
File
.
ReadAllBytes
(
path
));
return
pic
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment