🔎
Examine System V1 - Doc
  • Examine System - Introduction
  • ⭐GETTING STARTED
    • Quick Setup
    • Detailed Setup
    • GameObject Tag Reference
  • 🔎INSPECTION POINTS
    • Adding Inspection Points
    • Inspect Points - Custom Event
    • Inspect Points - Animations
  • HDRP Setup
    • HDRP Setup
  • URP Setup
    • URP Setup
    • Deferred Rendering Note
  • ❓Support
    • FAQ
    • Disabling Hints
    • Adding Audioclips
    • Where are inputs?
    • Text Not Appearing?
    • Items Not Appearing?
    • Emission Highlighting
    • Destroy Instanced Materials
    • Where are UI's located?
    • Where is the Examine Point?
    • Using a different Character Controller
  • 🌀Development
    • Patch Notes - V1.7
    • Roadmap
  • 📧CONTACT ME
    • Contact Me
    • My Other Assets
Powered by GitBook
On this page

Was this helpful?

  1. Support

Destroy Instanced Materials

Why is this important?

I have added a method within the ExaminableItem script which uses OnDestroy()

  • This destroys the instanced object material, if one was created when using the emission highlight. This means it will save any memory leakage in future.

        private void OnDestroy()
        {
            Destroy(objectMaterial);
        }
PreviousEmission HighlightingNextWhere are UI's located?

Last updated 1 year ago

Was this helpful?

❓