ドキュメント

Unity Engine

Unity Engine

colliderInstanceID

Instance ID of the Collider that was hit.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前

Definition

  • Type: Property
  • Namespace: UnityEngine
  • Assembly: UnityEngine.PhysicsModule
注意
Removed. RaycastHit.colliderInstanceID is obsolete. Use RaycastHit.colliderEntityId instead.
public int colliderInstanceID { get; }

Remarks

Provides a reference to the collider that was hit in a way that is accessible from jobs. For more information on creating jobs see Create Jobs.