#Types in Needle Engine

1 messages · Page 1 of 1 (latest)

distant cove
#

Where I can find all renamed types from Unity to Needle? In image below, some changes written. I currently need Material, Color, float equivalents. And how to initialize them in declaration

trail bluff
#

Hey 👋

float -> number
Material -> Material
Color -> Color

    // from three
    @serializable(Color)
    color?: Color;

    // from three
    @serializable(Material)
    mat?: Material;

    @serializable() //you don't need to specify the serialized type with primite types
    num?: number;
#

Sometimes it doesn't offer three types as good :/ This is where to import the types from

import { Material, Color } from "three";