----------------------------- SpriteComponent::SetTexture
| 77 | // SpriteComponent::SetTexture |
| 78 | // |
| 79 | void SpriteComponent::SetTexture(core::HashString const textureAsset) |
| 80 | { |
| 81 | m_TextureAssetId = textureAsset; |
| 82 | if (m_Id != core::INVALID_SLOT_ID) |
| 83 | { |
| 84 | UnifiedScene::Instance().GetRenderScene().UpdateSpriteTexture(m_Id, m_TextureAssetId); |
| 85 | } |
| 86 | } |
| 87 | |
| 88 | //--------------------------- |
| 89 | // SpriteComponent::SetPivot |
nothing calls this directly
no test coverage detected