© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•4y ago•
42 replies
The Mist

ReferenceEquals?

Am I missing something obvious?
ReferenceEquals(text.textInfo.meshInfo[0].mesh, text.mesh) // true
ReferenceEquals(text.textInfo.meshInfo[0].mesh.vertices, text.mesh.vertices) // false
ReferenceEquals(text.textInfo.meshInfo[0].mesh, text.mesh) // true
ReferenceEquals(text.textInfo.meshInfo[0].mesh.vertices, text.mesh.vertices) // false

This is Unity, TMPro.
If
text.textInfo.meshInfo[0].mesh
text.textInfo.meshInfo[0].mesh
and
text.mesh
text.mesh
are pointing to the same instance - how come the vertices property of the same instance doesn't return
true
true
?
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

❔ Where can I find the implementation of System.Object.ReferenceEquals?
C#CC# / help
3y ago
null check raising errors
C#CC# / help
2y ago
❔ Deep clone variable
C#CC# / help
3y ago
❔ C# Fundamental: does setting one object to another point or copy?
C#CC# / help
3y ago