• Runtimes
  • Cannot See Images in Unity Runtime's 'Basic Platformer' Example


Hi everyone, I'm currently learning Unity Runtime because I want to implement shadows in a top-down 2D game. To do this, I wanted to study the 5th example in the runtime: 'Basic Platformer'. However, I found that most of the images in the example are not rendering correctly, seemingly due to missing materials. How can I fix this issue, or could you suggest any other learning resources on casting skeleton's shadows in a top-down view game based on the current time and light sources? Thank you very much!

  • Misaki ответили на это сообщение.
  • Harald оценил это.
    Related Discussions
    ...

    To address the issue of missing images in the 'Basic Platformer' example in Unity Runtime, it is likely due to incorrect or missing material assignments. Here are some steps you can take to resolve this:

    1. Check Material Assignments: Ensure that the materials are correctly assigned to the skeletons. You can do this by selecting the skeleton in the Unity Editor and checking the SkeletonRenderer or SkeletonAnimation component to see if the correct materials are assigned.

    2. Re-import Assets: Sometimes re-importing the assets can resolve missing material issues. Right-click on the asset folder in the Project window and select "Reimport".

    3. Verify Render Pipeline Settings: If you are using the Universal Render Pipeline (URP), make sure that the correct Render Pipeline Asset is assigned in both Project Settings -> Graphics -> Scriptable Render Pipeline Settings and Project Settings -> Quality -> Rendering. This is crucial for ensuring that the materials and shaders are compatible with URP.

    4. Use Correct Shaders: For URP, you should use the Spine URP shaders. For example, you can use Universal Render Pipeline/Spine/Sprite or Universal Render Pipeline/Spine/Skeleton Lit shaders. Ensure that these shaders are assigned to your materials.

    5. Check for Shader Issues: If you are experiencing shadow artifacts or other shader-related issues, you might need to adjust the shadow casting settings or bias settings on your lights. Refer to the URP Skeleton Lit shader shadow artifacts discussion for more details.

    6. Example Projects: If the above steps do not resolve the issue, you can refer to other example projects or create a minimal Unity project that replicates the problem. This can help in isolating the issue and finding a solution.

    For learning resources on casting skeleton shadows in a top-down view game, you can refer to the following:

    These resources should help you understand how to implement shadows and troubleshoot any issues you encounter.

    wpw1221 In your case, it is not the images that are not rendered correctly, but the 3D objects. So perhaps there is something wrong with your project setup, but it is difficult to determine what the problem is just from the screenshot. How did you create that project? Specifically, which of the various templates did you use to create your Unity project?

    • wpw1221 ответили на это сообщение.

      Misaki Hi Misaki, I used Universal 2D, is it the cause of the problem? 🙂

      @wpw1221 If you're using URP with a 2D Renderer, many example scenes of the normal spine-unity package will render not at all or incorrectly. Built-In RP shaders are (mostly) incompatible with both URP especially when using a 2D Renderer (which uses a completely separate lighting system).

      If you want to view these examples side-by-side while developing your URP 2D project, we recommend creating a second Unity project for viewing the examples.

      URP example scenes using URP 2D and URP 3D Spine shaders are included in the Spine URP Shaders UPM package (which I assume you're using).

      Please see the documentation here:
      https://esotericsoftware.com/spine-unity-rendering#URP-Shaders-Extension-Package

      • wpw1221 ответили на это сообщение.

        Harald Thanks Harald, open the example in new 3D project works perfect! 😃