Skip to main content

Questions tagged [code-reflection]

Reflection is the ability of a computer program to examine, introspect, and modify its own structure and behavior at runtime. Use this tag for programming features that need to reason about the code itself. For questions about rendering visual reflections, use the Reflection-Rendering tag instead.

0 votes
0 answers
62 views

Godot offers the CodeEdit node that lets users write code during runtime. I want to: Offer GDScript LSP-features inside the CodeEdit Interpret the written code as GDScript Check if a class was ...
TheBeautifulOrc's user avatar
3 votes
1 answer
262 views

In Godot, how can I check whether e.g. Call(...) or Callv(...) succeeded or failed? By failed I mean due to e.g. missing method, ...
geekley's user avatar
  • 133
0 votes
1 answer
2k views

I have an abstract class, call it FooClass. And there are two classes that inherit from it, call 'em BazClass and ...
osman doluca's user avatar
1 vote
1 answer
105 views

I am trying to access the per letter vertices array in the UIElements (UI Toolkit) Label Unity class. Background A Label of this type can be created for example with: ...
mike's user avatar
  • 501
0 votes
2 answers
3k views

I would like to create an educational game, part of which involves allowing the user to modify code for procedurally generating geometry on the CPU and modify shader code and see the changes they make ...
TomKern's user avatar
  • 101
0 votes
0 answers
914 views

In the Unity documentation section Overview of .NET in Unity (https://docs.unity3d.com/2022.1/Documentation/Manual/overview-of-dot-net-in-unity.html), it states: ...
FICHEKK's user avatar
  • 189
1 vote
1 answer
475 views

I'm creating a manager object that controls a bunch of other objects at once. I want to be able to restrict / expose parameters in the target object to the manager via a custom attribute. I have the ...
arcadeperfect's user avatar
0 votes
1 answer
690 views

Is there a way to access info about the script that a PropertyAttribute is part of in Unity? In my case: getting the memberInfos of the script: ...
Charly's user avatar
  • 752
0 votes
1 answer
2k views

I'm building a game engine from scratch and trying to implement a basic plugin system within my engine. Using AssemblyLoadContext to load the target dll dynamicly ...
Barış Üçkardeş's user avatar
2 votes
0 answers
203 views

I am attempting to write a code generator that builds C++ structs/classes from D3D12 reflection data built using DXC. Given a simple vertex shader signature: ...
MSinger's user avatar
  • 21
1 vote
0 answers
194 views

I am working with a friend of mine to create a mod that relies on a mod called Devious devices, which would allow BDSM be utilized in Skyrim's combat by allowing the assailants to have special weapons ...
garret Lennelluc's user avatar
44 votes
1 answer
16k views

I'm currently doing some research on programming languages(compile time reflection area, if you ask) and I found that on the game engine area the reflection feature becomes a must, an engine either ...
ravenisadesk's user avatar
0 votes
1 answer
2k views

I am trying to get access to a set of stored variables inside a scriptible object in Unity. This class (SectorDeclaration) has a method to pull a variable with a string of the variables name from it: ...
TartanKavuJr's user avatar
2 votes
1 answer
119 views

I want to write somewhat randomized object activation effects, like when you step on a trap, you can be tepelorted, damaged, cursed and so on. I applied strategy pattern for this: damage/healing ...
Swhad's user avatar
  • 23
0 votes
2 answers
240 views

Let's say that I have a component like this: ...
modernator's user avatar
  • 1,223

15 30 50 per page