mirror of
https://github.com/4ian/GDevelop.git
synced 2025-10-15 10:19:04 +00:00
Add performance warning for text object character size action
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
Reference in New Issue
Block a user