- Home /
Srcipting: how retrun struct in function , C#?
Hi , Coding return a point now my point structure is :
private struct CatePoint{
public float x,y;
}
Now we assume the function is :
private --- MyFnc(float in1,float in2){
CatePoint Pi = new CatePoint();
Pi.x = 3f ;
Pi.y = 2f ;
return Pi ;
}
How I can return the point, I replace what with 3 dashes in code?
Comment
Best Answer
Answer by tw1st3d · Oct 30, 2013 at 09:58 PM
private CatePoint MyFnc(float in1,float in2){
Your answer
Follow this Question
Related Questions
The name 'Joystick' does not denote a valid type ('not found') 2 Answers
How do I "trickle" a function's effect over n seconds? 2 Answers
C# Third Person Controller CS1061 0 Answers
Collider doesn't transfer to function 1 Answer
AI help (C) 0 Answers