11000+款5星资源
8.5万+用户参与评分
10万+社区成员鼎力支持
每款资源都经过 Unity 审核
显示 1 - 10 of 44
用户评论
排序
For an asset of this quality and ease-of-use, it's incredible that it's free! The code is well documented and simple, and it's very easy to pick up. I had an issue that I couldn't solve, and I got very quick support. Give it a try!
这条评论是否有帮助?
0
0
In my case (3D project)
- Camera (For drawable)
-- Position : 0,0,0
-- Clear Flags : Depth only
-- Projection : Orthographic
-- Clipping Planes : Near = 0
-- Size :
{
// (Code from : https://youtu.be/3xXlnSetHPM?t=351)
public void SetCameraSize()
{
SpriteRenderer rink = GetComponent<SpriteRenderer>();
float screenRatio = (float) Screen.width / (float) Screen.height;
float targetRatio = rink.bounds.size.x / rink.bounds.size.y;
float size = rink.bounds.size.y / 2;
if(screenRatio < targetRatio){
size *= targetRatio / screenRatio;
}
{CameraOfYourDrawable}.orthographicSize = size;
}
}
- Drawable
-- Position : 0,0,0
-- Box Collider 2D Size : Screen size
You can fit the drawable to screen
(Main Camera is Perspective and Camera for drawable is Orthographic)
这条评论是否有帮助?
2
0
Simple an easy, good free asset!
Works only with orthographic camera and Collider2D.
I was able to make it work in 3D :
- remove the need of collider2D in Drawable.cs, and replace the collider2D with a box collider.
- Change camera to perspective
- In Update(), modify like this :
void Update() {
// Is the user holding down the left mouse button?
bool mouse_held_down = Input.GetMouseButton(0);
if (mouse_held_down && !no_drawing_on_current_drag)
{
// Check if the current mouse position overlaps our image
Ray ray = Camera.main.ScreenPointToRay(Input.mousePosition);
if (Physics.Raycast(ray, out RaycastHit hit, 100.0f, Drawing_Layers.value))
{
// We're over the texture we're drawing on!
// Use whatever function the current brush is
current_brush(hit.point);
}
[...]
}
Enjoy!
这条评论是否有帮助?
2
0
I can't seem to get mine to setup properly. I followed the Youtube step by step, but my draw always draw on the center pixel only. Only one pixel changes and nothing else works. Does anyone know how to fix this?
Thanks
--- Update ---
Found out that you had to set the Camera to Orthographic. Would have been nice if this information was in the document.
这条评论是否有帮助?
0
0
a
Cool drawing asset
4 years ago
akhror_unity基于版本1.3
If I increase the size of pencil, it's lagging while drawing. Is there any other way to improve it?
这条评论是否有帮助?
0
0
The Eraser is drawing a black line instead or erasing. To fix this open the DrawingSettings.cs script and change the set Eraser method to this
public void SetEraser()
{
Color c = Color.white;
c.a = Transparency;
SetMarkerColour(c);
Drawable.drawable.SetPenBrush();
}
这条评论是否有帮助?
3
0
W
Easy and StraightForward
5 years ago
WoWPerroDev基于版本1.3
This asset is really good for drawing, easy to use and has a really nice documentation
这条评论是否有帮助?
0
0
高品质资源
11000+款5星资源
深受用户信赖
8.5万+用户参与评分
强大的社区支持
10万+社区成员鼎力支持