C# Класс EasyVoiceDataAsset, RoverGame

Наследование: UnityEngine.ScriptableObject
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
dataVersion int

Открытые методы

Метод Описание
AddNewLine ( ) : int
AddNewLine ( int givenId, string givenGroup, byte givenStatus, string givenName, string givenText, string givenFileName, LineIssue givenIssues ) : int
ClearClip ( int index, bool markChanged = false ) : void
DeleteAllLines ( ) : void
DeleteLine ( int index, bool createEmptyLineOnNoLines = true ) : void
DuplicateLine ( int index ) : void
FirstInitialize ( ) : void
GetClip ( int index ) : AudioClip
GetFileName ( int index ) : string

NOTE: This will not return a default file name correctly filled, use GetFileNameOrDefault() for that

GetFileNameOrDefault ( int index ) : string
GetGroup ( int index ) : string
GetId ( int index ) : int
GetIssues ( int index ) : LineIssue
GetOutputStatus ( int index ) : bool
GetSpeakerName ( int index ) : string

Note: This will not replace any default values

GetSpeakerNameOrSelectDefault ( int index ) : string
GetSpeechText ( int index ) : string
GetStatus ( int index ) : byte
HasIssue ( int index, LineIssue saughtIssues ) : bool
IntegrityErrorReport ( ) : string
LineCount ( ) : int

This will return how many lines there are currently stored

MakeSureAllDefaultFileNamesAreUnique ( ) : void
MoveLine ( int fromIndex, int toIndex ) : void
MoveLineDown ( int index ) : void
MoveLineUp ( int index ) : void
SanitizeFileName ( string fileName ) : string
SetClip ( int index, AudioClip newClip, bool markChanged = false ) : void
SetDefaultFileName ( int index ) : void
SetFileName ( int index, string newValue, bool forceVerification, bool markChanged = true ) : void
SetGroup ( int index, string newValue ) : void
SetId ( int index, int newValue ) : void
SetIssue ( int index, LineIssue chosenIssue, bool newValue ) : void
SetIssues ( int index, LineIssue newIssues ) : void
SetOutputStatus ( int index, bool newValue ) : void
SetSpeakerName ( int index, string newValue ) : void
SetSpeechText ( int index, string newValue ) : void
SetStatus ( int index, byte newValue ) : void
SortLinesByFileName ( bool descending ) : void
SortLinesBySpeaker ( bool descending, EasyVoiceSettings, settings ) : void
Upgrade ( int newVersion ) : void

This will, if necessary, upgrade the data asset to the given version There is no need to call this manually and Easy Voice will upgrade the asset automatically, when version mismatch is detected

VerifyIntegrity ( ) : bool

Приватные методы

Метод Описание
GenerateUniqueId ( int ourIndex, int minId = 1 ) : int

This will run through all lines and return a unique int id

IdExists ( int seekerIndex, int id ) : bool
MakeSureDefaultFileNameIsUnique ( int index ) : void

This makes sure the current DEFAULT file name is unique to all other file names (i.e. ID is unique and non-clashing with manually typed ones)

MakeSureOtherFileNamesAreUnique ( int index ) : void
OnEnable ( ) : void
Swap ( int index, int otherIndex ) : void

Описание методов

AddNewLine() публичный Метод

public AddNewLine ( ) : int
Результат int

AddNewLine() публичный Метод

public AddNewLine ( int givenId, string givenGroup, byte givenStatus, string givenName, string givenText, string givenFileName, LineIssue givenIssues ) : int
givenId int
givenGroup string
givenStatus byte
givenName string
givenText string
givenFileName string
givenIssues LineIssue
Результат int

ClearClip() публичный Метод

public ClearClip ( int index, bool markChanged = false ) : void
index int
markChanged bool
Результат void

DeleteAllLines() публичный Метод

public DeleteAllLines ( ) : void
Результат void

DeleteLine() публичный Метод

public DeleteLine ( int index, bool createEmptyLineOnNoLines = true ) : void
index int
createEmptyLineOnNoLines bool
Результат void

DuplicateLine() публичный Метод

public DuplicateLine ( int index ) : void
index int
Результат void

FirstInitialize() публичный Метод

public FirstInitialize ( ) : void
Результат void

GetClip() публичный Метод

public GetClip ( int index ) : AudioClip
index int
Результат UnityEngine.AudioClip

GetFileName() публичный Метод

NOTE: This will not return a default file name correctly filled, use GetFileNameOrDefault() for that
public GetFileName ( int index ) : string
index int
Результат string

GetFileNameOrDefault() публичный Метод

public GetFileNameOrDefault ( int index ) : string
index int
Результат string

GetGroup() публичный Метод

public GetGroup ( int index ) : string
index int
Результат string

GetId() публичный Метод

public GetId ( int index ) : int
index int
Результат int

GetIssues() публичный Метод

public GetIssues ( int index ) : LineIssue
index int
Результат LineIssue

GetOutputStatus() публичный Метод

public GetOutputStatus ( int index ) : bool
index int
Результат bool

GetSpeakerName() публичный Метод

Note: This will not replace any default values
public GetSpeakerName ( int index ) : string
index int
Результат string

GetSpeakerNameOrSelectDefault() публичный Метод

public GetSpeakerNameOrSelectDefault ( int index ) : string
index int
Результат string

GetSpeechText() публичный Метод

public GetSpeechText ( int index ) : string
index int
Результат string

GetStatus() публичный Метод

public GetStatus ( int index ) : byte
index int
Результат byte

HasIssue() публичный Метод

public HasIssue ( int index, LineIssue saughtIssues ) : bool
index int
saughtIssues LineIssue
Результат bool

IntegrityErrorReport() публичный Метод

public IntegrityErrorReport ( ) : string
Результат string

LineCount() публичный Метод

This will return how many lines there are currently stored
public LineCount ( ) : int
Результат int

MakeSureAllDefaultFileNamesAreUnique() публичный Метод

public MakeSureAllDefaultFileNamesAreUnique ( ) : void
Результат void

MoveLine() публичный Метод

public MoveLine ( int fromIndex, int toIndex ) : void
fromIndex int
toIndex int
Результат void

MoveLineDown() публичный Метод

public MoveLineDown ( int index ) : void
index int
Результат void

MoveLineUp() публичный Метод

public MoveLineUp ( int index ) : void
index int
Результат void

SanitizeFileName() публичный статический Метод

public static SanitizeFileName ( string fileName ) : string
fileName string
Результат string

SetClip() публичный Метод

public SetClip ( int index, AudioClip newClip, bool markChanged = false ) : void
index int
newClip UnityEngine.AudioClip
markChanged bool
Результат void

SetDefaultFileName() публичный Метод

public SetDefaultFileName ( int index ) : void
index int
Результат void

SetFileName() публичный Метод

public SetFileName ( int index, string newValue, bool forceVerification, bool markChanged = true ) : void
index int
newValue string
forceVerification bool
markChanged bool
Результат void

SetGroup() публичный Метод

public SetGroup ( int index, string newValue ) : void
index int
newValue string
Результат void

SetId() публичный Метод

public SetId ( int index, int newValue ) : void
index int
newValue int
Результат void

SetIssue() публичный Метод

public SetIssue ( int index, LineIssue chosenIssue, bool newValue ) : void
index int
chosenIssue LineIssue
newValue bool
Результат void

SetIssues() публичный Метод

public SetIssues ( int index, LineIssue newIssues ) : void
index int
newIssues LineIssue
Результат void

SetOutputStatus() публичный Метод

public SetOutputStatus ( int index, bool newValue ) : void
index int
newValue bool
Результат void

SetSpeakerName() публичный Метод

public SetSpeakerName ( int index, string newValue ) : void
index int
newValue string
Результат void

SetSpeechText() публичный Метод

public SetSpeechText ( int index, string newValue ) : void
index int
newValue string
Результат void

SetStatus() публичный Метод

public SetStatus ( int index, byte newValue ) : void
index int
newValue byte
Результат void

SortLinesByFileName() публичный Метод

public SortLinesByFileName ( bool descending ) : void
descending bool
Результат void

SortLinesBySpeaker() публичный Метод

public SortLinesBySpeaker ( bool descending, EasyVoiceSettings, settings ) : void
descending bool
settings EasyVoiceSettings,
Результат void

Upgrade() публичный Метод

This will, if necessary, upgrade the data asset to the given version There is no need to call this manually and Easy Voice will upgrade the asset automatically, when version mismatch is detected
public Upgrade ( int newVersion ) : void
newVersion int
Результат void

VerifyIntegrity() публичный Метод

public VerifyIntegrity ( ) : bool
Результат bool

Описание свойств

dataVersion публичное свойство

public int dataVersion
Результат int