StansAssets Profile Banner
Stan's Assets Profile
Stan's Assets

@StansAssets

Followers
734
Following
38
Media
113
Statuses
331

Kiev
Joined April 2013
Don't wanna be here? Send us removal request.
@StansAssets
Stan's Assets
3 years
If @elonmusk suggests it, you better listen :) . #stansassets #unity3d #twittermemes
Tweet media one
0
1
1
@StansAssets
Stan's Assets
3 years
5. Calling C# back from native code ([iOS example](). #unity #gamedev .@unitygames.
0
2
4
@StansAssets
Stan's Assets
3 years
2. Unity Serialization (Monobehaviour or ScriptableObject). 3. [StateMachineBehaviour]( for state machine callbacks. 4. Coroutines, but also has a workaround as [CoroutineUtility](.
1
0
0
@StansAssets
Stan's Assets
3 years
(. Available workaround is for example [MonoBehaviourCallback](.
1
0
0
@StansAssets
Stan's Assets
3 years
Let’s remind ourselves when we really need a Monobehaviour script:. 1. MonoBehaviour Lifecycle: Awake, Start, Update and [others](. MonoBehaviour Callbacks: OnAnimatorIK/Move, OnTriggerEnter/Exit/Stay, OnCollisionEnter/Exit/Stay and [others].
1
0
0
@StansAssets
Stan's Assets
3 years
How many Monobehaviour scripts are needed to don’t lose your mind?. Making a project is a thorny path, so keeping it clear and structured is really important, but a hard, task. Adding Components on GameObjects all the way around is not always a Component-Based Design.
1
0
0
@StansAssets
Stan's Assets
3 years
Members of our team have shared their unique stories of how they've lived through the most difficult weeks for every Ukrainian since the war has started #StandWithUkraine #WarStory #Feb24.
0
0
0
@StansAssets
Stan's Assets
3 years
4. Coroutines, but also has a workaround as [CoroutineUtility](. 5. Calling C# back from native code ([iOS example](. #unity #gamedev .@unitygames.
0
0
0
@StansAssets
Stan's Assets
3 years
(. Available workaround is for example [MonoBehaviourCallback](. 2. Unity Serialization (Monobehaviour or ScriptableObject). 3. [StateMachineBehaviour]( for state machine callbacks.
1
0
0
@StansAssets
Stan's Assets
3 years
Let’s remind ourselves when we really need a Monobehaviour script:. 1. MonoBehaviour Lifecycle: Awake, Start, Update and [others](. MonoBehaviour Callbacks: OnAnimatorIK/Move, OnTriggerEnter/Exit/Stay, OnCollisionEnter/Exit/Stay and [others].
1
0
0
@StansAssets
Stan's Assets
3 years
How many Monobehaviour scripts are needed to don’t lose your mind?. Making a project is a thorny path, so keeping it clear and structured is really important, but a hard, task. Adding Components on GameObjects all the way around is not always a Component-Based Design.
1
0
2
@StansAssets
Stan's Assets
3 years
Unity UI tips to make Unity developer’s life easier (part II):. 3. UI components’ parameters should be selected with confidence. 4. Basic UI components from Unity suits only for basic things. #unity #gamedev @unitygames.
0
2
1
@StansAssets
Stan's Assets
3 years
Unity UI tips to make Unity developer’s life easier (part I):. 1. Use Canvas GameObject to activate/deactivate the UI. 2. Carefully split Canvases with and without animations. #unity #gamedev @unitygames.
1
2
1
@StansAssets
Stan's Assets
4 years
* Please, be aware of yields execution order. yield WaitForFixedUpdate and yield WaitForEndOfFrame have different orders during the frame. Take a look at the order of execution to be sure that you have everything in place.
0
0
0
@StansAssets
Stan's Assets
4 years
* Simple Demo - populating the collection and yielding iteration in Coroutine. The main point - in one frame 'Counter Increment' goes earlier than 'Entity' output (which might not be obvious). That's exactly because of the StartCoroutine logic mentioned above. @unitygames
Tweet media one
Tweet media two
Tweet media three
Tweet media four
1
0
0
@StansAssets
Stan's Assets
4 years
Important points about coroutines!.* The very first call of the coroutine function will take place when you call StartCoroutine. The StartCoroutine method returns upon the first yield return and the coroutine will be untouched during this frame (despite any type of yield).
1
0
0
@StansAssets
Stan's Assets
4 years
Unity will invoke constructors when creating an instance of a class during deserialization (load), which might run on a non-main thread. This also means that you can't make @unitygames API calls in class constructors like FancyData class from our example for the same reasons.
0
0
0
@StansAssets
Stan's Assets
4 years
Create the prefab with FancyBehaviour component attached and drop it to your scene. Enter the Playmode and check your Console You will see that the thread, where the constructor was called from, isn't the Unity main thread (Unity main thread has id equals to 1).
Tweet media one
Tweet media two
Tweet media three
1
0
0
@StansAssets
Stan's Assets
4 years
You should avoid using constructors to initialize MonoBehs!.Have you ever thought about why MonoBeh constructors are forbidden?.@unity will call MonoBeh constructors on its own. And the MAIN point is that constructors of MonoBehs aren't always called on the main thread. #gamedev.
1
1
0
@StansAssets
Stan's Assets
4 years
FREE PERFORMANCE on the Oculus Quest platform with Multiview Stereo Rendering Mode. Unity uses a texture array with two slices and uses instanced draw calls (when necessary) to direct rendering to the appropriate texture slice. #madewithunity #gamedev @unity @unitygames
Tweet media one
0
0
1