Welcome,
Guest
. Please
login
or
register
.
April 18, 2025, 03:34:30 PM
Home
Help
Search
Login
Register
Tasharen Entertainment Forum
»
Support
»
NGUI 3 Support
»
Font/Atlas Maker broken?
« previous
next »
Print
Pages: [
1
]
Author
Topic: Font/Atlas Maker broken? (Read 1930 times)
vidjogamer
Newbie
Thank You
-Given: 0
-Receive: 0
Posts: 48
Font/Atlas Maker broken?
«
on:
April 29, 2014, 05:26:49 PM »
Hello, I succesfully made an atlas full of images, now when I use the font maker to add a font to the atlas, it corrupts my atlas texture.
I've been making a bunch of atlases, its been working fine until now. Hopefully you can fix it.
MissingReferenceException
:
The
object
of type
'Texture2D'
has been destroyed but you are still trying to access it
.
Your
script should either check
if
it
is
null
or you should not destroy the
object
.
UnityEngine
.
Texture
.
get_width
(
)
(
at C
:/
BuildAgent
/
work
/
d3d49558e4d408f4
/
artifacts
/
EditorGenerated
/
TextureBindings
.
cs
:
47
)
UIAtlasMaker
.
PackTextures
(
UnityEngine
.
Texture2D
tex,
System.
Collections
.
Generic
.
List
`
1
sprites
)
(
at Assets
/
NGUI
/
Scripts
/
Editor
/
UIAtlasMaker
.
cs
:
147
)
UIAtlasMaker
.
UpdateTexture
(
.
UIAtlas
atlas,
System.
Collections
.
Generic
.
List
`
1
sprites
)
(
at Assets
/
NGUI
/
Scripts
/
Editor
/
UIAtlasMaker
.
cs
:
561
)
UIAtlasMaker
.
UpdateAtlas
(
.
UIAtlas
atlas,
System.
Collections
.
Generic
.
List
`
1
sprites
)
(
at Assets
/
NGUI
/
Scripts
/
Editor
/
UIAtlasMaker
.
cs
:
676
)
UIAtlasMaker
.
AddOrUpdate
(
.
UIAtlas
atlas, UnityEngine
.
Texture2D
tex
)
(
at Assets
/
NGUI
/
Scripts
/
Editor
/
UIAtlasMaker
.
cs
:
618
)
UIFontMaker
.
OnGUI
(
)
(
at Assets
/
NGUI
/
Scripts
/
Editor
/
UIFontMaker
.
cs
:
472
)
System.
Reflection
.
MonoMethod
.
Invoke
(
System
.
Object
obj, BindingFlags invokeAttr,
System.
Reflection
.
Binder
binder,
System
.
Object
[
]
parameters,
System.
Globalization
.
CultureInfo
culture
)
(
at
/
Users
/
builduser
/
buildslave
/
monoAndRuntimeClassLibs
/
build
/
mcs
/
class
/
corlib
/
System.
Reflection
/
MonoMethod
.
cs
:
222
)
Logged
ArenMook
Administrator
Hero Member
Thank You
-Given: 337
-Receive: 1171
Posts: 22,128
Toronto, Canada
Re: Font/Atlas Maker broken?
«
Reply #1 on:
April 30, 2014, 06:26:19 PM »
Are you doing this on the platform that's limited to 1024x1024? Check your atlas texture before and after the step where you add a font. Also select the atlas texture and override it for your target platform, making max size 4096x4096.
Logged
Print
Pages: [
1
]
« previous
next »
Tasharen Entertainment Forum
»
Support
»
NGUI 3 Support
»
Font/Atlas Maker broken?