If I'm using asmdefs, where should I place custom sequences?
Posted: Mon Jun 03, 2019 6:24 pm
I think this is the code to find custom sequences:
I think that means if I'm using asmdefs, I can't put my custom sequences in my asmdef, I have to put it in DialogueSystem or outside of all asmdefs. Since the latter could increase compile time, that leaves putting it in the DialogueSystem asmdef. But isn't that a bad idea? Won't it get overwritten or interfere with my ability to upgrade the DialogueSystem library in the future? Is there a better place to put my custom code?
Code: Select all
private System.Type FindSequencerCommandType(string commandName)
{
if (m_cachedComponentTypes.ContainsKey(commandName))
{
return m_cachedComponentTypes[commandName];
}
else
{
var componentType = FindSequencerCommandType(commandName, "DialogueSystem");
if (componentType == null)
{
componentType = FindSequencerCommandType(commandName, "Assembly-CSharp");
if (componentType == null)
{
componentType = FindSequencerCommandType(commandName, "Assembly-CSharp-firstpass");
}
}
if (componentType != null)
{
m_cachedComponentTypes.Add(commandName, componentType);
}
return componentType;
}
}