mirror of
https://github.com/maxartz15/MA_TextureAtlasser.git
synced 2025-07-07 16:56:08 +02:00
Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
521cb34541 | |||
d8c59e86ca |
@ -1,4 +1,5 @@
|
||||
using UnityEngine;
|
||||
#if UNITY_EDITOR
|
||||
using UnityEngine;
|
||||
using System.Collections;
|
||||
using MA_Texture;
|
||||
using System.Collections.Generic;
|
||||
@ -67,3 +68,4 @@ namespace MA_TextureAtlasserPro
|
||||
SpriteSliced
|
||||
}
|
||||
}
|
||||
#endif
|
@ -62,7 +62,7 @@ namespace MA_Mesh
|
||||
|
||||
assetPath = savePath + prefabName + ".prefab";
|
||||
|
||||
#if UNITY_2018_4_OR_NEWER
|
||||
#if UNITY_2018_3_OR_NEWER
|
||||
|
||||
PrefabUtility.SaveAsPrefabAsset(gameObject, assetPath);
|
||||
|
||||
|
@ -41,7 +41,7 @@ namespace MA_Texture
|
||||
RenderTexture.active = tmp;
|
||||
|
||||
// Create a new readable Texture2D to copy the pixels to it
|
||||
Texture2D myTexture2D = new Texture2D(texture.width, texture.width);
|
||||
Texture2D myTexture2D = new Texture2D(texture.width, texture.height);
|
||||
|
||||
// Copy the pixels from the RenderTexture to the new Texture
|
||||
myTexture2D.ReadPixels(new Rect(0, 0, tmp.width, tmp.height), 0, 0);
|
||||
|
Reference in New Issue
Block a user