Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

instance_furthest

CryoEagle edited this page Jan 5, 2019 · 2 revisions

instance_furthest

Return furthest GameObject

Syntax:

instance_furthest(position, obj, countMe)
Argument Description
Vector2 position Position from to start comparing distance
Type obj Object for comparing
bool countMe bool for counting this object too

Returns: GameObject

Description:

This function will find furthest object from given position

Example:

GameObject furthestObj = instance_furthest(Position, typeof(oObjectToFind), false);

This code will find furthest object named oObjectToFind and save it to local variable GameObject furthestObj.

Back to Instances

Clone this wiki locally

AltStyle によって変換されたページ (->オリジナル) /