- Home /
Function that returns boolean and changes one of its parameters?
Hi, I'm trying to define a function similar to the function Physics.Raycast(origin: Vector3, direction: Vector3, hitInfo: RaycastHit, distance: float = Mathf.Infinity, layerMask: int = DefaultRaycastLayers): bool;
Where it if it returns true it will also store information into one of its parameters, the "hitInfo" parameter, so how can I define a function that does this?
Thanks!
NOTE: I'm using javascript, I know how to do it in C# but I need in javascript
Your answer
Follow this Question
Related Questions
Button is unable to grab functions with two parameters? 0 Answers
C# Function that returns instantiated object 1 Answer
type function not returning. c# 2 Answers
Pass data from "v2f vert(appdata_vert v){}" to "float4 frag(v2f i){}" 0 Answers
I need to return true after completing a tween animation.How should i do it ? 0 Answers