• Manual
  • Scripting API
  • Changelog
  • License
🏷️ Namespaces
  • Zigurous.Utility
🧱 Classes
  • ActiveAtDistance
  • AxisConstraintExtensions
  • BehaviorExtensions
  • BillboardRotation
  • ConditionalAttribute
  • ConditionalHideAttribute
  • ConditionalShowAttribute
  • CursorLockState
  • CursorVisbility
  • EnableAtDistance
  • ExitApplication
  • FloatEqualityComparer
  • GameObjectExtensions
  • InputRotation
  • LoadSceneDelayed
  • LockPosition
  • LockRotation
  • LockScale
  • LookAtMouse
  • MatchPosition
  • MatchRotation
  • MatchScale
  • MatchTransform
  • MonoBehaviorExtensions
  • ObjectExtensions
  • ReadOnlyAttribute
  • RenameAttribute
  • TargetFrameRate
  • TimedObject
  • TransformConstraintExtensions
  • TransformExtensions
  • Yield
📋 Enums
  • ActiveAtDistance.RangeType
  • AxisConstraint
  • ConditionalAttribute.PropertyDrawer
  • EnableAtDistance.RangeType
  • TimedObject.TimeoutEvent
  • TransformConstraint

ObjectExtensions.FindNonNullReference<T>

Extension Method in ObjectExtensions

Declaration

public static void FindNonNullReference<T>(this T obj)
    where T : Object

Description

Finds a reference to the specified object type in the scene, and assigns the reference to the object if it exists.

Type Parameters

TThe type of object to find.

Parameters

objThe object to find the reference for.