Skip to content

Adds PreviewMesh attribute to Tri-Inspector along with sample demonstrating parameter usages.#193

Merged
vanifatovvlad merged 3 commits into
codewriter-packages:mainfrom
Agent-Healm:main
Sep 20, 2025
Merged

Adds PreviewMesh attribute to Tri-Inspector along with sample demonstrating parameter usages.#193
vanifatovvlad merged 3 commits into
codewriter-packages:mainfrom
Agent-Healm:main

Conversation

@Agent-Healm
Copy link
Copy Markdown
Contributor

Changes:
Added Drawer and Attribute class for fields
Added Decorator_PreviewMeshSample scirptableobject
Updated README.md with example usage of the PreviewMesh

Impact:
Mesh can now be previewed inline
Previewed mesh can also be rotate to view all sides
Previewed mesh can also be zoom

Testing:
Verified the preview area draw mesh correctly
Confirmed the examples in README.md works as intended

Preview:

[LabelWidth(270f)]
[PreviewMesh(100, 100)]
public GameObject meshCustomLengthAndWidth;

[LabelWidth(200f)]
[PreviewMesh(200, 160, false)]
public GameObject meshNoFoldoutNoMesh;

[LabelWidth(200f)]
[PreviewMesh(200, 160, false)]
public GameObject meshNoFoldoutWithMesh;

@vanifatovvlad vanifatovvlad merged commit 1395482 into codewriter-packages:main Sep 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants