Version: Unity 6.7 Beta (6000.7)
LanguageEnglish
  • C#

PhysicsUserDataInspector

class in Unity.U2D.Physics.Editor

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Description

Builds the UI Toolkit fields for a PhysicsUserData serialized property. The entity id is presented as the object it references, alongside the mask, float, int, long, Vector3Int, and bool slots. Add the returned element directly to embed the fields inline, or wrap it in a Foldout for a collapsible section.

Static Methods

Method Description
CreateFields Create the editable fields for a PhysicsUserData property, with no wrapping foldout.