NatProDev

u/NatProDev


r/dotnet•

I'm hoping to have 1 Model that has all of the possible fields they can submit, then check if the JSON included the key, if so update the field (even if the value is null). I've provided examples below in case that's confusing to anyone. It's a problem I've been considering for a while but never figured out a way I could manage it while keeping hard typing and keeping it generic...

For example I don't want the solution to be for me to declare a UpdateName bool in every update model. I played around with possibly having an UpdateValue<string?> field but couldnt get anything I was happy with. Just curious what other's approach would be.

https://preview.redd.it/5ntar4uafixb1.png?width=127

110

r/reactnative•

When the View expands, elements inside it are cutoff (see images). I've tried Everything I can think of but nothing seems to fix it.

The issue seems to start after the unity view has opened, but I can't confirm that as it is inconsistent and works occasionally. The reason one of the images has a higher cutoff, is that I opened the div while in the unity splashscreen, then after it mounted moved to a stage with more text causing the div to grow again and be cut off higher up.

Things tried:overflow: visible.

increasing and decreasing zIndex.

making parent View full screen (absolute pos 0 0 0 0).

changing ArMenu to be flex, with auto top margin.

Page:

<View style={{flex: 1}}>
10

r/reactnative•

Hey, I've been tasked with adding (plane tracking based) AR to a expo RN app. How would you recommend starting with this. I've previously completed a prototype that involved embedding a Unity application into it which worked ok but I was hoping for a solution that doesn't force me to eject the expo app.

I had planned on using webxr and a webview but from my research today that doesn't seem to be supported on ios yet out of the box, enabling experimental safari options would probably not be an option for our users. Just curious what people who have more RN based experience would recommend.

24

r/UsbCHardware•

The tech specs say it has - USB 3.2 Gen 2 Type-C support DisplayPort

and next to the port is ss10 DP on the laptop.

The manual is pretty useless and just says the same as the specs but does add speeds of up to 10 Gbit/s.

Just want to know if it will support outputting to 2 1440p monitors at 60hz?

Also since I'm asking anyway, I doubt it but would it support power delivery?

EDIT:

The laptop is the Asus G512
https://rog.asus.com/laptops/rog-strix/rog-strix-g15-series/spec/

03

r/oculusdev•

Does anyone know how to trigger focus when you close the system keyboard on the quest?

It works completely fine if you press the blue submit button, but if you "click" off to the side of the keyboard or if you "click" the minimize button the application never regains focus.

This is when using the text input fields in the Unity UI or the TextMeshPro UGUI.

60

r/reactnative•

When running this code:

    const fillPercent = new Animated.Value(0.0);
    const fillAnim = () => {
        Animated.timing(fillPercent,{
          toValue: progressPercentage,
          duration: 800,
          easing: EasingNode.inOut(EasingNode.cubic),
        }).start();
      };
    useEffect(() => {
        fillAnim();
      }, [progressPercentage]);

I can see that fillAnim is called and progressPercentage is whatever I set it to, i.e. 0.4.

However, using a setTimeout of 500ms and 1000ms I can see that fillPercent never changes value and the animated shape never changes (it does if I use a hardcoded value).

Is anyone able to help

14

r/reactnative•

I have a csv of every 4 letter (English) word, it's 28kb and I'm expecting a couple of exponentially larger ones in the future for 5 letter words and maybe 6.

I need a way to get a random word from it and the check if it contains a random word. As a mostly Unity dev I would normally put it in a Scriptable Object as a HashSet, so I'm thinking an empty javascript class but wanted to check with you since inserting iterating through every item to check if it contains a word would ideally be avoided.

Anyway in react to use a HashSet in storage instead of ram? thanks.

I can change the formatting of the csv to include hash values if that would help.

17

r/reactjs•

Hi, I've been trying to figure this out for hours now. I want to click the inside the sphere and spawn a mesh in the position that I clicked. If anyone could point me in the right direction I would be hugely grateful.

function PhotoSphere() {
  const texture = useLoader(THREE.TextureLoader, "test.jpg");
  return (
    <mesh>
      <sphereBufferGeometry attach="geometry" args={[500, 60, 40]} />
      <meshBasicMaterial
        attach="material"
        map={texture}
        side={THREE.BackSide}
      />
    </mesh>
  );
}

function HotspotEditor() {
  return (
    <Canvas
      camera={{ posit
45

r/HoloLens•

Hi, anyone know why I can't connect to my Hololens 2 device portal? I reset my PC over the weekend and now can't connect to it from anywhere. I've tried resetting my Hololens to and that hasn't fixed it.

Any help would be appreciated.

52



r/OculusQuest•

Hi, I've heard a lot of good things about Virtual Desktop on this sub and I'm sick of Link not working properly so I was looking to get a PC WiFi adapter.

I'm in student accommodation and our router doesn't support 5GHz frequencies so it's my only option, just wondering if anyone has any recommendations as I don't understand any of the specs, I read that it should support forced 802.11ac mode but I don't know how to check that and whether it supports creating a hotspot on Windows 10.

Cheers.

714