Warning: A non-numeric value encountered

It seems that in PHP 7.1, a Warning will be emitted if a non-numeric value is encountered. See this link. Here is the relevant portion that pertains to the Warning notice you are getting: New E_WARNING and E_NOTICE errors have been introduced when invalid strings are coerced using operators expecting numbers or their assignment equivalents. … Read more

How to pass data (and references) between scenes in Unity

There are many ways to do this but the solution to this depends on the type of data you want to pass between scenes. Components/Scripts and GameObjects are destroyed when new scene is loaded and even when marked as static. In this answer you can find Use the static keyword 1. Use the static keyword. Use this method if the … Read more

What is a good naming convention for Unity?

The Unity convention is actually rather simple: everything is Pascal-cased, types (classes, structs, enums) and methods start with upper-case, fields and properties with lower-case. Enum values in upper-case, constants in lower-case (usually). So ClassName, MethodName, myField, myProperty { get; set; }, MyEnum.CaseA… that’s it. As for your example, Transform is a class, whereas transform is an accessor to the instance of Transform in that particular GameObject/Component. … Read more

Tables in Markdown (in Jupyter)

The first row of the table defines the headers, then the next row defines the alignment of each column. You duplicated the alignment at the top of the table and where it’s actually supposed to go. The right Markdown should simply be what you have in your syntax, but remove the first row: The — in between … Read more