SysOp

  • 6 سبتمبر 2022
  • انضمّ(ت) 22 مارس 2013

    Hello!

    On enemy's death, I'm simply trying to make its weapon attachment separate from the skeleton and turn into a game object.

    I've seen multiple topics about the opposite but can't find much about this.

    Is there any way to do it? Thanks in advance!

    • تم التحرير

    That will come in handy, thanks a lot Harald <3 - I'll be editing my post once I get some results 8)

    • تم التحرير

    Hi! Basically, title.

    I'm planning to add a Last Known Position feature, like this:

    ... but for this I would need to duplicate my character, his skin, and his current animation. I see the 'instantiate' example, which lets me copy a character, but no idea how to give him the same frames of the current animations being played.

    Any idea how to solve this, would be super appreciated!

    You will not benefit much (or at all) if you have two drawcalls with one repacked texture, compared to two drawcalls with two textures.

    Ah, okay then. Yeah, I'm only using 4 customizable characters max, it won't affect the performance at all. Since this pretty much done, I'm marking this as solved. Thanks again! :heart:

    Disabling compression and enabling read/write did the trick! Huge thanks again! <3

    EDIT: Deeply sorry to again bring out issues, but after repacking, I'm losing a material.

    Here's the ones I use:

    After repacking I lose one:

    I read the documentation and SpineBoy example uses a single material. I tried to do something like:

    int[] additionalTexturePropertyIDsToCopy = new int[] { Shader.PropertyToID("-Additive") };
    
    repackedSkin = repackedSkin.GetRepackedSkin("repacked skin", sourceMaterial, out runtimeMaterial, out runtimeAtlas, additionalTexturePropertyIDsToCopy: additionalTexturePropertyIDsToCopy); // Pack all the items in the skin.
             

    ... to copy that additive material, but doesn't work. I'm obviously doing something wrong.

    Thanks for the explanation and for the hard work mate. Backing up this project was one of the best decisions I ever made <3

    EDIT: When optimizing the skin (by pressing Done), my character looks like this (main texture looks like gray boxes):

    And in the console, I get dozens of:

    Graphics.CopyTexture can only copy memory with the same size (src=26240 bytes dst=6560 bytes), maybe the size (src=163 * 160 dst=41 * 40) or format (src=RGBA Compressed DXT5 UNorm dst=RGBA8 UNorm) are not compatible

    What might be the cause of this?

    That, indeed, solves it!

    I suspected it had something to do with white space stripping as I had same issue on previous engine, I even tested that out, but perhaps got myself confused.

    Thanks a lot for checking this out, customization, here we go! :heart:

    Done, sent to that address 🙂

    Click on the button to replace it:

    There's no custom code, uses scripts from Mix and Match examples.

    Thanks for the amazing support :love:

    I have been trying to do the same thing and encountered the same problem. In my case some are getting bigger and some are getting smaller. Did you get any solution to that?

    Same issues here and sadly, no solution that I could find. I would be editing this post if I find something.

    Hey, thanks a lot for the answer. I followed your information and managed to do what I wanted.

    However, I bumped into a scale issue:

    The circled one, uses the very same image as the source, but for some reason, is smaller. What would be the cause for this? Thanks a lot for your time and for helping so much 8)

    Sounds like a common transparency issue when isn't setup correctly. Check this guide: Premultiplied Alpha Guide - and post back your results.

    • تم التحرير

    Hello!

    On the previous engine we used, Haxe based, I hacked my way in and did it, but I was wondering if there's a proper solution for Unity.

    In our game, we have characters which gets damaged. I need them to change body parts, but since these parts are a lot and there's lots of characters, I need to do that via code.

    Sprite dimensions won't change. Is just a sprite replacement. Is there a way to grab a sprite from "resources/" folder and use that one, for the damaged head instead? Thanks in advance. 8)

    Hey, uninstalled Comodo and it works!

    I thought disabling it was enough, but I was wrong. I'm done with Comodo, is not the first time something similar happens.

    Thanks for the help and for providing alternatives. ! Curve editor, here I go 😃

    Hi guys, for some unknown reason, when trying to run latest launcher, I'm getting this:

    I'm on Windows 7, 64 bits. Never had this issue with previous launcher. Here's, in fact, the two of them:

    Anybody has any idea what's going on? Thanks in advance.

    EDIT: More information - I don't have any antivirus running, I don't have any programs that might hook its process or something, that I know of. Tried disabling firewall, disabling AMD Radeon overlay, doesn't work either.
    EDIT2: Seems like my multi-monitor management software might be the culprit, but it's hard to know.

    I just can't simply uninstall that software. Can you guys revert this new system back or make it less sensitive? I don't see why this is a good idea at all. It was working perfectly fine before.

    EDIT3: It also detects Comodo Firewall .dlls and won't run because of it. I can't uninstall that either.

    Thanks a lot for such a lenghty response! I will report back when I get some results. Thanks again and merry xmas for you and your loved ones 🙂

    • تم التحرير

    Hi everyone, hope you are having a great holidays. 😃

    I'm trying to do some sort of 2D screen space reflection, to get some sort of reflective surface, over a spine skeleton.

    I would grab a screen section, and apply it over the skeleton. I did read the docs, but I'm still puzzled on where to look.

    Here's an exaggerated example made in Photoshop:

    Any idea on how to do this, would be super appreciated. Thanks a lot and merry christmas!