C# 클래스 SimpleSpritePackerEditor.SPTools

파일 보기 프로젝트 열기: sunduk/freegostop 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
Settings_AllowMuliSpritesOneSource string
Settings_DisableReadWriteEnabled string
Settings_SavedInstanceIDKey string
Settings_ScrollViewHeightKey string
Settings_ShowSpritesKey string
Settings_ThumbsHeightKey string
Settings_UseScrollViewKey string
Settings_UseSpriteThumbsKey string

공개 메소드들

메소드 설명
AssetSetFormat ( string path, TextureImporterFormat format ) : bool

Sets the asset texture format.

AssetSetReadWriteEnabled ( string path, bool enabled, bool force ) : bool

Sets the asset Read/Write enabled state.

CreateBlankTexture ( string path, bool alphaTransparency ) : bool

Creates a blank atlas texture.

DoAssetReimport ( string path, ImportAssetOptions options ) : void

Does asset reimport.

FilterResourcesForAtlasImport ( Object resources ) : Object[]

Filters the resources for atlas import.

GetAllScenesNames ( ) : string[]

Gets all scenes names.

GetAssetPath ( Object obj ) : string

Gets the asset path of a object.

GetAssetPath ( Texture2D texture ) : string

Gets the asset path of a texture.

GetDirectoryAssets ( string path ) : Object[]

Gets the assets in the specified directory.

GetEditorPrefBool ( string key ) : bool

Gets the editor preference bool value with the specified key.

GetProjectPrefabComponents ( ) : UnityEngine.Component[]
GetSubAssets ( Object obj ) : Object[]

Gets the sub assets of an object.

HasSubAssets ( Object obj ) : bool

Determines if the specified object has sub assets.

ImportAndConfigureAtlasTexture ( Texture2D targetTexture, Texture2D sourceTexture, Rect uvs, SimpleSpritePackerEditor.SPSpriteImportData spritesImportData ) : bool

Imports and configures atlas texture.

ImportTexture ( string path, Texture2D texture ) : bool

Imports a texture as asset.

IsDirectory ( string path ) : bool

Determines if the specified path is directory.

IsMainAsset ( Object obj ) : bool

Determines if the specified object is main asset.

LoadSprite ( Texture2D mainTexture, string name ) : Sprite

Loads a sprite from a texture.

PrepareDefaultEditorPrefs ( ) : void

Prepares the default editor preference values.

RemoveReadOnlyFlag ( string path ) : bool

Removes the read only flag from the asset.

ReplaceReferences ( Component components, Sprite find, Sprite replaceWith, bool spriteRenderersOnly ) : int

Replaces all the references in the supplied array (does not work with internal properties).

ReplaceReferencesInAllScenes ( List spriteInfoList, SPReferenceReplacerWindow replaceMode, bool spriteRenderersOnly, bool skipCurrent ) : int

Replaces all the references in all scenes.

ReplaceReferencesInProject ( List spriteInfoList, SPReferenceReplacerWindow replaceMode, bool spriteRenderersOnly ) : int

Replaces all the references in the project (does not work with internal properties).

ReplaceReferencesInScene ( List spriteInfoList, SPReferenceReplacerWindow replaceMode, bool spriteRenderersOnly ) : int

Replaces all the references in the scene (does not work with internal properties).

TextureSetReadWriteEnabled ( Texture2D texture, bool enabled, bool force ) : bool

Sets the texture asset Read/Write enabled state.

비공개 메소드들

메소드 설명
GetSpritesheetMeta ( SpriteMetaData collection, string name ) : SpriteMetaData

Gets the spritesheet meta data for the specified name.

HasSpritesheetMeta ( SpriteMetaData collection, string name ) : bool

Determines if the specified name has spritesheet meta data.

메소드 상세

AssetSetFormat() 공개 정적인 메소드

Sets the asset texture format.
public static AssetSetFormat ( string path, TextureImporterFormat format ) : bool
path string Path.
format TextureImporterFormat Format.
리턴 bool

AssetSetReadWriteEnabled() 공개 정적인 메소드

Sets the asset Read/Write enabled state.
public static AssetSetReadWriteEnabled ( string path, bool enabled, bool force ) : bool
path string Path.
enabled bool If set to true enabled.
force bool If set to true force.
리턴 bool

CreateBlankTexture() 공개 정적인 메소드

Creates a blank atlas texture.
public static CreateBlankTexture ( string path, bool alphaTransparency ) : bool
path string Asset Path.
alphaTransparency bool If set to true alpha transparency.
리턴 bool

DoAssetReimport() 공개 정적인 메소드

Does asset reimport.
public static DoAssetReimport ( string path, ImportAssetOptions options ) : void
path string Path.
options ImportAssetOptions Options.
리턴 void

FilterResourcesForAtlasImport() 공개 정적인 메소드

Filters the resources for atlas import.
public static FilterResourcesForAtlasImport ( Object resources ) : Object[]
resources Object Resources.
리턴 Object[]

GetAllScenesNames() 공개 정적인 메소드

Gets all scenes names.
public static GetAllScenesNames ( ) : string[]
리턴 string[]

GetAssetPath() 공개 정적인 메소드

Gets the asset path of a object.
public static GetAssetPath ( Object obj ) : string
obj Object Object.
리턴 string

GetAssetPath() 공개 정적인 메소드

Gets the asset path of a texture.
public static GetAssetPath ( Texture2D texture ) : string
texture UnityEngine.Texture2D Texture.
리턴 string

GetDirectoryAssets() 공개 정적인 메소드

Gets the assets in the specified directory.
public static GetDirectoryAssets ( string path ) : Object[]
path string Path.
리턴 Object[]

GetEditorPrefBool() 공개 정적인 메소드

Gets the editor preference bool value with the specified key.
public static GetEditorPrefBool ( string key ) : bool
key string Key.
리턴 bool

GetProjectPrefabComponents() 공개 정적인 메소드

public static GetProjectPrefabComponents ( ) : UnityEngine.Component[]
리턴 UnityEngine.Component[]

GetSubAssets() 공개 정적인 메소드

Gets the sub assets of an object.
public static GetSubAssets ( Object obj ) : Object[]
obj Object Object.
리턴 Object[]

HasSubAssets() 공개 정적인 메소드

Determines if the specified object has sub assets.
public static HasSubAssets ( Object obj ) : bool
obj Object Object.
리턴 bool

ImportAndConfigureAtlasTexture() 공개 정적인 메소드

Imports and configures atlas texture.
public static ImportAndConfigureAtlasTexture ( Texture2D targetTexture, Texture2D sourceTexture, Rect uvs, SimpleSpritePackerEditor.SPSpriteImportData spritesImportData ) : bool
targetTexture UnityEngine.Texture2D Target texture.
sourceTexture UnityEngine.Texture2D Source texture.
uvs UnityEngine.Rect Uvs.
spritesImportData SimpleSpritePackerEditor.SPSpriteImportData
리턴 bool

ImportTexture() 공개 정적인 메소드

Imports a texture as asset.
public static ImportTexture ( string path, Texture2D texture ) : bool
path string Path.
texture UnityEngine.Texture2D Texture.
리턴 bool

IsDirectory() 공개 정적인 메소드

Determines if the specified path is directory.
public static IsDirectory ( string path ) : bool
path string Path.
리턴 bool

IsMainAsset() 공개 정적인 메소드

Determines if the specified object is main asset.
public static IsMainAsset ( Object obj ) : bool
obj Object Object.
리턴 bool

LoadSprite() 공개 정적인 메소드

Loads a sprite from a texture.
public static LoadSprite ( Texture2D mainTexture, string name ) : Sprite
mainTexture UnityEngine.Texture2D Main texture.
name string Name.
리턴 UnityEngine.Sprite

PrepareDefaultEditorPrefs() 공개 정적인 메소드

Prepares the default editor preference values.
public static PrepareDefaultEditorPrefs ( ) : void
리턴 void

RemoveReadOnlyFlag() 공개 정적인 메소드

Removes the read only flag from the asset.
public static RemoveReadOnlyFlag ( string path ) : bool
path string Path.
리턴 bool

ReplaceReferences() 공개 정적인 메소드

Replaces all the references in the supplied array (does not work with internal properties).
public static ReplaceReferences ( Component components, Sprite find, Sprite replaceWith, bool spriteRenderersOnly ) : int
components UnityEngine.Component
find UnityEngine.Sprite Find.
replaceWith UnityEngine.Sprite Replace with.
spriteRenderersOnly bool If set to true sprite renderers only.
리턴 int

ReplaceReferencesInAllScenes() 공개 정적인 메소드

Replaces all the references in all scenes.
public static ReplaceReferencesInAllScenes ( List spriteInfoList, SPReferenceReplacerWindow replaceMode, bool spriteRenderersOnly, bool skipCurrent ) : int
spriteInfoList List Sprite info list.
replaceMode SPReferenceReplacerWindow
spriteRenderersOnly bool If set to true sprite renderers only.
skipCurrent bool If set to true skip current scene.
리턴 int

ReplaceReferencesInProject() 공개 정적인 메소드

Replaces all the references in the project (does not work with internal properties).
public static ReplaceReferencesInProject ( List spriteInfoList, SPReferenceReplacerWindow replaceMode, bool spriteRenderersOnly ) : int
spriteInfoList List Sprite info list.
replaceMode SPReferenceReplacerWindow
spriteRenderersOnly bool If set to true sprite renderers only.
리턴 int

ReplaceReferencesInScene() 공개 정적인 메소드

Replaces all the references in the scene (does not work with internal properties).
public static ReplaceReferencesInScene ( List spriteInfoList, SPReferenceReplacerWindow replaceMode, bool spriteRenderersOnly ) : int
spriteInfoList List Sprite info list.
replaceMode SPReferenceReplacerWindow
spriteRenderersOnly bool If set to true sprite renderers only.
리턴 int

TextureSetReadWriteEnabled() 공개 정적인 메소드

Sets the texture asset Read/Write enabled state.
public static TextureSetReadWriteEnabled ( Texture2D texture, bool enabled, bool force ) : bool
texture UnityEngine.Texture2D Texture.
enabled bool If set to true enabled.
force bool If set to true force.
리턴 bool

프로퍼티 상세

Settings_AllowMuliSpritesOneSource 공개적으로 정적으로 프로퍼티

public static string Settings_AllowMuliSpritesOneSource
리턴 string

Settings_DisableReadWriteEnabled 공개적으로 정적으로 프로퍼티

public static string Settings_DisableReadWriteEnabled
리턴 string

Settings_SavedInstanceIDKey 공개적으로 정적으로 프로퍼티

public static string Settings_SavedInstanceIDKey
리턴 string

Settings_ScrollViewHeightKey 공개적으로 정적으로 프로퍼티

public static string Settings_ScrollViewHeightKey
리턴 string

Settings_ShowSpritesKey 공개적으로 정적으로 프로퍼티

public static string Settings_ShowSpritesKey
리턴 string

Settings_ThumbsHeightKey 공개적으로 정적으로 프로퍼티

public static string Settings_ThumbsHeightKey
리턴 string

Settings_UseScrollViewKey 공개적으로 정적으로 프로퍼티

public static string Settings_UseScrollViewKey
리턴 string

Settings_UseSpriteThumbsKey 공개적으로 정적으로 프로퍼티

public static string Settings_UseSpriteThumbsKey
리턴 string