DebuggingTool | GUI tool and JS SDK for interacting with lightning network | Cryptography library
kandi X-RAY | DebuggingTool Summary
kandi X-RAY | DebuggingTool Summary
GUI tool and JS SDK for interacting with lightning network.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of DebuggingTool
DebuggingTool Key Features
DebuggingTool Examples and Code Snippets
Community Discussions
Trending Discussions on DebuggingTool
QUESTION
I'm using IMGUI in Unity to make a custom variable debugger which allows me to send it varables of different primitive types and it will draw them on screen without much fuss. (by fuss I mean writing an OnGUI each time I want to check what a variable is doing, or hooking something up with the canvas system.) I know that obviously I can just look at these things in the inspector but with this system I can a) quickly add and remove things, and b) do it at runtime without having to do a development build.
I have a function working that takes in different types of data and does things with it based on its type. The issue is that it only seems to work if I pass the variable by value, and not by ref.
So for example if I send it an int or a float by value it works just fine but when I send it by ref I get this error:
error: CS1503: Argument 1: cannot convert from 'ref int' to 'ref object'
This occurs when AddDebugEntry
is called (whole code is at the bottom of this question):
ANSWER
Answered 2019-Aug-01 at 17:30Looking at your code, you never assign to the reference value
(or m_Value
), so there is no reason to have it be a ref
parameter in DebugEntry
/AddDebugEntry
.
Instead you can give it a Func delegate that returns the current value in question when it is called, and call it whenever you need a fresh value:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install DebuggingTool
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page