Pages

luni, 23 martie 2020

Unity 3D : Use Quick Fix on Visual Code for Unity and Linux.

Because I don't use Unity 3D with Linux and Visual Studio today I solve another issue for the development area.
This is the quick fix option for Visual Code that helps the user to add source code.
For example, you can add source code for the implement an abstract class PlayerBaseState:
using UnityEngine;

public abstract class PlayerBaseState 
{
    public abstract void EnterState(PlayerController_FSM player);
    public abstract void Update(PlayerController_FSM player);
    public abstract void OnCollisionEnter(PlayerController_FSM player);
}
Create a new C# script named PlayerIdleState. The script needs to be changed into this source code:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class PlayerIdleState : PlayerBaseState
{
    
}
Select the PlayerIdleState and use these keys: Cmd or Ctrl and . (the point key) .
This will show a menu named Generate overrides... and help the developer to generate the new code:
The result is this source code with all new override for each of methods of PlayerBaseState class:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class PlayerIdleState : PlayerBaseState
{
    public override void EnterState(PlayerController_FSM player)
    {
        throw new System.NotImplementedException();
    }

    public override bool Equals(object obj)
    {
        return base.Equals(obj);
    }

    public override int GetHashCode()
    {
        return base.GetHashCode();
    }

    public override void OnCollisionEnter(PlayerController_FSM player)
    {
        throw new System.NotImplementedException();
    }

    public override string ToString()
    {
        return base.ToString();
    }

    public override void Update(PlayerController_FSM player)
    {
        throw new System.NotImplementedException();
    }
}

sâmbătă, 21 martie 2020

SpriteStack online tool for sprites with 3D features.

This is an awesome online tool to create sprites for your game named SpriteStack.
You can find this online tool on this web page.  
SpriteStack is a 3d pixel art editor based on the sprite stacking technique. Similar to voxels it's a fun and simple way to draw low-resolution 3d objects that can be later used in games or submitted to the online gallery.
The tool is easy to use and the output is good.
I use the free preview of Sprite Stack Studio but you can get one of the options to unlock all features from Steam or Itch.io website. If you want to have full online access to the editor and exporter at a low price then use the Patreon website with just 2$ per month.
I find a good tutorial on youtube but you can see the videos from help webpage:

joi, 19 martie 2020

Unity 3D : Setup Visual Code for Unity and Linux.

The tutorial for today will cover the settings of Visual Code and Unity into a Linux distro.
First, you need to install the Visual Code into your Linux distro.
You need to have the Unity 3D software working well into the Linux distro.
Open the Unity 3D software and create a new script using the main menu: Assets - Create - C# Script.
Open into Unity 3D from the main menu: Unity - preferences - External tools.
Select the Visual Studio Code like into the next image:

Double click on the newly created C# script.
This will open the Visual Studio Code and will ask you to install the C# feature using the Install button, see the next image:
 
This will install the C# extension for Visual Code.
The last step is the install of DotNet for Visual Code.
Use the button with the name Get the .Net Core SDK to install the Net CORE.
This will redirect to a webpage where you find the commands to install for your Linux distro.
After these steps, you can use Unity 3D software with Visual Code.

duminică, 15 martie 2020

Unity 3D : Settings for Android build game.

If you try to set the Android SDK on Unity 3D using the Linux O.S. then you can have a problem.
After you set the name of the package and the default android settings you can use External Tool from menu Edit - Preferences to set paths for Android SDK, NDK, and more.
This is the path I used to build with Android:
  • /home/catalin/Unity/Hub/Editor/2019.3.5f1/Editor/Data/PlaybackEngines/AndroidPlayer/OpenJDK
  •  /home/catalin/Unity/Hub/Editor/2019.3.5f1/Editor/Data/PlaybackEngines/AndroidPlayer/SDK
  • /home/catalin/Unity/Hub/Editor/2019.3.5f1/Editor/Data/PlaybackEngines/AndroidPlayer/NDK
  • /home/catalin/Unity/Hub/Editor/2019.3.5f1/Editor/Data/PlaybackEngines/AndroidPlayer/Tools/gradle
You can see the android SDK, NDK and Gradle is set on the Hub Editor This is my External Tools configuration for that build game:

Unity 3D : The new learning area ...

The Unity 3D game engine comes with significant improvements in the learning area.
If you know nothing about Unity Editor and C # then this area has a simple and efficient introduction for new developers of this game engine.
For example , see the Creator Kit: Beginner Code.
You can start with John Lemon's Haunted Jaunt: 3D Beginner or with the Ruby's Adventure: 2D Beginner.
I am starting to see how deep and good these tutorials are and for me it was quick to follow them and use them.
This is an more advance learn step from Unity 3D using the Creator Kit: Beginner Code.

duminică, 1 martie 2020

Another form of art: Deep Dream Generator tool.

Deep Style. The technique is a much more advanced version of the original Deep Dream approach. It is capable of using its own knowledge to interpret a ... We are just a small team of enthusiasts who are trying to build something cool. Our goal is to make the latest developments in AI widely and freely accessible.
This online tool lets you use the power of the computer to lineup the images into a new form of art.
See all artwork of the online tool on this website, where you can test it.
Create your account, upload your photo to create your new art image.