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.

Filter by
Sorted by
Tagged with
0 votes
0 answers
60 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
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
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
1 vote
1 answer
472 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
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
1 vote
0 answers
193 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
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
0 votes
2 answers
239 views

Let's say that I have a component like this: ...
modernator's user avatar
  • 1,223
3 votes
0 answers
725 views

I am making a visual tool for Editor Window on Unity3D, and I am just recently using System.Reflection methods to get class's assembly data, to get information about properties, fields and methods (...
LifGwaethrakindo's user avatar
4 votes
3 answers
1k views

For my RTS game's ability system, I need an efficient ability system where each ability is its own class that implements certain functions from an inherited abstract base class, Ability. Every ability ...
JPtheK9's user avatar
  • 2,031
4 votes
3 answers
2k views

I am trying to add a method to a Minecraft source file, but I have to figure out how to do it without actually editing the source files, as it would be illegal to redistribute Minecraft's source files ...
Andrew Graber's user avatar
0 votes
1 answer
1k views

I've decided it's time to implement serialization in my simple engine but this has caused me many headaches for the past couple of days/weeks. My engine uses an entity/component based approach similar ...
Grieverheart's user avatar
  • 1,215
4 votes
1 answer
525 views

I'm trying to get access to the keyboard state in XNA from an embedded JavaScript runtime. I'd like to do something similar to the following, but I can't seem to figure out how to get from "Left" to ...
Daniel X Moore's user avatar