Add performance warning for text object character size action

This commit is contained in:
Florian Rival
2019-03-09 19:54:32 +00:00
parent fa022747e2
commit 6c629f6d68

View File

@@ -20,6 +20,11 @@ export const getExtraInstructionInformation = (
Physics2, you can't mix the behaviors).`,
};
}
if (type === 'TextObject::Size') {
return {
warning: t`This action will create a new texture and re-render the text each time it is called, which is expensive and can reduce performances. Prefer to avoid changing a lot the character size of a text.`,
};
}
return null;
};