Про ScriptedTexture

Monokini2

Поклонник кармы
Местный
Победитель в номинации 2023
Сообщения
363
Розыгрыши
0
Решения
5
Репутация
269
Реакции
254
Баллы
723
Собственно умеет ли л2 в их генерацию или где что-то сломали, а то у меня при DrawText и DrawTile сразу летит крит, хотя судя по примерам старался все правильно делать
В чем может быть дело :unsure:
C#:
function GenerateTexture()
{
    local Texture targetTexture;
    
    aScriptedTexture = ScriptedTexture(Level.ObjectPool.AllocateObject(class'ScriptedTexture'));   // this spawns a unquie Scripted texture for us to use
    aScriptedTexture.SetSize(512,512); 
    targetTexture = Texture(DynamicLoadObject("Texture.name", class'Texture'));
    aScriptedTexture.DrawTile(0,0,targetTexture.USize,targetTexture.VSize,0,0,targetTexture.USize,targetTexture.VSize,targetTexture,BackColor);   // Draws the tile background   
}
1111.png
 
Назад
Сверху Снизу