Rename 'text' to 'sprite' to avoid confusion in the future.

This commit is contained in:
Menotdan
2023-12-17 12:03:44 -05:00
parent ea744ab4ac
commit 51c36223e6

View File

@@ -67,9 +67,9 @@ namespace FlaxEditor.SceneGraph.Actors
}
// Setup for default values
var text = (SpriteRender)Actor;
text.Material = FlaxEngine.Content.LoadAsyncInternal<MaterialBase>(EditorAssets.DefaultSpriteMaterial);
text.Image = FlaxEngine.Content.LoadAsyncInternal<Texture>(EditorAssets.FlaxIconTexture);
var sprite = (SpriteRender)Actor;
sprite.Material = FlaxEngine.Content.LoadAsyncInternal<MaterialBase>(EditorAssets.DefaultSpriteMaterial);
sprite.Image = FlaxEngine.Content.LoadAsyncInternal<Texture>(EditorAssets.FlaxIconTexture);
}
}
}