Welcome,
Guest
. Please
login
or
register
.
December 09, 2023, 12:09:08 PM
Home
Help
Search
Login
Register
Tasharen Entertainment Forum
»
Support
»
NGUI 3 Support
»
importer.GetNPOTScale() == TextureImporter::kNPOTKeep
« previous
next »
Print
Pages: [
1
]
Author
Topic: importer.GetNPOTScale() == TextureImporter::kNPOTKeep (Read 8143 times)
wijesijp
Newbie
Thank You
-Given: 1
-Receive: 0
Posts: 6
importer.GetNPOTScale() == TextureImporter::kNPOTKeep
«
on:
June 04, 2015, 12:02:57 AM »
When I try to bring any images to Atlas Maker I get following error
I am using Unity 4.6.5
NGUI 3.8.2
Any suggestions on how to fix this?
importer
.
GetNPOTScale
(
)
==
TextureImporter
::
kNPOTKeep
UnityEditor
.
AssetDatabase
:
ImportAsset
(
String
, ImportAssetOptions
)
NGUIEditorTools
:
MakeTextureAnAtlas
(
String
, Boolean, Boolean
)
(
at Assets
/
NGUI
/
Scripts
/
Editor
/
NGUIEditorTools
.
cs
:
489
)
NGUIEditorTools
:
ImportTexture
(
String
, Boolean, Boolean, Boolean
)
(
at Assets
/
NGUI
/
Scripts
/
Editor
/
NGUIEditorTools
.
cs
:
503
)
NGUIEditorTools
:
ImportTexture
(
Texture, Boolean, Boolean, Boolean
)
(
at Assets
/
NGUI
/
Scripts
/
Editor
/
NGUIEditorTools
.
cs
:
522
)
UIAtlasMaker
:
ExtractSprites
(
UIAtlas, List`
1
)
(
at Assets
/
NGUI
/
Scripts
/
Editor
/
UIAtlasMaker
.
cs
:
555
)
UIAtlasMaker
:
UpdateAtlas
(
List`
1
, Boolean
)
(
at Assets
/
NGUI
/
Scripts
/
Editor
/
UIAtlasMaker
.
cs
:
687
)
UIAtlasMaker
:
OnGUI
(
)
(
at Assets
/
NGUI
/
Scripts
/
Editor
/
UIAtlasMaker
.
cs
:
1055
)
UnityEditor
.
DockArea
:
OnGUI
(
)
Logged
r.pedra
Full Member
Thank You
-Given: 7
-Receive: 20
Posts: 131
Re: importer.GetNPOTScale() == TextureImporter::kNPOTKeep
«
Reply #1 on:
June 04, 2015, 03:58:05 AM »
Seems to be related to the Power Of Two setting of the texture.
Logged
wijesijp
Newbie
Thank You
-Given: 1
-Receive: 0
Posts: 6
Re: importer.GetNPOTScale() == TextureImporter::kNPOTKeep
«
Reply #2 on:
June 04, 2015, 07:39:22 AM »
The textures, do they have to be power of two ?
«
Last Edit: June 04, 2015, 01:29:06 PM by wijesijp
»
Logged
r.pedra
Full Member
Thank You
-Given: 7
-Receive: 20
Posts: 131
Re: importer.GetNPOTScale() == TextureImporter::kNPOTKeep
«
Reply #3 on:
June 05, 2015, 03:47:24 AM »
Nope
Logged
ArenMook
Administrator
Hero Member
Thank You
-Given: 337
-Receive: 1171
Posts: 22,128
Toronto, Canada
Re: importer.GetNPOTScale() == TextureImporter::kNPOTKeep
«
Reply #4 on:
June 07, 2015, 12:46:24 PM »
Do you have some other script or addon that has a texture post-processor? That would indeed cause a problem if it tries messing with textures while NGUI is using them.
Logged
justin
Newbie
Thank You
-Given: 0
-Receive: 0
Posts: 8
Re: importer.GetNPOTScale() == TextureImporter::kNPOTKeep
«
Reply #5 on:
June 11, 2015, 12:39:58 AM »
I am experiencing this issue as well, even in a brand new empty project.
Unity 5.0.2f1
NGUI 3.9.0
This seems to only happen if the project was originally created in 2D mode.
Logged
ArenMook
Administrator
Hero Member
Thank You
-Given: 337
-Receive: 1171
Posts: 22,128
Toronto, Canada
Re: importer.GetNPOTScale() == TextureImporter::kNPOTKeep
«
Reply #6 on:
June 11, 2015, 06:44:10 AM »
Ah, 2D mode... Unity force-imports textures as sprites in 2D mode.
Logged
justin
Newbie
Thank You
-Given: 0
-Receive: 0
Posts: 8
Re: importer.GetNPOTScale() == TextureImporter::kNPOTKeep
«
Reply #7 on:
June 11, 2015, 09:10:49 AM »
I tried switching to 3D mode, reimporting the files, and building the atlas again. No luck.
Logged
ArenMook
Administrator
Hero Member
Thank You
-Given: 337
-Receive: 1171
Posts: 22,128
Toronto, Canada
Re: importer.GetNPOTScale() == TextureImporter::kNPOTKeep
«
Reply #8 on:
June 11, 2015, 09:20:32 AM »
Select the atlas texture and manually change its import settings to use Advanced texture type, not sprite type.
Logged
justin
Newbie
Thank You
-Given: 0
-Receive: 0
Posts: 8
Re: importer.GetNPOTScale() == TextureImporter::kNPOTKeep
«
Reply #9 on:
June 11, 2015, 09:24:53 AM »
Aha, of course. Thanks.
Logged
Print
Pages: [
1
]
« previous
next »
Tasharen Entertainment Forum
»
Support
»
NGUI 3 Support
»
importer.GetNPOTScale() == TextureImporter::kNPOTKeep